Trap and test AWS SES emails locally
github.com
github.com
I find that basically every transnational email service supports SMTP so I normally code to that and call it a day…
Edit: oh, yeah, there's also a queue id returned in the 250 response (in postfix, at least)
It is a bit painful for idempotency.
Perhaps SMTP could use an extension with a new (pipelined) command after DATA, so a client can retrieve the assigned message-id.
I wonder how common it is for message-id's to be overwritten. I must have run into this SES behaviour (along with other problems) when trying to use it as backup for outgoing mail for my mail server: My DKIM signatures include the message-id header, overwriting the header will invalidate them.
Mailpit is an alternative that has regular updates: https://mailpit.axllent.org/
MailCatcher is great. It "just works" and has Docker images for both AMD64 and ARM64 CPUs.
Edit: uh never mind https://docs.localstack.cloud/user-guide/aws/ses/
[1] https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from...
However then surely this thing is just re-inventing the wheel that LocalStack already invented ?
While SES can handle both inbound and outbound mail, I think Workmail is the only way to get IMAP and actual hosting of email. I imagine you could set up https://mailinabox.email/ on the cheapest EC2 instance and use SES for outbound, though.