[問題] GCP sendmail 587 timeout

看板Linux作者 (NidgetGod)時間3年前 (2021/02/27 22:44), 3年前編輯推噓1(106)
留言7則, 4人參與, 3年前最新討論串1/1
根據 GCP 文件 https://cloud.google.com/compute/docs/tutorials/sending-mail 目前可以透過非 25 port 發信 因此在本機上裝了 sendmail 設定 relay 時使用 587 port 透過 netstat -plant 可以確定 sendmail 有用 587 port 但是 /var/log/mail.log 會看到以下錯誤 Feb 27 14:33:29 foobar sm-mta[3101]: 11111111111: to=<foobar@gmail.com>, delay=00:02:37, xdelay=00:02:37, mailer=esmtp, pri=120337, relay=alt4.gmail-smtp-in.l.google.com. [142.250.136.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com. 但是在防火牆的紀錄裡面可以看到 ALLOWED 的紀錄 事實上,用 telnet alt4.gmail-smtp-in.l.google.com 587 也會 timed out 想問看看有人在 computer engine 上用本機 sendmail 成功發信嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.133.99.231 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1614437098.A.5AC.html ※ 編輯: nidgetgod (220.133.99.231 臺灣), 02/27/2021 22:47:13 ※ 編輯: nidgetgod (220.133.99.231 臺灣), 02/27/2021 22:49:12

02/28 17:00, 3年前 , 1F
那個domain的587確定是可以連的嗎? 例如有測過自己的電腦
02/28 17:00, 1F

02/28 17:00, 3年前 , 2F
可以透過他送信嗎?
02/28 17:00, 2F

02/28 17:37, 3年前 , 3F
alt4.gmail-smtp-in.l.google.com 587 port就沒開啊
02/28 17:37, 3F

02/28 17:39, 3年前 , 4F
Google 只有 smtp.gmail.com 有開 465和587
02/28 17:39, 4F

03/01 01:13, 3年前 , 5F
google cloud 文章有寫不開放這個直接對外,但是有支援
03/01 01:13, 5F

03/01 01:13, 3年前 , 6F
限定可以代為 relay. 建議請直接看一下官方文傑說明
03/01 01:13, 6F

03/03 18:11, 3年前 , 7F
不給對外 但有給mailgun的註冊code 會多給配額
03/03 18:11, 7F
文章代碼(AID): #1WEbhgMi (Linux)