Architecture - mmattioli/aws-email-forwarding GitHub Wiki
The architecture for this solution is composed of SES, S3, and Lambda.
- SES receives an inbound email. SES then performs steps 2 and 3 as part of its receipt rule.
- SES stores the email object in the S3 bucket.
- SES triggers the Lambda function to run.
- The Lambda function then
- Retrieves the email object from the S3 bucket.
- Composes a new email.
- Attaches the received email (which it just pulled from the S3 bucket) to the new email it is composing.
- Sends this new email out through SES (to the final destination email address).
- The email is received on your mail server (wherever the destination email address is).