转发到子域时,DNS查找失败

为了迁移到一个新的邮件服务器与小dns问题/宕机时间,我已经build立了第二个后缀,目前可以在一个子域mxlogging,例如。 主后缀接受邮件为[email protected],而第二个后缀接受邮件为[email protected]

我向postfix添加了一个转发规则,表示postfix应该将发往[email protected]的邮件转发到[email protected](用于常规本地交付)和[email protected]。 本地交付仍然按预期工作,但是在尝试将邮件转发到新的mx时,postfix会在转发地址的末尾加上域部分,导致[email protected],这当然会失败,邮件反弹。

为什么后缀混淆了别名的方式,我该怎么做呢?

这听起来很复杂。 为什么不只是降低MXlogging的TTL。 暂时保留旧的服务器。 更改MXlogging。 等到TTL过期并确认电子邮件正在stream向新的服务器。 收集旧服务器上剩余的电子邮件,最后,分解旧服务器。

默认情况下,Postfix会将服务器的域添加到本地提交的邮件的末尾。 这在这里描述: Postfixconfiguration参数: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". 

您可以通过添加尾点来更改邮件转发规则,或者在main.cf中closuresappend_dot_mydomain