GithubHelp home page GithubHelp logo

ashanfernando / sesemailforward Goto Github PK

View Code? Open in Web Editor NEW
86.0 86.0 58.0 11 KB

Amazon SES Email Forward to Your Inbox

Home Page: https://medium.com/@ashan256/forwarding-emails-to-your-inbox-using-amazon-ses-2d261d60e417

License: MIT License

JavaScript 100.00%

sesemailforward's People

Contributors

ashanfernando avatar wafflesmcduff avatar whatif-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sesemailforward's Issues

nodejs4.3 no longer supported - stack fails to set-up

while preparing the stack, aws stops the process with an error saying that nodejs4.3 is no longer supported and you should upgrade to 8.1

exact error:

The runtime parameter of nodejs4.3 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs8.10) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 5f164ac7-1e89-11e9-b1bc-e9d7c3aacfd1)

no emails being forwarded, no errors in log

I have SES fully set up, with verified email domain, DKIM Verification set up and Mail From successfully set up. The stack seems to have been built correctly, with FromAddress and ToAddress values saved. Additionally, I've built a Rule as instructed with the Recipient as a destination in my verified domain.

However, when emailing this Recipient, no forwarding is taking place and I see no log from the Lambda function in Cloudwatch. I'm at a loss to even begin to troubleshoot this, as I cannot find any SNS log files. Any ideas?

Use multiple from_address

In order for me to use multiple from_address (e.g. to forward to the same address), do I need to re-deploy the entire stack?

How can I duplicate the lamdba function that was created?

nodejs8.10 is no longer supported

This error appears when using with CF
The runtime parameter of nodejs8.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 53f386dc-2f29-49c9-bd85-6cf080ff4ea2)

TypeError in CloudwatchLog

After creating the stack I get this error message in my CloudWatch Logs

TypeError: Cannot read property 'from' of undefined
at exports.handler (/var/task/index.js:14:55)

This is line 14:
headers += "Reply-To: "+msgInfo.mail.commonHeaders.from[0]+"\r\n";

Tears apart multi-line content-type

Content-Type headers spanning multiple lines, like the ones uses by PGP/MIME, get torn apart.

For example the following excerpt of an email (last lines of header + start of body):

MIME-Version: 1.0
Content-Type: multipart/encrypted;
 protocol="application/pgp-encrypted";
 boundary="xRmQHxB0D5FgqSvOWFFhW9uLSlHPBbY4w"

This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)
--xRmQHxB0D5FgqSvOWFFhW9uLSlHPBbY4w
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification

becomes this:

Subject: Fwd: Test
Content-Type: multipart/encrypted;
MIME-Version: 1.0

which then fails to be parsed correctly.

I guess the best solution would be to keep the existing headers and replace the relevant ones instead of re-writing them all

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.