使用postfix的Google Cloud Computing实例VM上的amazon SES

use*_*erX 4 unix linux debian amazon-ec2

任何人都可以帮我配置postfix用于亚马逊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 google VM实例

use*_*erX 8

解决了它已经..如果它帮助其他人谷歌实例VM可以使用端口2587.我从我的控制台解锁,然后使用流行的phpmailer php库发送邮件...
现在一切正常...

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


Sar*_*lem 8

我终于得到了它的工作,并根据答案中的评论,我将提供我如何一步一步做到这一点.

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

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

我使用以下命令在我的ubuntu上安装了stunnel:

sudo apt-get install stunnel4
Run Code Online (Sandbox Code Playgroud)

遵循指南: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
Run Code Online (Sandbox Code Playgroud)

重要笔记:

  • 文档中没有提到"协议"配置值,但如果没有它,它将无法工作
  • 替换"connect"值以匹配您的区域,但将端口保持为2587.
  • 如答案中所述,您需要从谷歌云控制台允许端口2587
  • "TLS Wrapper"还有"2465"端口,也可以与Google的计算引擎一起使用.


Ele*_*ct2 5

只需使用端口 2587 即可。仅此而已。(我已经通过 PHPmailer 进行了测试。)