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

SPAM checking/detecting/filtering #99 #121

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

peterhough
Copy link

Implemented Tharit's code from #99
Included tests and config option.

@peterhough
Copy link
Author

Having slept on this - an improvement could be that the config allows you to specify which spam checks to fail on e.g. Spam & Virus only.

Also, is throwing an error the right action? People might have CloudWatch Alarms for errors.

Guidance appreciated.

@arithmetric
Copy link
Owner

@peterhough, thanks for this contribution. It looks good, and I will give it a try.

I like your idea to allow configuration of the spam checks that block the message. The verdicts list with all of the checks is a good default if no configuration is given.

Also I agree that if a spam message is blocked, it would be better not to trigger the same type of error thrown for unexpected failures. To silently discard messages that do not match a forwarded address, the transformRecipients function uses return data.callback(); to call the Lambda's callback function to signal completion of the script.

@ajhodges
Copy link

Just wondering about the status of this PR. @peterhough did you have any thoughts on that feedback? I'd personally love to get this merged so I'm willing to take over the PR if you've run out of bandwidth.

@peterhough
Copy link
Author

Hi @ajhodges

Thanks for the nudge; the feedback all makes sense to me. Those tweaks just need to be implemented and tested.

At the moment I'm on a limited development environment so if you're happy to pick this up I'm more than happy for you to pick this up.

Cheers

@cbschuld
Copy link

@peterhough thx for this update; I ended up taking Joe's great work here and updated it to be TypeScript and set it up to be released via the AWS CDK if you are interested (https://github.com/cbschuld/aws-lambda-ses-forwarder-cdk).

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

Successfully merging this pull request may close these issues.

None yet

5 participants