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
1.2.3.4:smtp inet n - - - - smtpd -o smtpd_sasl_auth_enable=yes
1.2.5.6:smtp inet n - - - - smtpd -o smtpd_sasl_auth_enable=yes -o myhostname=mail.example.com
Now it listens on 1.2.5.6 but mail sent through it still shows it’s from 1.2.3.4. 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.