亚马逊SES在谷歌云计算实例虚拟机使用后缀

任何人都可以帮助我configuration后缀与亚马逊ses请使用..我可以成功地按照使用sendgrid https://developers.google.com/compute/docs/sending-mail这里的说明,它使用sendgrid工作正常..

但我想调整设置,以使用亚马逊SES而不是sendgrid,我甚至不知道如果这是可能的,似乎谷歌已经封锁了所有的SMTP端口。

任何帮助非常感谢…

我试过这些.. http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html,但没有运行debian 7谷歌虚拟机实例

我终于也开始工作了,根据答案中的意见,我将提供我是如何一步一步做到的。

亚马逊在答案中使用了提到的端口,这里在STARTTLS下面提到: http : //docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html#smtp-connect-secure-tunnel

我有一个已经工作的后缀安装,并遵循在问题中发布的指南: http : //docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html

我在我的Ubuntu上安装stunnel使用:

sudo apt-get install stunnel4 

按照这里指南: http : //docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-secure-tunnel.html

最后的stunnel配置文件的内容:

 [smtp-tls-wrapper] accept = 2525 client = yes connect = email-smtp.eu-west-1.amazonaws.com:2587 delay = yes cert = /etc/stunnel/mail.pem protocol = smtp 

重要笔记:

  • 文档中没有提到“协议”配置值,但是如果没有它,它将无法工作
  • 替换“连接”值以匹配您的地区,但保持端口为2587。
  • 正如答案中所提到的,您需要允许您的谷歌云端控制台使用端口2587
  • 还有“TLS Wrapper”可用的端口“2465”,这也可以用于Google的计算引擎。

解决它已经..如果它可以帮助其他Google实例虚拟机可以使用端口2587.我解开了从我的控制台,然后使用流行的phpmailer php库发送邮件…
现在所有的工作都很完美

找到端口很难..谷歌文档没有说清楚..

只需使用端口2587.就是这样。 (我已经通过PHPmailer测试过。)