Skip to content

Instantly share code, notes, and snippets.

@funkadelic
Last active December 25, 2015 19:49
Show Gist options
  • Save funkadelic/7030191 to your computer and use it in GitHub Desktop.
Save funkadelic/7030191 to your computer and use it in GitHub Desktop.
postfix 2.3.3 compatible antispam config
smtpd_helo_restrictions =
        reject_non_fqdn_helo_hostname,
        reject_invalid_helo_hostname,
        reject_rhsbl_helo hostkarma.junkemailfilter.com=127.0.0.2,
        reject_rhsbl_helo zen.spamhaus.org
 
smtpd_data_restrictions =
        reject_unauth_pipelining
 
smtpd_client_restrictions =
        reject_rbl_client b.barracudacentral.org,
        reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.2,
        reject_unknown_client_hostname
 
smtpd_sender_restrictions =
        reject_unknown_sender_domain,
        reject_unknown_address,
        reject_rbl_client b.barracudacentral.org
 
smtpd_recipient_restrictions =
        permit_mynetworks,
        reject_invalid_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        reject_unauth_destination,
 
        reject_rhsbl_sender dbl.spamhaus.org,
        reject_rhsbl_client dbl.spamhaus.org,
        reject_rhsbl_client hostkarma.junkemailfilter.com=127.0.0.2,
 
        reject_rbl_client b.barracudacentral.org,
        reject_rbl_client zen.spamhaus.org,
        reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.2,
 
        permit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment