更新了服务器的主机名,但旧主机名仍然出现在 Postfix 日志中?

更新了服务器的主机名,但旧主机名仍然出现在 Postfix 日志中?

从我们的 CentOS 6.4 Media Temple DV 服务器向某些地址发送电子邮件时出现退回问题。

我不是专家,但检查邮件日志后发现,邮件被退回是因为收件人服务器无法识别发件人的域。

said: 550 <[email protected]>: Sender address rejected: Domain not found (in reply to MAIL FROM command)

但我不明白为什么 mt-toltech.co.uk 会出现在日志中,因为我们将服务器的主机名和主域更改为 toltechdigital.co.uk

以下内容也出现在日志中

toltechdigital postfix/smtp[3443]: 370A5E38EE: to=<[email protected]>,

我想这就是我想要弄清楚的,这个字段设置在哪里。

执行postconfig -n返回:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10240000
mydestination = mail.toltechdigital.co.uk, localhost.toltechdigital.co.uk, localhost, toltechdigital.co.uk
mydomain = toltechdigital.co.uk
myhostname = toltechdigital.co.uk
mynetworks = 127.0.0.0/8 [::1]/128 70.32.91.66/32
myorigin = mail.toltechdigital.co.uk
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = 
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.8.17/README_FILES
sample_directory = /usr/share/doc/postfix-2.8.17/samples
sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_send_xforward_command = yes
smtp_tls_security_level = may
smtp_use_tls = no
smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_milters = , inet:127.0.0.1:12768
smtpd_proxy_timeout = 3600s
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated
smtpd_timeout = 3600s
smtpd_tls_cert_file = /etc/postfix/postfix_default.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_security_level = may
smtpd_use_tls = yes
transport_maps = hash:/var/spool/postfix/plesk/transport
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:31
virtual_mailbox_base = /var/qmail/mailnames
virtual_transport = plesk_virtual
virtual_uid_maps = static:110

我对配置 Postfix 的经验有限,所以我认为我的配置有问题,但我仍然不明白旧主机名的提及来自哪里。

有什么想法吗?

答案1

看起来您已myorigin直接在配置文件中设置了该参数。但是,您可能需要检查该/etc/mailname文件以查看是否仍存在旧主机名的任何残留。也许 Postfix 的某些部分仍在使用它。

另外,您是否使用该命令重建了别名数据库newaliases

相关内容