haraka-plugin-s3-recipient-validator
v0.1.0
Published
Validate your recipients through a static file hosted on AWS S3.
Downloads
2
Readme
Haraka S3 Recipient Validator
Validate your recipients through a static file hosted on AWS S3.
Installation
$ npm install haraka-plugin-s3-recipient-validator
config/s3-recipient-validator.json
{
"accessKeyId": "changeme",
"secretAccessKey": "changeme",
"region": "eu-central-1",
"bucket": "s3-bucket",
"file": "mail/validRecipients.txt",
"cacheMaxAge": 60,
"plusAddressingEnabled": true,
"plusAddressingCharacter": "+"
}
config/plugins
...
# RCPT TO
# At least one rcpt_to plugin is REQUIRED for inbound email. The simplest
# plugin is in_host_list, see 'haraka -h rcpt_to.in_host_list' to configure.
s3-recipient-validator
...
validRecipients.txt
[email protected]
[email protected]
# this is a comment
[email protected]