I recently migrated to a new server (running postfix 3.3.0) and noticed that the
smtp_bind_address setting in master.cf is having no effect. The server in question has 10 ipv4 addresses and it's important that outgoing mail is routed through the correct one. Here is a snippet of what I have (192.168.100.1 is only an example — the actual ip is a real wan address):
smtp inet n - y - - smtpd -o smtp_bind_address=192.168.100.1 smtps inet n - y - - smtpd -o smtp_bind_address=192.168.100.1
I also have amavis and postsrsd running alongside this mailserver so the mail is being handed off from one service to the next and to be honest I'm a bit confused about the chain of events, but previously this configuration was working perfectly.
I tried moving
smtp_bind_address to main.cf and it did work, but other problems arose since amavis and postsrsd both expect mail to be handed off via 127.0.0.1.
How can I bind outgoing mail to a specific address in conjunction with my content filters?