Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidParameterValue: Duplicate header 'Delivered-To' #111

Open
BuffMcBigHuge opened this issue Jul 5, 2019 · 2 comments
Open

InvalidParameterValue: Duplicate header 'Delivered-To' #111

BuffMcBigHuge opened this issue Jul 5, 2019 · 2 comments

Comments

@BuffMcBigHuge
Copy link

I'm seeing this error on several emails. Any insight?

@cregkly
Copy link

cregkly commented Jan 21, 2020

Is that an error from SendRawEmail?

Download the message from S3 and look for that header. Maybe compare to some messages that are working?

There is a bunch of code that removes headers from the messages. You might just need to add a line for this one too.

Examples:

  // Remove the Return-Path header.
  header = header.replace(/^Return-Path: (.*(?:\r?\n\s+.*)*)\r?\n/mg, '');

  // Remove Sender header.
  header = header.replace(/^Sender: (.*(?:\r?\n\s+.*)*)\r?\n/mg, '');

  // Remove Message-ID header.
  header = header.replace(/^Message-ID: (.*)\r?\n/mig, '');

@sashkeer
Copy link

Are there any update on this issue?
I found some old docs which highlights that Delivered-To header used to prevent loops in some mailing systems. Not sure how AWS handles this headers but if I filter them will it trigger repeated email sending?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants