spam.assassin.prefs.conf

auto_whitelist_distinguish_signed 1

#Bayes
bayes_auto_expire 1
bayes_store_module Mail::SpamAssassin::BayesStore::PgSQL
bayes_sql_dsn DBI:Pg:dbname=baruwa;host=localhost;port=5432
bayes_sql_override_username bayes
bayes_sql_username bayes
bayes_sql_password password

#AWL
auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
user_awl_dsn           DBI:Pg:dbname=baruwa;host=localhost;port=5432
user_awl_sql_username  bayes
user_awl_sql_password  password
user_awl_sql_table     awl

dns_available yes
bayes_ignore_header X-YOURORG-BaruwaFW
bayes_ignore_header X-YOURORG-BaruwaFW-SpamCheck
bayes_ignore_header X-YOURORG-BaruwaFW-SpamScore
bayes_ignore_header X-YOURORG-BaruwaFW-Information
lock_method flock

dcc_home /var/lib/dcc
use_pyzor 1
pyzor_options --homedir /var/lib/pyzor
use_razor2 1
razor_config /var/lib/razor/razor-agent.conf
envelope_sender_header X-BaruwaFW-From

rbl_timeout 30
razor_timeout 60
pyzor_timeout 60

meta BARUWA_PDF_411 (SUBJ_ALL_CAPS && T_FREEMAIL_DOC_PDF && FREEMAIL_REPLYTO)
meta BARUWA_PDF_ALT_411 (T_FREEMAIL_DOC_PDF && FREEMAIL_REPLYTO)

score BAYES_00 -2.0
score BAYES_05 0.1
score BAYES_20 0.3
score BAYES_40 0.5
score BAYES_50 1.5
score BAYES_60 2.5
score BAYES_80 4.0
score BAYES_95 10.0
score BAYES_99 15.0
score BAYES_999 20.0
score SPF_HELO_PASS -2.0
score RAZOR2_CF_RANGE_51_100 4.0
score RAZOR2_CF_RANGE_E8_51_100 4.9
score RAZOR2_CF_RANGE_E4_51_100 4.5
score RAZOR2_CHECK 3.5
score PYZOR_CHECK 3.5
score DNS_FROM_OPENWHOIS 0.0
score RCVD_IN_DSBL 0.0
score RCVD_IN_SORBS_WEB 5.0
score RCVD_IN_SORBS_DUL 2.01
score DKIM_VALID_AU -4.0
score RCVD_BAD_ID 1.0
score SUBJ_ALL_CAPS 1.0
score URIBL_BLACK 10.0
score URIBL_JP_SURBL 5.0
score URIBL_WS_SURBL 5.0
score RCVD_IN_BL_SPAMCOP_NET 3.0
score TVD_SPACE_RATIO 1.5
score URIBL_DBL_SPAM 5.0
score RCVD_IN_RP_RNBL 5.0
score RCVD_IN_PBL 5.0
score SHORT_URIBL 10.0
score BARUWA_PDF_411 15.0
score BARUWA_PDF_ALT_411 15.0
score KAM_MXURI 0.5
score RCVD_BAD_ID 0.1
score KAM_COUK 0.5

#ok_languages en