答案1
这听起来很复杂。为什么不直接降低 MX 记录上的 TTL。暂时保留旧服务器。更改 MX 记录。等到 TTL 到期并确认电子邮件正在流向新服务器。收集旧服务器上所有剩余的电子邮件,最后停用旧服务器。
答案2
默认情况下,Postfix 会将服务器的域名附加到本地提交的邮件末尾。描述如下: Postfix 配置参数:append_dot_mydomain(默认:是)
append_dot_mydomain (default: yes)
With locally submitted mail, append the string ".$mydomain" to addresses that have no ".domain" information. With remotely submitted mail, append the string ".$remote_header_rewrite_domain" instead.
Note 1: this feature is enabled by default. If disabled, users will not be able to send mail to "user@partialdomainname" but will have to specify full domain names instead.
Note 2: with Postfix version 2.2, message header address rewriting happens only when one of the following conditions is true:
The message is received with the Postfix sendmail(1) command,
The message is received from a network client that matches $local_header_rewrite_clients,
The message is received from the network, and the remote_header_rewrite_domain parameter specifies a non-empty value.
To get the behavior before Postfix version 2.2, specify "local_header_rewrite_clients = static:all".
您可以通过添加尾随点来更改邮件转发规则,或者append_dot_mydomain
在 main.cf 中关闭。