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实例
解决了它已经..如果它帮助其他人谷歌实例VM可以使用端口2587.我从我的控制台解锁,然后使用流行的phpmailer php库发送邮件...
现在一切正常...
找到端口很难..谷歌文档没有说清楚..
我终于得到了它的工作,并根据答案中的评论,我将提供我如何一步一步做到这一点.
亚马逊在答案中使用了上面提到的端口,这在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)
重要笔记: