procmail
[Top] [All Lists]

Re: using procmail twice

2001-07-05 08:13:13
Stefan Rauch <srauch(_at_)spyderworks(_dot_)de> writes:
I'm just playing around with it, but would be intrested if this possible.
I configured one mailbox to get all the mail for some users. I catch the mail 
form this mailbox and route it via an alias to root. In the root home dir I 
use this .procmailrc:

MAILDIR=/var/spool/mail
LOGFILE=/var/log/procmail
VERBOSE=yes
:0:
* ^TOadam(_at_)spyderworks\(_dot_)de
adam


YOU ARE TRYING TO ROUTE EMAIL BASED ON THE MESSAGE HEADER.  THIS DOES
NOT WORK.  THe MTA which puts all the mail for your domain into a single
folder needs to be configured to save the envelope recipient somewhere
so that you can extract it later to correctly route the messages.
As has been discussed *MANY* times on this mailing list, schemes like
the one you show above don't correctly handle mailing lists, bcc's,
or resent messages.

I suggest searching the mailing list archives for "envelope recipient"
and "virtual domain" and reading carefully what it returns.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>