如何在 Google Cloud VM 上设置邮件服务器?

sdf*_*g45 6 ubuntu email-server google-cloud-platform

我想知道如何在 Google VP 实例上设置像 postfix 这样的邮件服务器。

我正在运行 Ubuntu 16.04(和 LAMP 堆栈),无法让邮件服务器从网站发送电子邮件。

我已经安装了postfix,并打开了端口25,但没有运气。

关于如何进行的任何想法?

错误日志:网络不可达、连接超时

小智 6

根据https://cloud.google.com/compute/docs/tutorials/sending-mail/,您无法以通常的方式设置邮件服务器,因为端口 25、465 和 587 被阻止用于 Google Cloud 上的出站连接。相反,您可以查看MailgunSendGrid等中继服务,它们允许通过端口 2525 或 API 发送。然而,这些服务可能会花费一点钱。

  • 截至今天,它表示只有端口 25 被阻止。 (8认同)