有一天我正在开发一个sendmail服务器,真的很沮丧。 某个地方的某个机器正在告诉它把一个域当作是本地的。 问题是,我无法弄清楚在哪里完成。 这不是在本地主机名文件…没有什么在HOSTS文件中,DNS指向远离服务器…我grep'd在sendmailconfiguration目录中的域名…我什么都没有。 上周我可以通过将本地域的未知用户指向另一个邮件服务器来解决这个问题,但是今天仍然困扰着我,我无法弄清楚在sendmail中将域名视为本地的configuration。
我找出是什么原因造成的。 出于某种原因,有多个PTRlogging设置,其中一个是有问题的域名。 Sendmail正在对主机名进行PTR查找,并自动添加作为本地域返回的所有内容
你尝试过RTFM吗?
sendmail uses the following configuration files: Filename Function /etc/mail/access sendmail access database file /etc/mail/aliases Mailbox aliases /etc/mail/local-host-names Lists of hosts sendmail accepts mail for /etc/mail/mailer.conf Mailer program configuration /etc/mail/mailertable Mailer delivery table /etc/mail/sendmail.cf sendmail master configuration file /etc/mail/virtusertable Virtual users and domain tables
不超过10秒的STFW