can anyone help me configure postfix to use with amazon ses please.. i can successfully follow instructions here using sendgrid https://developers.google.com/compute/docs/sending-mail and it is working fine using sendgrid..
But i would like to adjust settings to use amazon SES instead of sendgrid, I am not even sure if that is possible seems google has blocked all smtp ports.
any help greatly appreciated...
I have tried these.. http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html but did not work running debian 7 google VM instance
solved it already.. in case it helps others Google Instance VM can use port 2587. I unblocked that from my console, then used the popular phpmailer php library to send mail...
now all is working perfectly..
finding the port was hard.. google documentation does not make that clear..
I finally got it to work too, and as per to the comments in the answer, I will provide how I did it step by step.
Amazon uses the mentioned port in the answer, and this is mentioned here, under STARTTLS: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html#smtp-connect-secure-tunnel
I have an already working postfix installation and followed the guide posted in the question: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html
I installed stunnel on my ubuntu using:
sudo apt-get install stunnel4
Followed the guide here: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-secure-tunnel.html
And the content of the final stunnel config file:
[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
Important Notes:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With