[PLUG] Procmail, Sendmail, Spamassassin and forwarding

Randal L. Schwartz merlyn at stonehenge.com
Wed Apr 2 15:06:02 UTC 2003


>>>>> "Terry" == Terry Griffin <griffint at pobox.com> writes:

Terry> If users do their forwarding with a ~/.procmailrc file instead of a
Terry> ~/.forward file, then fowarding will happen after the message has
Terry> been processed by any system-wide filters. The user's ~/.procmail 
Terry> file would look like this:

Terry>    :0
Terry>    ! user at somewhere-else.com

Terry> The trick is to make sure that the global procmail file (/etc/procmailrc)
Terry> never saves email to $DEFAULT, thus bypassing the user's procmailrc
Terry> file. Instead the global file must allow all "good" mail to fall through 
Terry> to the end, in which case the user's procmail file will take over and
Terry> handle final delivery.

I've found that

  DEFAULT="! user at somewhere-else.com"

also works nicely.  And then you can be SURE that it *does* save
mail to DEFAULT. :)

(I might be slightly off on the syntax... maybe you don't
need the !)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



More information about the PLUG mailing list