Linux

Ubuntu 接收郵件伺服器

  • April 3, 2011

我正在嘗試設置和配置一個可以接收電子郵件的郵件伺服器,但是我對 Postfix 或 Exim4 沒有任何運氣。我目前配置了 Exim4,它可以正常發送郵件,但是無法接收。當嘗試從我的其他帳戶 (gmail) 向我的伺服器上的帳戶發送郵件時,我收到以下回复:

Delivery to the following recipient failed permanently:

   root@mydomain.tld

Technical details of permanent failure: 
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 Unrouteable address (state 14).

我怎樣才能解決這個問題?是 MX 記錄問題還是 Exim4 配置錯誤?

通常,您只需使用自動配置即可使您的 Exim4 處於可工作狀態:

# dpk-reconfigure exim4-config

最重要的答案是您設置所需的傳遞類型(您想要第一個,直接傳遞/接收的消息)和域配置的答案。域配置是一系列問題,詢問伺服器將考慮哪些域進行本地傳遞等。正確回答這些問題將使您的伺服器正常工作。

您可以通過直接遠端登錄到郵件伺服器來測試是否是 DNS 錯誤或 exim 問題。然後手動鍵入 SMTP 命令

telnet youmailserver.net 25
helo server
mail from:test@test.com
rcpt to:test@yourdomin.com
data
test
.

以上不是嚴格有效的 SMTP,但應該足以供您測試。

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