# SpamAssassin user preferences file.  See 'perldoc Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
###########################################################################

# How many points before a mail is considered spam.
# required_score		5

# Whitelist and blacklist addresses are now file-glob-style patterns, so
# "friend@somewhere.com", "*@isp.com", or "*.domain.net" will all work.
# whitelist_from	someone@somewhere.com

# Add your own customised scores for some tests below.  The default scores are
# read from the installed spamassassin rules files, but you can override them
# here.  To see the list of tests and their default scores, go to
# http://spamassassin.apache.org/tests.html .
#
# score SYMBOLIC_TEST_NAME n.nn

# Speakers of Asian languages, like Chinese, Japanese and Korean, will almost
# definitely want to uncomment the following lines.  They will switch off some
# rules that detect 8-bit characters, which commonly trigger on mails using CJK
# character sets, or that assume a western-style charset is in use. 
# 
# score HTML_COMMENT_8BITS	0
# score UPPERCASE_25_50		0
# score UPPERCASE_50_75		0
# score UPPERCASE_75_100	0
# score OBSCURED_EMAIL          0

# Speakers of any language that uses non-English, accented characters may wish
# to uncomment the following lines.   They turn off rules that fire on
# misformatted messages generated by common mail apps in contravention of the
# email RFCs.

# score SUBJ_ILLEGAL_CHARS      0

use_auto_whitelist 0

report_safe 0
report_safe_copy_headers X-CRM114-Status X-CRM114-Notice
report_safe_copy_headers X-Greylist

rewrite_header SUBJECT

#bayes_path ~/.var/spamassassin/bayes
bayes_auto_learn 0
bayes_ignore_header X-Original-To
bayes_ignore_header X-EqDomain
bayes_ignore_header X-EqTo
bayes_ignore_header X-Been-There
bayes_ignore_header X-Delivered-To
bayes_ignore_header X-Greylist
bayes_ignore_header X-Virus-Scanned
bayes_ignore_header X-Virus-Status
bayes_ignore_header X-CRM114-Status
bayes_ignore_header X-CRM114-CacheID
bayes_ignore_header X-CRM114-Notice
bayes_ignore_header X-CRM114-Version
bayes_ignore_header X-Spam-Relays-External 
bayes_ignore_header X-Spam-Relays-Internal
bayes_ignore_header X-Spam-Relays-Trusted
bayes_ignore_header X-Spam-Relays-Untrusted
bayes_ignore_header X-Spam-Status
bayes_ignore_header X-Spam-Bayes
bayes_ignore_header X-Spam-Level
bayes_ignore_header X-Spam
bayes_ignore_header X-Postponed
bayes_ignore_header X-Justme
bayes_ignore_header X-Tickle
bayes_ignore_header X-Delayed
bayes_ignore_header X-Resubmitted
bayes_ignore_header X-Trained-As
bayes_learn_to_journal 1
#bayes_ignore_from add@ress.com

add_header all Status _YESNO_, score=_SCORE_/_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_
add_header all Bayes score=_BAYES_ sum=_TOKENSUMMARY_ ham=_HAMMYTOKENS_ spam=_SPAMMYTOKENS_
add_header all Level _STARS(-)_
#add_header all Relays-Trusted _RELAYSTRUSTED_
add_header all Relays-Untrusted _RELAYSUNTRUSTED_
#add_header all Relays-Internal _RELAYSINTERNAL_
#add_header all Relays-External _RELAYSEXTERNAL_

# the local host
#trusted_networks 127.
# madduck.net
trusted_networks 213.203.238.82 193.242.105.96 193.242.105.183
# debian: gluck master murphy spohr rietz liszt powell
trusted_networks 192.25.206.10 70.103.162.29 70.103.162.31 192.25.206.33 140.211.166.43 82.195.75.100 87.106.64.223
# liszt.debian.org
#trusted_networks 2001:41b8:202:deb:213:21ff:fe20:1426
# debian: alioth
trusted_networks 217.196.43.134
# ifi: bela miraculix nicolai sergei
trusted_networks 130.60.156.10 130.60.156.214 130.60.155.10 130.60.155.11
# fortytwo
trusted_networks 193.138.215.60
# aerasec: all of MNET-AERASEC
trusted_networks 212.18.21.160/26
# swat: osprey.sccs, heron.sccs
trusted_networks 130.58.218.6 130.58.218.10
# skynet: calculon gir
trusted_networks 193.1.99.88 193.1.99.77
# ul: marshal4
trusted_networks 193.1.100.137
# vger.kernel.org
trusted_networks 209.132.176.167

whitelist_from *master@*.*.madduck.net
whitelist_from *master@*.madduck.net
whitelist_from *master@madduck.net
whitelist_from logcheck@*.*.madduck.net
whitelist_from logcheck@*.madduck.net
whitelist_from root@*.madduck.net
whitelist_from root@*.*.madduck.net
whitelist_from root@madduck.net
whitelist_to root@*.madduck.net
whitelist_to root@*.*.madduck.net
whitelist_from *-owner@lists.madduck.net
whitelist_to *-owner@lists.madduck.net

ok_locales en de
ok_languages en de

header MADDUCK_IN_REFERENCES References =~ /madduck\.net/
tflags MADDUCK_IN_REFERENCES nice
describe MADDUCK_IN_REFERENCES madduck.net appears in References header
score MADDUCK_IN_REFERENCES -100.0

# more obfuscated drugs
# see http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4875
replace_tag WS ( [a-z] )
body __L_rp_drug_ws1 /(?!xanax)X<WS>A<WS>N<WS>A<WS>X/i
body __L_rp_drug_ws2 /(?!ambien)A<WS>M<WS>B<WS>I<WS>E<WS>N/i
body __L_rp_drug_ws3 /(?!viagra)V<WS>I<WS>A<WS>G<WS>R<WS>A/i
body __L_rp_drug_ws4 /(?!soma)S<WS>O<WS>M<WS>A/i
body __L_rp_drug_ws5 /(?!cialis)C<WS>I<WS>A<WS>L<WS>I<WS>S/i
body __L_rp_drug_ws6 /(?!valium)V<WS>A<WS>L<WS>I<WS>U<WS>M/i
body __L_rp_drug_ws7 /(?!meridia)M<WS>E<WS>R<WS>I<WS>D<WS>I<WS>A/i
replace_rules __L_rp_drug_ws1 __L_rp_drug_ws2 __L_rp_drug_ws3 __L_rp_drug_ws4 __L_rp_drug_ws5 __L_rp_drug_ws6 __L_rp_drug_ws7
meta L_drug_ws_obfu (__L_rp_drug_ws1 + __L_rp_drug_ws2 + __L_rp_drug_ws3 + __L_rp_drug_ws4 + __L_rp_drug_ws5 + __L_rp_drug_ws6 + __L_rp_drug_ws7) > 3
score L_drug_ws_obfu 3

# http://marc.info/?t=118544884300001&r=1&w=2
score BAYES_60 0.0001 0.0001 1.5 1.5
score BAYES_80 0.0001 0.0001 2.5 2.5
score BAYES_95 0.0001 0.0001 4.0 4.0
score BAYES_99 0.0001 0.0001 5.0 5.0

# VBounce
whitelist_bounce_relays clegg.madduck.net seamus.madduck.net