postfix filters [back]
  Here are the filters files I use to avoid being spammed :
  
  Add these lines to your postfix's main.cf file :
  header_checks = regexp:/etc/postfix/header_checks
  body_checks = regexp:/etc/postfix/body_checks
  smtpd_sender_restrictions = regexp:/etc/postfix/forbid_from, reject_unauth_pipelining, \
  	permit_mynetworks, reject_unauth_destination, reject_non_fqdn_sender

  header_checks
     This file contains regexps to be matched with mail headers.
     It allows to reject mails containing bad headers (such as X-Mailer: Sarbacane which
     is a spammer tool).
    download
       
  body_checks
     This file contains regexps to be matched with mail bodies.
     It allows to reject mails containing strange things (like .exe attached files).
    download
       
  forbid_from
    This contains forbidden "MAIL FROM: " values. Please note that MAIL FROM: value is not
    always the same as From: header which can be checked via header_checks.
    download

  [back]