155 lines
3.8 KiB
CFEngine3
155 lines
3.8 KiB
CFEngine3
# mysql configuration settings
|
|
dns_available yes
|
|
skip_rbl_checks 0
|
|
|
|
# #rewrite_header Subject [SPAM]
|
|
rewrite_header Subject ***[SPAM](_SCORE_)***
|
|
|
|
# system report
|
|
report_safe 0
|
|
|
|
# internal & trusted networks
|
|
internal_networks 192.168.1.0/25
|
|
trusted_networks 192.168.1.0/25 89.121.131.74/32
|
|
|
|
# set file-locking method (flock is not safe over NFS, but is faster)
|
|
lock_method flock
|
|
|
|
# default required score
|
|
required_hits 5.0
|
|
required_score 5
|
|
|
|
#DCC
|
|
use_dcc 1
|
|
dcc_home /var/dcc
|
|
dcc_path /usr/local/bin/dccproc
|
|
dcc_timeout 10
|
|
score DCC_CHECK 4
|
|
add_header all DCC _DCCB_: _DCCR_
|
|
|
|
# bayesian system
|
|
use_bayes 1
|
|
use_bayes_rules 1
|
|
bayes_auto_learn 1
|
|
bayes_auto_learn_threshold_nonspam 0.1
|
|
bayes_auto_learn_threshold_spam 8.9
|
|
bayes_learn_during_report 1
|
|
use_auto_whitelist 1
|
|
bayes_use_hapaxes 1
|
|
bayes_expiry_max_db_size 400000
|
|
bayes_auto_expire 1
|
|
#lock_method flock
|
|
bayes_min_ham_num 50
|
|
bayes_min_spam_num 50
|
|
bayes_path /var/spool/amavisd/.spamassassin/bayes
|
|
|
|
|
|
# razor
|
|
use_razor2 1
|
|
razor_config /var/spool/amavisd/.razor/razor-agent.conf
|
|
|
|
# pyzor
|
|
use_pyzor 1
|
|
pyzor_path /usr/bin/pyzor
|
|
pyzor_options --homedir /etc/mail/spamassassin
|
|
|
|
#other
|
|
bayes_ignore_header X-Spam-Flag
|
|
bayes_ignore_header X-Spam-Status
|
|
bayes_ignore_header X-Spam-Report
|
|
|
|
score RAZOR2_CHECK 2.500
|
|
score PYZOR_CHECK 2.500
|
|
score DCC_CHECK 4.000
|
|
|
|
score ALL_TRUSTED -10.000
|
|
score URIBL_DBL_SPAM 3.4
|
|
spf_timeout 5
|
|
|
|
#locales
|
|
ok_locales all
|
|
score DEAR_SOMETHING 0.5
|
|
score SUBJ_ALL_CAPS 0.5
|
|
score UPPERCASE_75_100 1
|
|
score MIME_BASE64_TEXT 1
|
|
score URIBL_BLACK 5
|
|
score URIBL_SBL 3
|
|
score FORGED_YAHOO_RCVD 4
|
|
score SARE_RECV_IP_FROMIP3 2
|
|
score RDNS_NONE 0.5
|
|
score BAYES_99 3.5
|
|
score SARE_SUB_GOOD_DAY 1.2
|
|
score SARE_RECV_VIRTUACOMBR 1.6
|
|
score SARE_GIF_ATTACH 0.1
|
|
|
|
header LOCAL_RCVD Received =~ /\S+\.section6.net\s+\(.*\[.*\]\)/
|
|
score LOCAL_RCVD -50
|
|
|
|
# ## Optional Score Increases
|
|
score DCC_CHECK 4.000
|
|
score RAZOR2_CHECK 2.500
|
|
score PYZOR_CHECK 2.500
|
|
score BAYES_99 5.300
|
|
score BAYES_90 4.500
|
|
score BAYES_80 4.000
|
|
# # For scores have a look at /usr/local/share/spamassassin/50_scores.cf
|
|
# # file.
|
|
score HTML_FONT_INVISIBLE 3
|
|
score HTML_FONTCOLOR_UNKNOWN 2
|
|
score ORDER_NOW 1.5
|
|
score CLICK_BELOW 1
|
|
score LIMITED_TIME_ONLY 1
|
|
# # This rule might be extreme but html only spams get through too easy.
|
|
# # In other words, if you can't take the time to write something and are
|
|
# # posting an image only, then you're 86'd!
|
|
score HTML_IMAGE_ONLY_02 2
|
|
score HTML_IMAGE_ONLY_04 2
|
|
score OFFERS_ETC 2
|
|
score HTML_LINK_CLICK_HERE 1
|
|
score LINES_OF_YELLING 1
|
|
|
|
### Shortcircuit plugin ###
|
|
ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
|
|
shortcircuit USER_IN_WHITELIST on
|
|
shortcircuit USER_IN_DEF_WHITELIST on
|
|
shortcircuit USER_IN_ALL_SPAM_TO on
|
|
shortcircuit SUBJECT_IN_WHITELIST on
|
|
shortcircuit USER_IN_BLACKLIST on
|
|
shortcircuit USER_IN_BLACKLIST_TO on
|
|
shortcircuit SUBJECT_IN_BLACKLIST on
|
|
shortcircuit ALL_TRUSTED on
|
|
shortcircuit BAYES_99 spam
|
|
shortcircuit BAYES_00 ham
|
|
endif
|
|
|
|
#### Shortcircuit plugin ###
|
|
ifplugin Mail::SpamAssassin::Plugin::TxRep
|
|
header TXREP eval:check_senders_reputation()
|
|
describe TXREP Score normalizing based on sender's reputation
|
|
tflags TXREP userconf noautolearn
|
|
priority TXREP 1000
|
|
endif
|
|
|
|
#MTX Blacklist
|
|
include /etc/spamassassin/mtx.cf
|
|
|
|
### MANUAL WHITELIST ###
|
|
whitelist_from *@escorte.pro
|
|
whitelist_to *@escorte.pro
|
|
whitelist_from *@vrem.ro
|
|
whitelist_to *@vrem.ro
|
|
whitelist_from *@newsletter.emag.ro
|
|
whitelist_from *@emag.ro
|
|
whitelist_from *@librabank.ro
|
|
whitelist_from *@simpatie.ro
|
|
|
|
### MANUAL BLACKLIST ###
|
|
blacklist_from comenzi@besttoner.ro
|
|
blacklist_from info@timisoaraazi.ro
|
|
blacklist_from hello@emailvision.ro
|
|
blacklist_from info@targetmail.ro
|
|
blacklist_from compact.sv@gmail.com
|
|
|
|
#MANUAL WHITELIST+BLACKLIST
|
|
include /etc/spamassassin/manual.cf
|