我在我的cf文件中有以下行
Fw/etc/mail/local-host-names
并在local-host-names文件中跟随以下行
mydomain.com hostname.mydomain.com
但是当我发送邮件到[email protected] ,sendmail正在接收邮件。 otherhost.mydomain.comparsing为私有IP地址之一。 可能是什么原因?
在你的提示types中:
$ sendmail -bt > $=w
$ = w是一个包含sendmail认为是本地的所有名字的类。 这些包括/etc/mail/local-host-names那些以及sendmail在检查机器的networking接口后认为是本地的/etc/hosts那些。