postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: one Postfix instance serving messages in two

Re: one Postfix instance serving messages in two different directions

From: Wietse Venema <wietse_at_nospam>
Date: Mon Oct 25 2010 - 18:54:38 GMT
To: Postfix users <postfix-users@postfix.org>

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