Skip to content
Fight spam with unique, blacklistable, expirable email addresses (for Debian Squeeze but adaptable)
Find file

EXIM4 configuration for Debian Squeeze

Executive Summary

Help fight spams by allowing user control of email validity. Basically:

  • -> if amazon is not blacklisted
  • -> if the expiration date is not reached

The rules

Rewrite localparts to remove chars after a '-', with additional checks:

  • trailing dates in format YYYY-MM-DD are in the past
  • trailing key is not present in not-locals.dbm

Local parts that fails these conditions will be delivered to user fail instead (which is unlikely to exist).

So for instance the email will be delivered (to until the first of January 2012, while will get delivered (to only if user-foobar is not listed in /etc/exim4/no-locals.dbm (Note: it's user-foobar not foobar!).

The two mechanisms can be used together, as long as the expiration date is last.

The purpose of this is to be able to forge unique email addresses that are valid up to a given point.


  • make will build not-locals.dbm from not-locals.txt

  • make install will reload exim with the new configuration

  • make check will test that the rules are in place and will show some example of what's to expect. Depending on your configuration you may want to replace the user name, though.


Something went wrong with that request. Please try again.