SMTP Setup

For those that stumble upon this thread in the future.

1. All of the docs above are exactly what you need to get this working.
a. edit your composer.json to require the aws-sdk-php module.
b. rerun your composer install or edit your dockerfile to copy in your
edited composer.json prior to install
2. Make the edits to files under /var/www/app/config
a. mail.php: change the driver to ses from smtp. (this is a file only change. You’ll still
set SMTP on the mail settings page in the app or setup.)
b. services.php: enter your aws ID, secret ID and region where required.
3. Make sure you have the right credentials in env.
a. mail host: your region’s SES endpoint (google amazon ses endpoints)
b. mail username: your SES SMTP user
c. mail password: your SES password
d. mail type: leave as SMTP
e. mail port: 587
f. encryption: TLS
4. In AWS. Make sure your mail domain return address is verified and the domain that the webapp sits on is also verified. If you’ve done the right thing when getting your AWS SMTP user creds you’ll be rolling through the verification page on your way through identity management. (Note: it seems like if the webapp sits on the same domain as the mail address, you only need to verify the address. If it doesn’t it seems like you need to verify both. YMMV)

I’m being rather direct in the hope that pulling all this together helps the next person working through the problem. Everything above is in the documents provided by Hillel or in documents down the breadcrumb trail from those, but you’d need to take the time to read them to get a compass heading.

Hopefully this helps.

PS.Here’s the rub: SES user and pass look a lot like your normal AWS ID and Secret. They are not the same. Go into IAM and make sure whatever you downloaded specifically says SMTP user and SMTP password. If it doesn’t you’ve got the wrong stuff.

Thanks for sharing these steps!

You’re welcome.