Postfix, forwarding a copy of email based on header
I was wondering if there is a way to forward a copy of an incoming email, to another email, based on a "From:" field or subject on a postfix mail server.
I read a bit on postfix's header_checks, but anything similar to forwarding a copy of email would be the REDIRECT function in header_checks. This function can redirect an email to only one address, and I need to forward it to at least two addresses. REDIRECT doesn't also redirect to an alias. On this mail server I have postfix and amavis with spamassassin and clamav as filters. Anyone know of a way to accomplish this? |
Is the To: header to a local recipient?
|
Oops, i mean't the "From:" field. From field is not a local recipient.
|
sounds like maybe a job for procmail, maildrop, or some other MDA (Mail Deliver Agent).
http://www.procmail.org/ Quote:
http://www.courier-mta.org/maildrop/ Quote:
|
All times are GMT -5. The time now is 05:42 PM. |