Home | Comics | wishlist | Impressum | Datenschutzerklärung | 54.159.44.54


forward all mail from one sender to one recipient despite the original mail specified another recipient

credits go to Victor Duchovni et al.

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).


© by Ralf Hildebrandt
This document contains links to external information sources that I do neither monitor nor control. I explicitly disclaim any liabilities in respect to external references.
You are getting this document without any guarantees. Any methods shown above are meant as demonstration and may be wrong in some place. You may damage your system if you try to follow my hints and instructions. You do this at your own risk!

This file was last modified 17. Jan 2007 by root