18 Feb 2019 • Sending mail through Amazon SES with OpenSMTPD

I've not had problems with delivery but sending your own mail is generally considered to be No Good, and SES is $0.10 per 1k messages, so why not.

You need to add a few DNS entries so SES can verify your domain, then grab your SMTP credentials from the dashboard and put them in /etc/mail/ses_credentials like ses username:password. Then in smtpd.conf:

table ses_credentials file:/etc/mail/ses_credentials
action relay_ses relay host smtp+tls://ses@email-smtp.eu-west-1.amazonaws.com auth <ses_credentials>

and you're done. Send a test mail to ooto@simulator.amazonses.com to check it works.