Re: using exim for simple mail delivery
I think what you really need is fetchmail and procmail I am afraid. But
not to worry a basic setup is not too difficult.
To get your mail from a pop3 account create a .fetchmailrc in your home
directory that looks like this
defaults proto pop3
set daemon 120
user "fredsmith" has password "secret"
When you run fetchmail this will poll the pop3 account once very two
minutes and drag your mail down. To test it you can comment out the
daemon line (with a #) and run fetchmail -vv to get plenty of debuging.
First you need a .forward file that should look like this
"|IFS=' ' && exec /usr/bin/procmail || exit 75 #fredsmith"
Now you need a .procmailrc like this:
# Procmail main config file
LOG="--- Logging $(LOGFILE) for $(LOGNAME), "
This will sort you mail as it arrives into so that it goes into a
maildir type folder called inbox unless its from either the debian-user,
debian-laptop or wm-user maillists in which case it gets dropped into
the relevent folders. This is a very simple procmail setup you can spend
a lot of time playing with procmail.
A simple Mutt setup to read the above folders would look like this:
set realname="Fred Smith"
my_hdr From: Fred Smith <email@example.com>
my_hdr X-Operating-System: Debian 3.0
set editor="vim +/^$ -c 'set tw=72'"
mailboxes !+inbox +debian-user +debian-laptop +wm-user
## Control Headers
unignore from: date subject to cc reply-to:
unignore organization organisation
unignore user-agent: x-agent: x-mailer: x-newsreader
lists debian-user debian-laptop wm-user
subscribe debian-user debian-laptop wm-user
That should get you going. Check the procmail and fetchmail man pages or
websites for the permisions that need to be used on their rc files. I
can never remebere them off hand.