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://[email protected] auth <ses_credentials>

and you're done. Send a test mail to [email protected] to check it works.