执行 sudo apt upgrade 后,我的 EXIM4 开始显示错误,现在某些服务器返回此消息:
SMTP error from remote mail server after HELO mycompanyname: 504 5.5.2 : Helo command rejected: need fully-qualified hostname
我的主机名和 FQDN 应该是什么?
这是我的 /etc/host:
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
127.0.1.1 MyOldDropletName MyOldDropletName
127.0.0.1 localhost
<internal_ip_to_another_droplet> DropletName
这是我的主机名 -f:
mycompanyname
这是我的 exim4 配置(update-exim4.conf.conf):
dc_other_hostnames='OldDropletName; smtp.mycompany.com; smtp; localhost.localdomain; localhost'
我之所以说 OldDropletName 是因为该网站托管在 DigitalOcean 上,并且每个服务器(droplet)都有一个别名,这个别名就是 OldDropletName。