Is it possible in ses to save the emails sent by email addresses of the verified domain, to a bucket? I managed to do this for receiving emails, but can’t find a way to do this for sending emails.
If this feature is not provided by ses, is there a feature that allows us to automatically forward any sending email, to some domain specific email? That way I could use the setup for receiving emails, to save sending emails as well.
Related discussions:
Not sure on third party solutions but at the moment SES does not have an option to write sent emails to S3.
For the solution it would depend on how you are sending emails.
If you are sending via API, just have the API take the email and it’s payload and write that to your bucket.
With an SMTP server, you may need to write something custom on your SMTP host to also make use of the S3 API and write emails to S3.
Not sure if you can do this. But let’s say you have the flexibility to add bcc when sending an email. In which case you could have a lambda function triggered on receiving an email to that bcc address and store the emails in s3 depending on whether the sender matches the whitelist emails.
That was my idea as well. I’m not sure though if it is possible to automatically add bcc for emails of a specific domain..
The company I work for, wants all sending / receiving emails of their clients to be stored in separate s3 buckets. So whenever an address from domain example.com sends or receives an email, it should be stored on our side.
I managed to solve the part with receiving emails using ses, but I’m not sure how I should go about saving the sent emails from addresses of a verified domain.
No you add bcc by default to all. But save only those from a domain you want
How can I add a bcc by default to the address of a verified domain?