Keith Morse wrote:
You don't have to set the mailbox_command option to use procmail. If you create a $HOME/.forward file with something like this:If I use the .forward approach above, and have a .procmailrc file in the
|exec /usr/bin/procmail
Then, postfix will honor it and forward mail to procmail. If you use the mailbox_command, then it forces postfix to use procmail to deliver ALL local mail, not just for certain users. You need to decide which you prefer.
user's home directory, will the procmailrc then me processed?
Yes.
Is the following correct? Postfix sees the .forward file that starts procmail. Procmail starts and looks in $HOME/.procmailrc (and most likely /etc/procmailrc) and does its thing. Once the mail is processed, procmail goes away until that user receives email again. Not a bad approach.
Yes.
AFAIK, postfix doesn't care about .forwards. This is strictly a procmail thingie. And, AFAIK, the .forward is not strictly required anymore to have .procmailrc become effective. Postfix hands the message to procmail. Procmail then executes instructions, sorry recipes, based on entries in /etc/procmailrc and then /etc/$HOME/.procmailrc.Postfix _does_ care about the .forward file. However, IF you set the mailbox_command = /usr/bin/procmail in the main.cf, then postfix will use procmail with or without the .forward file because you have explicitly told it to use procmail. If you leave the mailbox_command commented out (the default), then you _must_ have the .foward file or procmail will not get called. The difference is whether you want procmail to handle all mail delivery, or just for certain users.
There is some performance cost to using procmail, but the specifics vary according to mail volume, number of recipes, etc.
//Keith
--
LPIC-2, MCSE, N+
We drive on this highway of fire
Got spam? Get spastic http://spastic.sourceforge.net
--
Psyche-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list