<commit_before># KDWMailChecker

A sample [AWS Lambda](https://aws.amazon.com/lambda/) function to handle [Amazon SES](https://aws.amazon.com/ses/) inbound messages, after processing it will gave you a simple test of your email address for SPAM, Virus, SPF and DKIM (they are processed by SES).

You can test sending a simple e-mail to <EMAIL> (You can send only one email per day):

#If it is you first test on the day you get this:

SPF:   PASS
DKIM:  GRAY
SPAM:  PASS
VIRUS: PASS


KDW Email Checker - A Serverless solution powered by AWS SES + AWS Lambda
www.kdw.com.br

#After that, you get this:

This e-mail address has already been tested today


KDW Email Checker - A Serverless solution powered by AWS SES + AWS Lambda
www.kdw.com.br

## License

Copyright (c) 2015 <NAME>, http://www.twitter.com/bygalego

This code is licensed under the The MIT License (MIT). Please see the LICENSE file that accompanies this project for the terms of use.

## Installation

It is much easy if you already have SES and at least one domain verified.

### AWS

1. Setup you AWS SES service
2. Validate your domain & address
3. Create a new AWS Lambda function, like 'mailchecker'
  1. Use Node.js as runtime
  2. Paste the code inline from the mailchecker.js'file
  3. Leave the default handler
  4. Use a basic execution role
  5. Leave the default memory (128MB) and timeout (3s)
4. Setup the SES inbound e-mail
  1. Choose and e-mail address to filter or leave blank to process all e-mails
  2. Choose the AWS Lambda function you create in 3
  3. Give the permission if asked


## Feedback

Feedback [here](https://twitter.com/bygalego).<commit_msg>Disclaimer for the e-mail address<commit_after># KDWMailChecker

A sample [AWS Lambda](https://aws.amazon.com/lambda/) function to handle [Amazon SES](https://aws.amazon.com/ses/) inbound messages, after processing it will gave you a simple test of your email address for SPAM, Virus, SPF and DKIM (they are processed by SES).

You can test sending a simple e-mail to <EMAIL> (You can send only one email per day):

#If it is you first test on the day you get this:

SPF:   PASS
DKIM:  GRAY
SPAM:  PASS
VIRUS: PASS


KDW Email Checker - A Serverless solution powered by AWS SES + AWS Lambda
www.kdw.com.br

#After that, you get this:

This e-mail address has already been tested today


KDW Email Checker - A Serverless solution powered by AWS SES + AWS Lambda
www.kdw.com.br

## License

Copyright (c) 2015 <NAME>, http://www.twitter.com/bygalego

This code is licensed under the The MIT License (MIT). Please see the LICENSE file that accompanies this project for the terms of use.

## Installation

It is much easy if you already have SES and at least one domain verified.

### AWS

1. Setup you AWS SES service
2. Validate your domain & address
3. Create a new AWS Lambda function, like 'mailchecker'
  1. Use Node.js as runtime
  2. Paste the code inline from the mailchecker.js'file
  3. Leave the default handler
  4. Use a basic execution role
  5. Leave the default memory (128MB) and timeout (3s)
4. Setup the SES inbound e-mail
  1. Choose and e-mail address to filter or leave blank to process all e-mails
  2. Choose the AWS Lambda function you create in 3
  3. Give the permission if asked

## Disclaimer

We will capture your e-mail address only for the purpose of not permitting more than one test per day. We will not use the e-mails for any other purpose.

## Feedback

Feedback [here](https://twitter.com/bygalego).
{'fraction_non_alphanumeric': 0.07042253521126761, 'fraction_numerical': 0.012072434607645875, 'mean_word_length': 3.6524064171122994, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3239545', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1032, 'n_words': 537}