procmail
[Top] [All Lists]

Re: Forward based on account sent to....

1998-05-19 11:08:47
On Tue, May 19, 1998 at 01:28:28PM -0400, Christopher B. Smith wrote:
Hi, I'm a procmail newbie, and I'm not even sure if procmail can do
all I need it to do.

How (if possible), can I setup procmail so I have a filter for mail
sent to a specific account (i.e. when sendmail get's the RCPT
field)? I'd use aliases, but this account is actually on a totally different
mail server.

If your mail server puts the Envelope-To: field in the mail, you're
able to use it within procmail.  If not, use a mailer that is released
under a free license and hack it into it.

RTFM, especially ^TO and the regext that procmail scans.

Regards,

        Joey

-- 
  / Martin Schulze  *  joey(_at_)infodrom(_dot_)north(_dot_)de  *  26129 
Oldenburg /
 / A mathematician is a machine                                  /
/                           for converting coffee into theorems /

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