procmail
Tim Currie
tim at algernonsystems.com
Sat Jan 3 21:43:59 UTC 2004
charles norwood wrote:
>On Sat, 2004-01-03 at 12:56, Tim Currie wrote:
>
>
>>Well, there's one good thing about the flood of messages this list gets:
>>it convinced my to get off my lazy arse and get postfix/procmail/cyrus
>>working so I don't have to sort by hand! :)
>>
>>
>>
>O.K. Tell us how you did it. Are you using sendmail? If so, how is
>sendmail configured to work with cyrus and procmail?
>Chuck
>
>
>
>
>--
>fedora-list mailing list
>fedora-list at redhat.com
>To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
>
>
>
ok... I'm using postfix, not sendmail. Here's what i did:
In /etc/postfix/master.cf I added
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user}
EXTENSION=${extension} /etc/procmailrc
Then in /etc/postfix/main.cf I un-commented
mailbox_command = /usr/bin/procmail -t -a "$EXTENSION"
and changed
mailbox_transport = lmtp:unix:/file/name
to
mailbox_transport = procmail
Then I created /etc/procmailrc thus:
###
#
# Master Procmail Recipe for Postfix > Procmail > Cyrus
#
###
DELIVERTO="/usr/cyrus/bin/deliver"
USERINBOX="$DELIVERTO -e -a $USER -m user.$USER"
#
# OPTIONAL: Include users' own .procmail recipe files
#
INCLUDERC=/home/$USER/.procmailrc
#
# Last but not least, deliver mail that falls through to the user's INBOX
#
:0 w
| $USERINBOX
And finally, in my home directory i created my own .procmailrc file like
this:
# My Rules
:0 w
* ^TO.fedora-list
| $DELIVERTO -e -a $USER -m user.$USER.Lists.Fedora
:0 w
* ^TO.redhat-intall-list
| $DELIVERTO -e -a $USER -m user.$USER.Lists.Redhat-Install
:0 w
* ^TO.xfree86-list
| $DELIVERTO -e -a $USER -m user.$USER.Lists.Redhat-XFree86
Restarted postfix and Voila! All my RedHat-related mail is presorted!
-Tim
--
Proprietary software is like petrified wood. It used to be alive, but
then it was fixed in time and put in a box. GNU/Linux software, in
contrast, is alive, always changing and improving. I love that it's
more a process than a product. - Pamela Jones, Groklaw
More information about the fedora-list
mailing list