Postfix is listening on several different IPs (not ANY, only two of my four) and I want the mail header to show the hostname of the IP the mail went through, instead it’s all showing my main IP.
I’ve already sorted out how to make postfix bind to only two of my four IPs. In my master.cf I added…
localhost:smtp inet n - - - - smtpd -o smtpd_sasl_auth_enable=yes
184.108.40.206:smtp inet n - - - - smtpd -o smtpd_sasl_auth_enable=yes
220.127.116.11:smtp inet n - - - - smtpd -o smtpd_sasl_auth_enable=yes -o myhostname=mail.example.com
Now it listens on 18.104.22.168 but mail sent through it still shows it’s from 22.214.171.124. It doesn’t look like the second -o is getting picked up. Any ideas?
Running Ubuntu 8.04 LTS with virtualmin 3.703 GPL.
PS: How do you disable the header that shows the sender’s IP? Ideally it’d go in one of the smtpd launch lines so that I can do it on one ip, which only trusted users can log in to thanks to ipfilter.