1

I have a server(using postfix) to relay emails to a smtp server. I am tasked with separating the emails by the domain(2 to be exact) to send to 2 separate smtp servers. The idea was to use transport as this suggestion: Postfix to relay mails to other SMTP for particular domain.

For example I have an email send to the address test@domain1.com which points to the existing smtp server(setup using relay_host). Now I want to make it so if I have email sending to test@domain2.com, this will send to a different smtp server(spoofed apache server to read incoming messages).I have a generally idea how the apache part will work but please let me know if there some stuff regarding postfix to enable the forwarding of the second smtp server correctly, such as authentication issues.

Much thanks.

0 Answers0