Firstly here is the relevant config:

main.cf:

smtp_send_xforward_command=yes
content_filter = amavisfeed:[127.0.0.1]:10024

master.cf:

smtp      inet  n       -       n       -       -       smtpd -o
content_filter=smtp-amavis:[127.0.0.1]:10024

smtp-amavis unix -      -       -     -       2  smtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes
        -o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n  -       -     -       -  smtpd
        -o content_filter=
        -o strict_rfc821_envelopes=yes


This postfix server is a relay host which passes mail to a backend server.
I want to send the xforward command to the backend with the originating IP
(where the postfix server accepted the mail from). However I always see:
XFORWARD ADDR=127.0.0.1 PORT=xxxxx

If I disable amavisd, I get the correct ADDR field the xforward command to
the backend server. How can I configure postfix to inherit the ADDR field
and pass it through with the correct IP address?

Regards
Waqar

Reply via email to