Jump to main content Jump to doc navigation

To send email with Amazon SES (Simple Email Service) over SMTP, the generic instructions apply. This page covers the values the SES console hides.

Verifying a domain and address

Sign in to the AWS Console and open SES.

Under Identity Management > Identities, create a domain identity. Enter the domain, leave Easy DKIM enabled, and add the DNS records SES shows.

Then create an email address identity for every address you send from, and confirm it through the verification email.

Creating SMTP credentials

In the SES console, open Email sending > SMTP settings.

  • Copy the server name into the mail_smtp_hosts system setting.
  • Use one of the listed ports in mail_smtp_port; 465 or 587 usually works.
  • SES supports TLS. Set mail_smtp_secure to ssl for port 465 or tls for port 587 (MODX 3 Mail settings).

Click Create SMTP credentials. This creates an IAM user that can send only through SMTP. To use the SES API or other AWS services, create another user or attach a custom policy. Read more about IAM users for SES.

Enter a user name that identifies the site, then click Create.

Download the credentials, or expand Show User SMTP Security Credentials and copy the SMTP username into mail_smtp_user and the password into mail_smtp_pass.

If you do not download the credentials, this is the only time you can see them. Test sending before you close the window.

Testing and next steps

Test with QuickEmail as described in the mail documentation.

Sending may fail until domain and address verification finish. Amazon also limits sending for new accounts.

In the SES console, open your domain identity to see its authentication details:

  • Verification shows the TXT record. Keep it on the domain while you use SES.
  • DKIM lists the DNS records that enable DKIM.
  • MAIL FROM domain sets a dedicated envelope-from domain. Messages then return to your domain instead of amazonses.com, which helps SPF alignment. The visible From header still uses the address you send from.

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • A. Moreno
  • Alex
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • JT Skaggs
  • deJaya
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$194 per month—let's make that $500!

Learn more