Postfix无法发送邮件到谷歌服务器 – >从GOOGLE SERVER

嗨,我有一个由谷歌托pipe的“计算引擎”。 当我尝试通过Postfix发送电子邮件时,它不起作用。

错误日志说:

postfix / smtp [16416]:16C5820035:to = <some_gmail[email protected]>,relay = none,delay = 60,delay = 0.15 / 0.02 / 60/0,dsn = 4.4.1,status = deferred(连接到alt2 .gmail-smtp-in.l.google.com [2404:6800:4003:c01 :: 1b]:25:networking无法访问)

当我尝试ping主机名或它的IP地址,它工作正常。 这是一种错误configuration?

问候,克里斯

Google不允许出站连接发送电子邮件。 端口25,465和587被阻塞。 您将需要使用第三方(如Sendgrid)发送邮件。 更多信息可以在这里find: https : //cloud.google.com/compute/docs/tutorials/sending-mail/