On 2011-11-15 17:52, Marcin Hlybin wrote:
Hello,
I am trying to add the second IP address to the same Postfix instance. I would
like to separate mail traffic not creating many postfix instances.
In master.cf I have:
1.2.3.4:smtp inet n - - - - smtpd -o myhostname=mail1.domain.com
1.2.3.5:smtp inet n - - - - smtpd -o myhostname=mail2.domain.com
smtp unix - - - - - smtp -o smtp_bind_address=1.2.3.4
smtplist unix - - - - - smtp -o smtp_bind_address=1.2.3.5
Now, I can't set up a transport map because I don't want to specify origin
domains.
My postfix works as a mail server for web applications.
Every mail that goes to 1.2.3.4 (mali1.domain.com) should go out with smtp
transport and every mail that goes to 1.2.3.5 (mail2.domain.com) should go out
with smtplist transport.
That is, every mail going to specific IP should go out with the same IP.
How can I do that?
This is not possible in a single instance.
--
J.