问题原文
原帖链接 · SUNITA GUPTA · CC BY-SA 4.0
I am trying to setup MTA which should submit different intranet mail gateways based on the recipient's domain. For that I thinks transport_maps in postfix should be setup for selective domains; if recipient domain is not matched with any line in transport_maps than it will do default delivery which is smtp. What I am confused is whether to use relay or use smtp as transport types and what difference will it make.
Based on received answers one difference is MX priortization, but I turn off mx discovery by enclosing ip/domain in big brackets, will both of them be same or is there any other difference which I am missing.
已采纳解答
原帖链接 · shodanshok · CC BY-SA 4.0
relay tells postfix to deliver emails via a specific mailserver. You can see it as a simplified and faster delivery protocols, which does not obey to things as MX priority specifications.
smtp transport is the full SMTP implementation, which strictly follows the relative RFCs.
To sent emails for a domain via a specific server I would use relay. This is consistent with transport man page:
relay_transport (default: relay:)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
