[plug] Procmail
Matt Kemner
zombie at wasp.net.au
Mon Jan 15 10:59:42 WST 2001
On Sun, 14 Jan 2001, [iso-8859-1] Anne Busby wrote:
> :0
> * ^To:.*anne at clearsol.iinet.net.au
> ! anne at localhost
[SNIP]
> This works. Any messages sent to me I get. I also get
> the bcc and other copies of the emails.
Have you tried it with the Delivered-To: headers?
If you filter only by the "To:" (etc) addresses then you will have
problems with mailing lists or BCCs where the To:/CC: addresses will not
match the intended recipient. The Delivered-To: headers are added by
iiNet's mailserver, after it has worked out whom to deliver it to, so
should be the most accurate.
> Any ideas ?? The only difference I see in the headers
> is X-Envelope-To: usernames.
I think you can probably use those instead of the Delivered-To: headers
also.
> Also, is there a way with wild cards to reduce the
> number of rules I.E. if the username starts anne* it
> gets sent to anne at localhost. I just don't want to
> duplicate all the rules for 'Cc'.
That's why you should use one of the headers generated by an MTA rather
than one of the headers generated by the sender, because even if you add
all the rules for To: and CC: you will not catch emails sent to you where
you appear in neither - as is the case with mailing lists.
- Matt
"Think of computer security like powertools. The day you think you are totally
safe is the day you end up hurt." -- Alan Cox 2000/12/21
More information about the plug
mailing list