procmail
[Top] [All Lists]

Re: Redirect Based on any header

1997-05-01 11:12:00
Liston Bias <bias(_at_)wombat(_dot_)eng(_dot_)fsu(_dot_)edu> writes:
Does anyone know how to redirect mail to a folder based on who the mail
was sent to? 

I realize I can split this out header by header as follows, but I'm not
sure how this would cover mail sent to listservs and bcc's.  I am just
looking for a recipe that says any use of user(_at_)virtual(_dot_)com in the 
header
(except From field) should execute the said action. 

No, you don't want to look at the header at all, but rather the
envelope recipient address.  The problem is that that address is not
normally included in the header.  You need an assist from your MTA
(e.g., sendmail) to get access to it.

How is your virtual domain currently set up?  It may be that a small
change there will get you the information you need.

Philip Guenther

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