From 275c87b49352db54c5864f380ac295995ef393c5 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Fri, 23 Apr 2010 02:21:57 -0400 Subject: [PATCH] Initial commit of (mostly) stock directory --- 65_debian.cf | 27 ++++++++++++++++++++++++++ init.pre | 36 +++++++++++++++++++++++++++++++++++ local.cf | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 65_debian.cf create mode 100644 init.pre create mode 100644 local.cf diff --git a/65_debian.cf b/65_debian.cf new file mode 100644 index 0000000..f0848e7 --- /dev/null +++ b/65_debian.cf @@ -0,0 +1,27 @@ +# Special SpamAssassin rules for Debian +# Duncan Findlay + +header D_SENT_BY_DEBCONF Subject =~ /^Debconf:/ +score D_SENT_BY_DEBCONF -5.0 +describe D_SENT_BY_DEBCONF Sent by Debconf + +body D_SENT_BY_AFBACKUP /^\[Afbackup\]: Overall exit status:/ +score D_SENT_BY_AFBACKUP -5.0 +describe D_SENT_BY_AFBACKUP Sent by Afbackup + +header D_SENT_BY_APTLC Subject =~ /^apt-listchanges: (changelogs|news) for/ +score D_SENT_BY_APTLC -5.0 +describe D_SENT_BY_APTLC Sent by apt-listchanges + +header __ANACRON_SUBJ Subject =~ /^Anacron job '[a-z0-9_.-]+' on/i +header __ANACRON_FROM From =~ /^Anacron/ +meta D_SENT_BY_ANACRON __ANACRON_SUBJ && __ANACRON_FROM +score D_SENT_BY_ANACRON -5.0 +describe D_SENT_BY_ANACRON Sent by Anacron Daemon + + +header __CRON_FROM From =~ /^Cron Daemon/ +header __CRON_HEADER X-Cron-Env =~ /./ +meta D_SENT_BY_CRON __CRON_FROM && __CRON_HEADER +score D_SENT_BY_CRON -5.0 +describe D_SENT_BY_CRON Sent by Cron Daemon diff --git a/init.pre b/init.pre new file mode 100644 index 0000000..97b2203 --- /dev/null +++ b/init.pre @@ -0,0 +1,36 @@ +# This is the right place to customize your installation of SpamAssassin. +# +# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be +# tweaked. +# +# This file contains plugin activation commands for plugins included +# in SpamAssassin 3.0.x releases. It will not be installed if you +# already have a file in place called "init.pre". +# +# There are now multiple files read to enable plugins in the +# /etc/mail/spamassassin directory; previously only one, "init.pre" was +# read. Now both "init.pre", "v310.pre", and any other files ending in +# ".pre" will be read. As future releases are made, new plugins will be +# added to new files, named according to the release they're added in. +########################################################################### + +# RelayCountry - add metadata for Bayes learning, marking the countries +# a message was relayed through +# +# Note: This requires the IP::Country::Fast Perl module +# +# loadplugin Mail::SpamAssassin::Plugin::RelayCountry + +# URIDNSBL - look up URLs found in the message against several DNS +# blocklists. +# +loadplugin Mail::SpamAssassin::Plugin::URIDNSBL + +# Hashcash - perform hashcash verification. +# +loadplugin Mail::SpamAssassin::Plugin::Hashcash + +# SPF - perform SPF verification. +# +loadplugin Mail::SpamAssassin::Plugin::SPF + diff --git a/local.cf b/local.cf new file mode 100644 index 0000000..2b7202f --- /dev/null +++ b/local.cf @@ -0,0 +1,53 @@ +# 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 *****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 0 + + +# Set which networks or hosts are considered 'trusted' by your mail +# server (i.e. not spammers) +# +# trusted_networks 212.17.35. + + +# 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 5.0 + + +# 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 + -- 2.34.1