procmail
[Top] [All Lists]

Re: procmail questions

1999-03-16 12:35:26
"Help Desk" <hostmaster(_at_)resell(_dot_)net> writes:
If a user places multiple email addresses in the 'To' header with commas
betweeen the addresses, like this:

To: 
adr1(_at_)domain(_dot_)com,adr2(_at_)domain(_dot_)com,adr3(_at_)domain(_dot_)com

procmail is only seeing the first address routing it correctly. the
others are ignored.

how can this be fixed (and when the same multi. addressing occurs in a CC
header)?

You're routing mail based on addresses in the header instead of the
envelope recipient list.  This means that your routing will be unable
to handle Bcc's, redirects, or mailing lists.  In order to do this
correctly you will have to have the MTA save the envelope recipient
list somewhere and route the message based on that.  Exactly how to
do this depends on your MTA (sendmail, qmail, postfix, etc) and how
the virtual domain is setup.

For more information on why routing on the header is a bad thing visit:

        http://www.iki.fi/~era/procmail/mini-faq.html#advanced


Doing it right will also solve the multiple recipients problem.


Philip Guenther

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