aws-lambda-ses-forwarder icon indicating copy to clipboard operation
aws-lambda-ses-forwarder copied to clipboard

Fails to forward mail with more than 50 recipients

Open jmcelvenny opened this issue 7 years ago • 2 comments

If the Lambda function is invoked with an e-mail that has more than 50 original recipients, it will create an error in SES.

Example: User is part of an e-mail with 100 different addresses. The forwarded e-mail should only be sent to the user's forward address (1 recipient) but instead an error is thrown in SES for attempting to send an e-mail with more than 50 recipients.

I'll update this if I can configure a fix or find the logs

jmcelvenny avatar Mar 01 '17 21:03 jmcelvenny

This is a limitation of the amazon SES sandbox mode.

Not a limitation of the script!

http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html

XtremeOwnageDotCom avatar Mar 24 '17 17:03 XtremeOwnageDotCom

Sending any e-mail to 50+ recipients is a limitation of Amazon SES. The case I was referring to is:

To: [email protected], [email protected], [email protected], ...., [email protected], [email protected]

Where the only address that is forwarding e-mail using the script is [email protected]. In this case, a total of one e-mail should be sent (to the forwarding address of [email protected] - just 1 recipient) with the contents of the original e-mail.

SES can receive the e-mail and store in in S3, but an error is raised when the Lambda script attempts to forward it. The error is a 50+ recipients error when only one e-mail with one recipient should be sent.

Will recreate this issue and add logs shortly.

jmcelvenny avatar Mar 24 '17 20:03 jmcelvenny