更新了伺服器的主機名,但舊主機名稱仍出現在 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

相關內容