我使用 postfix 和 dovecot 製作了一個電子郵件伺服器,但無法向 Gmail 發送電子郵件!它與雅虎完美配合

我使用 postfix 和 dovecot 製作了一個電子郵件伺服器,但無法向 Gmail 發送電子郵件!它與雅虎完美配合

我在 Ubuntu 12.04 上使用 postfix、dovecot 和 roundcube 作為 Web 介面製作了一個電子郵件伺服器。從 Yahoo 發送和接收郵件正常工作(嗯,說實話,延遲了 5 分鐘,我不知道為什麼...),但是當我嘗試向我的 gmail 地址發送電子郵件時,我得到了這個錯誤:

 I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<[email protected]>: host gmail-smtp-in.l.google.com[2607:f8b0:4001:c0d::1a]
    said: 550-5.7.1 [2602:ff62:104:10c::] Our system has detected that this
    message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR
    records and 550-5.7.1 authentication. Please review 550-5.7.1
    https://support.google.com/mail/?p=ipv6_authentication_error for more 550
    5.7.1 information. 201si4583487ioc.208 - gsmtp (in reply to end of DATA
    command)

誰能給我一些想法嗎?我做錯了什麼?我在從 Yahoo! 發送和接收資料時遇到延遲怎麼辦?

乾杯!

答案1

您的電子郵件伺服器正在嘗試透過 IPv6 連線到 gmail。根據錯誤訊息,您沒有PTR記錄對於指向您的伺服器的 IPv6。

如果您可以自己建立 PTR 記錄,那麼您應該這樣做。如果不能,則必須詢問伺服器提供者。

PTR 記錄範例如下:

1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. 1h IN PTR host1.example.com.

相關內容