I've a postfix server running on a centOS machine. I added a secondary IP but the emails are always being sent by the 1st IP.
I have A Records:
m1.domain.com -> 188.8.131.52 m2.domain.com -> 184.108.40.206
And the reverses are:
220.127.116.11 -> m1.domain.com 18.104.22.168 -> m2.domain.com
If I connect with a simple PHPmailer to m1.domain.com I need to send the email from 22.214.171.124, if I connect to m2.domain.com I need to send the email from 126.96.36.199
I tried to use the
sender_dependent_default_transport_maps defining 2 different
smtp_bind_address on master.cf but it does nothing... maybe because I'm using this configuration with postfix + dovecot + mysql.
Thank you in advance.