Repository navigation
Guide: AWS SES Email Setup for Self-Hosted Medplum (CLI + Console) #8534
ajwwong
started this conversation in
Show and tell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We recently set up AWS SES for multi-domain email sending with our self-hosted Medplum instance. Here's a step-by-step guide covering both CLI and Console approaches.
Quick Setup (AWS CLI)
1. Verify Your Domain
2. Set Custom MAIL FROM Domain
3. Add DNS Records (Route 53)
You need 7 DNS records total:
_amazonses.yourdomain.comxxxx._domainkey.yourdomain.comyyyy._domainkey.yourdomain.comzzzz._domainkey.yourdomain.commail.yourdomain.com10 feedback-smtp.us-east-1.amazonses.commail.yourdomain.com"v=spf1 include:amazonses.com ~all"_dmarc.yourdomain.com"v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com"If using Route 53, you can batch all records in one CLI call:
4. Verify Everything Passed
All should show
"Success"status.Medplum SSM Configuration
Self-hosted Medplum reads email config from SSM Parameter Store. The key parameters:
The
approvedSenderEmailsparameter lets your bots send from different addresses using thefromfield inmedplum.sendEmail():Important: After updating SSM parameters, you need to restart the Medplum server for changes to take effect.
Sandbox vs Production
SES sandbox mode is account-level, not per-domain. Check your current status:
aws ses get-account --query 'ProductionAccessEnabled'If you're still in sandbox (limited to verified recipients only, 200 emails/day), request production access via the SES Console under Account Dashboard.
Troubleshooting Quick Reference
fromaddress rejectedapprovedSenderEmailsSSM paramdigCost
Hope this helps others setting up multi-domain email with self-hosted Medplum!
All reactions