Hello,
I am the administrator of a Postfix setup with multiple domains,
multiple IP addresses and SSL configured and up and running. Everything
was configured by myself and I have no restrictions on the mail server
machine so basically I can do whatever you suggest.
Today I received a new requirement and I'm not being able to configure
it, even after reading lots of resources around the web. Email messages
for each separate domain must be sent FROM their respective IP address.
The essential part of master.cf looks like this:
domain1.com:smtp inet n - - - - smtpd
-o myhostname=domain1.com
-o smtpd_tls_cert_file=/home/root/certs/wp/webp.crt
-o smtpd_tls_key_file=/home/root/certs/wp/webp.key
-o smtp_bind_address=1.1.1.1
domain2.com:smtp inet n - - - - smtpd
-o myhostname=domain2.com
-o smtpd_tls_cert_file=/home/root/certs/fr/fr.crt
-o smtpd_tls_key_file=/home/root/certs/fr/fr.key
-o smtp_bind_address=2.2.2.2
domain1.com:smtps inet n - - - - smtpd
-o myhostname=domain1.com
-o smtpd_tls_wrappermode=yes
-o smtpd_tls_cert_file=/home/root/certs/wp/webp.crt
-o smtpd_tls_key_file=/home/root/certs/wp/webp.key
-o smtp_bind_address=1.1.1.1
domain2.com:smtps inet n - - - - smtpd
-o myhostname=domain2.com
-o smtpd_tls_wrappermode=yes
-o smtpd_tls_cert_file=/home/root/certs/fr/fr.crt
-o smtpd_tls_key_file=/home/root/certs/fr/fr.key
-o smtp_bind_address=2.2.2.2
No matter what I do the messages are always sent with IP address 1.1.1.1
I thought smtp_bind_address should define the IP address used to send
messages but it's completely ignored.
I need help with this one if you can.
Thanks