At our ISP we have our own domain.
All mail sent to anyone @our.domain goes into one
I have set up a Linux-box to act as a mailserver.
To fetch the mail I use popclient:
popclient -3 -s -u $POPUSER -p $POPPASS -o $TEMPMAIL $POPSERVER
And to sort out mail to my local users:
cat $TEMPMAIL | /usr/local/bin/formail -I Status: -ds /usr/local/bin/procmail
This is run by cron as root. And have a .procmailrc in /root
Is this ok btw?
--- Start .procmailrc ---
# Please check if all the paths in PATH are reachable, remove the ones that
# are not.
MAILDIR=$HOME/Mail # You'd better make sure it exists
# To make a backup of all incoming mail in case
# some one looses his mail-folder:
[ Deleted ~20 users for readability ]
# Anything that has not been delivered by now will go to $DEFAULT
# using LOCKFILE=$DEFAULT$LOCKEXT
--- End .procmailrc ---
- All mail gets copied into safe.copy alright
- Mail for a user gets delivered alright.
- Other mail goes into $DEFAULT alright.
But what happens if someone sends a mail to "tore" AND "per" ?
When matching "tore" the recipe is finished and next mail is
Or isn't it?
Do I have to add a c-flag on every recipe?
Then $DEFAULT will also get a copy of all mail?
How about lockfiles?
Do I have to use ":" on all recipes?
(probably not becasue "!user" invokes sendmail, or what?)
Any comments, tips, hints?
How can I use /etc/aliases instead of specifying all users?
Whee.. that was a lot of questions! Sorry!
Maybe someone have done tha same thing?
If so: please can I have a look at your .procmailrc file?