Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
qmail-aliasfilter filters incoming mail based on valid sender domains encoded into the receiving email address.
CoffeeScript Ruby JavaScript
Branch: master
Failed to load latest commit information.
bin
test
.gitignore
.travis.yml Add travis config
LICENSE Add LICENSE
README.md Explain how to pass config file in README.md
config.example.js Add qmail-aliasfilter
index.coffee Allow to pass config file path via process.argv
package.json Bump version to 1.2.0
validator.coffee

README.md

qmail-aliasfilter-js Build Status

qmail-aliasfilter filters incoming mail based on valid sender domains encoded into the receiving email address.

Examples

  • mymail-example.com@example.com only accepts mail with example.com as sender
  • mymail-.example.com@example.com only accepts mail with *.example.com as sender
  • mymail-example.com+example.net@example.com only accepts mail with example.com or example.net as sender

Configuration

module.exports = {
    mymail: /^mymail-(.*)@/,           // regex to detect your own email address
                                       // must contain a capturing group for the domainlist
    validIfNotFound: false,            // if true the mail will be accepted in your email address
                                       // is not in the list of visible recipients
    ccValid: true,                     // if false the email will be rejected if you are only on cc
    multipleFromHandling: "drop",      // "drop" will reject the mail if there are multiple senders
                                       // "validateAll" will validate every single sender
                                       // "validateOne" will accept the email if at least one sender
                                       // is valid
    multipleToHandling: "validateOne", // "validateOne" will accept the email if at least one
                                       // recipient (To and CC) is valid
                                       // "validateAll" will validate every single recipient
    logFile: __dirname + '/actions.log'// path to the log file
};

You may pass the path to the configuration file via the first command line argument:

|/path/to/qmail-aliasfilter /path/to/configuration

If the argument is omitted an existing config.{js, coffee} inside the same folder as the index.coffee is used.

Something went wrong with that request. Please try again.