使用 postfix 發送電子郵件無法到達收件人

使用 postfix 發送電子郵件無法到達收件人

我正在嘗試解決我的 postfix 伺服器不會向我的 GMail 帳戶發送電子郵件的問題(作為測試)。

來自/var/log/mail.log:

Jan  6 07:46:37 todo postfix/smtp[5818]: connect to alt1.gmail-smtp-in.l.google.com[64.233.186.27]:25: Connection timed out
Jan  6 07:46:37 todo postfix/smtp[5818]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c00::1b]:25: Network is unreachable
Jan  6 07:46:37 todo postfix/smtp[5818]: 334FF1391C9: to=<[email protected]>, relay=none, delay=1443, delays=1383/0.01/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c00::1b]:25: Network is unreachable)

我不想透過 Gmail 轉發,但接收電子郵件位於 Gmail 地址。 postfix是否試圖以某種方式使用gmail作為中繼?

在 /etc/postfix/main.cf 我有:

relay_host = 

答案1

StackOverflow 上的另一個答案:亞馬遜似乎阻止了連接埠 25 上的出站流量,並且必須提交請求才能刪除此封鎖:

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/?nc1=h_ls

感謝傑拉爾德指出這是防火牆問題!

相關內容