Home |
Comics |
Gallery |
(Amazon|
ThinkGeek) wishlist |
Donations |
Impressum |
The Book of Postfix |
Postfix - Einrichtung, Betrieb und Wartung |
Blog |
|
38.107.191.116
Question:
Would it be possible to forward all mail from one sender to one recipient despite the original mail specified another recipient?
Answer:
The FILTER: feature in the experimental snapshots can do this with some work.
In main.cf:
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/check_from
check_from contains:
suspect@example.org FILTER:redirect
In master.cf you define the redirect transport:
redirect ... pipe ... argv=investigate.pl ${sender} ${recipient}
Then do the right thing in the investigate.pl script. See
FILTER_README for hints.The official release of Postfix cannot do this selectively (based on sender).
This file was last modified 17. Jan 2007 by root