# This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # Only a small subset of options are listed below # ########################################################################### # Add *****SPAM***** to the Subject header of spam e-mails # #rewrite_header Subject ***** POSSIBLE SPAM ***** # Save spam messages as a message/rfc822 MIME attachment instead of # modifying the original message (0: off, 2: use text/plain instead) # # report_safe 1 # Set which networks or hosts are considered 'trusted' by your mail # server (i.e. not spammers) # trusted_networks 10.0.0.0/8 [deleted] internal_networks 10.0.0.0/8 [deleted] # Set file-locking method (flock is not safe over NFS, but is faster) # lock_method flock # Set the threshold at which a message is considered spam (default: 5.0) # required_score 6.5 # Use Bayesian classifier (default: 1) # use_bayes 1 # Bayesian classifier auto-learning (default: 1) # bayes_auto_learn 1 # Set headers which may provide inappropriate cues to the Bayesian # classifier # bayes_ignore_header X-Bogosity bayes_ignore_header X-Spam-Flag bayes_ignore_header X-Spam-Status # additional score RCVD_IN_MAPS_RBL 3 score RCVD_IN_MAPS_DUL 1 score RCVD_IN_MAPS_RSS 2 score RCVD_IN_MAPS_NML 2 score RCVD_IN_MAPS_OPS 2 user_scores_dsn DBI:Pg:dbname=spamassassin;host=localhost;port=5432 user_scores_sql_username spamassassin user_scores_sql_password [deleted] #Tell SpamAssassin to use PostgreSQL for bayes data bayes_store_module Mail::SpamAssassin::BayesStore::PgSQL bayes_sql_dsn DBI:Pg:dbname=spamassassin;host=localhost;port=5432 bayes_sql_username spamassassin bayes_sql_password [deleted] #Tell SpamAssassin to use PostgreSQL for AWL data auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList user_awl_dsn DBI:Pg:dbname=spamassassin;host=localhost;port=5432 user_awl_sql_username spamassassin user_awl_sql_password [deleted] ## ## Enable DCC/Pyzor/Razor2. Make sure you install the plugins ## you want to use and make sure it is configured correctly ## ## razor seems to need to be first else pyzor doesn't work ## I don't know why... So order IS CRUCIAL if you want to ## run all network tests. ## dcc_path /usr/bin/dccproc razor_config /etc/razor/razor-agent.conf pyzor_path /usr/bin/pyzor pyzor_options --homedir /etc/mail/spamassassin