EmailFilter

Postfix

EmailFilter includes a Postfix policy service, so Postfix can ask it about each sender with no scripts. Senders with the verdict rejected get 550 5.7.1 Sender address rejected by EmailFilter. If EmailFilter fails or is too slow, the mail is let through.

  1. Turn the service on in .env and publish the port in docker-compose.yml (uncomment the 10040 line):

    EMAILFILTER_POLICY_LISTEN=:10040
    
  2. Add it to /etc/postfix/main.cf, after reject_unauth_destination:

    smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination,
        check_policy_service { inet:127.0.0.1:10040, timeout=10s, default_action=DUNNO }
    
  3. postfix reload

Your own users are let through by permit_mynetworks and permit_sasl_authenticated before EmailFilter is asked. Bounces, which have an empty sender, are always let through. The policy port has no authentication, so keep it on localhost or a private network.

Edit this page on GitHub

Keep fake addresses out before they sign up.

Free and open source. No sign-up, no API key, no address leaves your server.

10test@mailinator.comrejectedDisposable email domain 30xkcdqwrt@nonexistent.examplerejectedNo mail servers 90john.smith@gmail.comacceptedMailbox exists, established domain