# SPAM FILTER SECTION STARTS
#
# Review restrictions that they are suitable for your use and
# add this file for example to top of main.cf file.
#
# Look more info about spam filtering options at
# http://www.postfix.org/uce.html
# http://www.postfix.org/postconf.5.html
#
# SORBS
# http://www.sorbs.net/
#
# SpamCop Blocklist
# http://www.spamcop.net/bl.shtml
#
# Spamhaus
# http://www.spamhaus.org/
#
# Anonymous Postmasters Early Warning System
# http://www.apews.org/
#
# Author: Petri.Koistinen@iki.fi
# Comments and improvements are welcome.
# (This is filter is for Postfix 2.1 and later.)
# (See also old filter for Postfix 1.1 if you need to.)

header_checks = regexp:/etc/postfix/header_checks

smtpd_helo_required = yes
disable_vrfy_command = yes

address_verify_map = btree:/var/run/postfix_address_verify

non_fqdn_reject_code = 450
invalid_hostname_reject_code = 450
maps_rbl_reject_code = 450

smtpd_recipient_restrictions =
 permit_mynetworks
 reject_unauth_destination
 check_recipient_access hash:/etc/postfix/recipient_access
 reject_unknown_recipient_domain
 reject_unknown_sender_domain
 reject_unknown_hostname
 reject_unknown_client
 reject_unverified_recipient
 reject_unverified_sender
 reject_non_fqdn_recipient
 reject_non_fqdn_sender
 reject_non_fqdn_hostname
 reject_invalid_hostname
 reject_rbl_client zen.spamhaus.org
 reject_rbl_client bl.spamcop.net
 reject_rbl_client l2.apews.org
 reject_rhsbl_sender dbl.spamhaus.org
 reject_rhsbl_sender l1.apews.org
 reject_rhsbl_sender rhsbl.sorbs.net
 reject_rhsbl_client dbl.spamhaus.org
 reject_rhsbl_client rhsbl.sorbs.net

# last modified: Sunday, 10-Mar-2013 00:48:34 EET
# http://www.iki.fi/petri.koistinen/postfix/postfix-spam-filter.shtml
# SPAM FILTER SECTION ENDS