Xforward with amavisd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Xforward with amavisd

Waqar Khan
Firstly here is the relevant config:


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


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

Loading...