To send mail to a script depending on the arriving SMTP port: /etc/postfix/master.cf: 1.2.3.4:smtp inet n - n - - smtpd -o content_filter=script_for_1_2_3_4: script_for_1_2_3_4 unix - n n - - pipe flags=RX user=yan argv=python /usr/local/bin/test2.py ${recipient}
1.3.5.7:smtp inet n - n - - smtpd -o content_filter=script_for_1_3_5_7: script_for_1_3_5_7 unix - n n - - pipe flags=RX user=yan argv=python /usr/local/bin/test1.py ${recipient} This will override transport map settings. Wietse