根据 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=<[email protected]>,
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 成功发信吗?