bezerker wrote:
... Does anyone have a decent debian based howto for postfix + spam filtering with maildir format that they could recommend?
Appended is my anti-spam config from main.cf. It is based on
http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt and trial and error. Even though it doesn't include any post-filtering measures (like SA), it is good enough in my case to keep my mailboxes largely spam-free.
Spamhaus provides a nice overview of "Effective Spam Filtering" at
http://www.spamhaus.org/effective_filtering.html . The following config corresponds to 1st stage filtering.
Cliff
Code:
## ------------------------------------------------------------- ##
# UCE measures
# See: http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt
# and Postfix docs for explanation of configuration options.
## ------------------------------------------------------------- ##
#
# Uncomment when testing!
#soft_bounce = yes
# Stops a bundle of spam
smtpd_helo_required = yes
# Prevents addr harvesting
disable_vrfy_command = yes
#
# Prefix a new rule with 'warn_if_reject' to prevent real rejects.
#
smtpd_recipient_restrictions =
## Whitelists
check_recipient_access hash:/etc/postfix/recipient_checks,
check_client_access hash:/etc/postfix/clients,
## Stop bad clients
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_non_fqdn_hostname,
permit_mynetworks,
reject_unauth_destination,
## Extra checks
check_helo_access hash:/etc/postfix/helo_checks,
check_sender_access hash:/etc/postfix/sender_checks,
## DNSBL // http://www.spamhaus.org/zen/
reject_rbl_client zen.spamhaus.org,
permit
# Reject the (pre-)sending of SMTP commands.
smtpd_data_restrictions = reject_unauth_pipelining, permit
## ------------------------------------------------------------- ##