Centos

Exim 垃圾郵件錯誤要記錄並且不會將郵件發送到多個域

  • March 12, 2013

我有一台安裝了 CentOS 5.6 的伺服器。它有 exim + dovecot + mysql + roundcube 的工作郵件伺服器。

我的日誌文件 /var/log/exim/main.log 已經是 3 Gb 並且還在繼續增長。它由以下條目組成:

2013-03-12 18:09:42 1UEaWr-0003VI-Ts == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:42 1UEIcr-0005k3-Mc == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:42 1UE8ro-00011h-8S == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:42 1UEtDl-0006jP-8h == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEipX-0001Ub-5z == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UESyw-0003mv-E0 == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEA9c-0005gO-71 == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UE7rt-00074q-2G == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEkev-0004od-HA == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEsBj-0002dM-Mt == root@mail.mydomain.com R=dnslookup defer (-1): host lookup did not complete

我知道這是因為 mail.mydomain.com 根本不是 FQDN 或真實域名。但它從哪裡來?我檢查了 /etc/exim/exim.conf 和 /etc/ 中的每個文件,但找不到這個域字元串。此外,我檢查了 vexim 數據庫的表格 - 沒有結果。我怎樣才能改變它?

然後,當我嘗試發送郵件時,我在日誌中收到了這個錯誤(我已經替換了真實的郵件和 IP 地址):

2013-03-12 18:13:30 1UFJGl-0004c9-2X == rcpt@to.com R=dnslookup T=remote_smtp defer (-45): SMTP error from remote mail server after MAIL FROM:<root@mail.mydomain.com> SIZE=1406: host mail2.to.com [x1x.x1x.x1x.x1x]: 451 4.1.8 Sender address <root@mail.mydomain.com> domain does not resolve
2013-03-12 18:14:34 1UFJGl-0004c9-2X SMTP error from remote mail server after RCPT TO:<rcpt@to.com>: host mail.to.com [x1x.x1x.x1x.x1x]: 450 4.7.1 Client host rejected: cannot find your hostname, [x2x.x2x.x2x.x2x]

我想這個問題的根源是一樣的。但是找不到解決辦法。我認為我的問題是將 exim (root@mail.mydomain.com) 的預設 FROM 欄位替換為 no-reply@realfqdndomainname.com

有什麼幫助嗎?謝謝。

您沒有為您的 IP 地址正確設置反向 DNS(PTR 記錄)。

為您的 IP 地址設置一條 PTR 記錄,該記錄解析為有效的主機名,其 A 記錄解析為相同的 IP 地址。

引用自:https://serverfault.com/questions/486958