Debian sendmail 不傳送到 gmail

Debian sendmail 不傳送到 gmail

我想使用命令sendmail來發送郵件。它通常有效 -> 我可以將郵件發送到我的電子郵件 (@icloud.com),並且它可以正常工作,沒有任何問題。但如果我想發送到 @gmail 地址,那就不行了。沒有錯誤訊息或類似的訊息,只是電子郵件未到達電子郵件地址。我能做些什麼?或者可能是什麼問題?

這次我收到了來自郵件發送子系​​統的訊息:

The original message was received at Mon, 18 Sep 2023 08:23:16 +0200
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
< (The mail address @gmail) >
(reason: 550-5.7.1 [ (IPv6) ] Our system has detected that)

----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
DATA
<<< 550-5.7.1 [ (IPv6 Address) ] Our system has detected that
<<< 550-5.7.1 this message does not meet IPv6 sending guidelines regarding PTR
<<< 550-5.7.1 records and authentication. Please review
<<< 550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information
<<< 550 5.7.1 . ck9-20020a170906c44900b0099de8722195si7349253ejb.747 - gsmtp
554 5.0.0 Service unavailable

和:

Reporting-MTA: dns; WS301.WS301.intern
Received-From-MTA: DNS; localhost
Arrival-Date: Mon, 18 Sep 2023 08:23:16 +0200

Final-Recipient: RFC822;(@gmail.com address)
Action: failed
Status: 5.7.1
Remote-MTA: DNS; gmail-smtp-in.l.google.com
Diagnostic-Code: SMTP; 550-5.7.1 [ (IPv6) ] Our system has detected that
Last-Attempt-Date: Mon, 18 Sep 2023 08:23:17 +0200

答案1

錯誤訊息非常具體:

我們的系統偵測到此訊息不符合有關 PTR 記錄和驗證的 IPv6 傳送準則。請查閱https://support.google.com/mail/?p=IPv6AuthError了解更多信息

點擊連結會給很多普遍合理的建議。不過,Gmail 的詳細資訊始於「遵循建議的電子郵件伺服器做法」部分:

  • 您的傳送 IP 位址必須有 PTR 記錄。 PTR 記錄驗證傳送主機名稱是否與傳送 IP 位址關聯。每個 IP 位址必須對應到 PTR 記錄中的主機名稱。 PTR 記錄中指定的主機名稱必須具有引用傳送 IP 位址的轉送 DNS。

  • IPv6 授權錯誤可能表示傳送伺服器的 PTR 記錄未使用 IPv6。如果您使用電子郵件服務供應商,請確認他們正在使用 IPv6 PTR 記錄。

  • 如果按照本文中的指南進行操作後仍然遇到郵件遞送問題,請嘗試對寄件者的電子郵件傳送問題進行故障排除

反過來,遵循這裡會導致谷歌的這一聲明,

相關內容