Answers:
您实际上并不需要设置MX记录来进行电子邮件传递。“ A”记录也可以完成这项工作。有关MX记录,请参阅Wikipedia上的“返回地址记录”。
为了使假冒的主机在/etc/hostsPostfix的工作,你必须告诉它实际使用并不仅仅是DNS-仅通过设置smtp_dns_support_level = disabled在/etc/postfix/main.cf。有关详细信息,请参见postconf文档。
或者,您可以将MTA(例如Postfix)配置为对域使用特定的传输。对于Postfix使用transport_maps。
disable_dns_lookups = yes到/etc/postfix/main.cf完成了工作(smtp_host_lookup = native没有)。谢谢你
status=deferred (Host or domain name not found. Name service error for name=example.com type=MX: Host not found, try again)。确定example.com在中设置了正确的IPetc/hosts。