Score:0

Postfix alternate transport based on recipient SMTP server

de flag

Is there a way in Postfix, similar to the transport table, to specify different transports for outbound mail based on a recipient mail server?

In other words, if xyz.com is a large mail hosting provider and it's determined that user@destination.com relays through mx-01.xyz.com, can I configure Postfix to send all *.xyz.com-bound messages through Amazon SES instead without having to enumerate all the possible recipient domains?

Thanks!

Score:0
cm flag

Why are you trying to be smarter than Postfix? That is how SMTP works. Find the MX for destination.com and send the mails there.

If that is not the final destination, then what do you care? That is the problem of the MX host.

What do you do when the MX of destination.com changes? Do you notice that? Will you make changes in time? Don't change the protocol, just stick to it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.