2

I would like to re-route all my company outbound emails through AWS SES SMTP, do some processing to the email there, then let it go out once done. Is this doable ?

This is doable for incoming emails through different types of actions (lambda being one of them), but the docs don't say anything about outbound emails

1

I don’t think AWS SES supports any kind of outbound filtering at the moment. You will have to pass your outgoing mail through an internal mail relay (e.g. EC2 instance or Fargate container running Postfix with your custom filter), do your filtering / processing there, and then pass it on to SES for delivery.

This may also be a preferable solution if you’re sending from multiple sources as in such a case you would need to distribute the SES SMTP credentials to all the sender hosts. That may be impractical.

Better to funnel all your outgoing email through the internal relay (allow access by IP whitelist), do your processing there and then SES delivers it.

Hope that helps :)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.