#local.cf
 
# This is the right place to customize your installation of SpamAssassin.
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
###########################################################################
#
#rewrite_subject 0
#report_safe 1
rewrite_subject 1
report_safe 0
use_terse_report 0
use_bayes 1
bayes_path /var/amavis/.spamassassin/bayes
auto_learn 1
# set the whitelist factor.
# Algorithm is this:
# whereas score is the score of the message
# whereas mean is the long term mean of scores for messages from this sender
# where as factor is defined here
# FINALSCORE = SCORE + ((MEAN - SCORE) * FACTOR)
# FINALSCORE becomes the ultimate score of the message
# Setting the whitelist factor to 0 negates all this and judges the
# message on its merits. Slowly increasing the factor to 1 is suggested.
# This allows SpamAssasssin to build a healthy longterm whitelist database
auto_whitelist_factor 0

# I do rbl with sendmail
skip_rbl_checks 1

# I trust razor and dcc, but not pyzor
use_razor2 1
use_dcc 1
use_pyzor 0
dcc_add_header 1

dns_available yes

header LOCAL_RCVD Received =~ /\S+\.consorti\.com\s+\(.*\[.*\]\)/
describe LOCAL_RCVD Received from local virus filter
score LOCAL_RCVD -90

## Optional Score Increases
score DCC_CHECK 4.700
score RAZOR2_CHECK 3.000
score BAYES_99 4.300
score BAYES_90 3.500
score BAYES_80 3.000
score PORN_4 3.600