В конфиге exima
spamd_address = 127.0.0.1 783
acl_check_data:
deny message = This message is a virus: ($malware_name)
demime = *
malware = *
warn message = Subject: ***SPAM*** $h_Subject:
hosts = !+relay_from_hosts
spam = nobody:true
warn message = X-Spam-Score: $spam_score ($spam_bar)
hosts = !+relay_from_hosts
spam = nobody:true
warn message = X-Spam-Flag: YES
hosts = !+relay_from_hosts
spam = nobody:true
accept
Конфиг Spamassasina
rewrite_header Subject *****SPAM*****
# report_safe 1
trusted_networks 192.168.0
required_score 7.0
use_bayes 1
bayes_auto_learn 0
ok_languages ru en ok_locales ru en report_charset koi8-r lang ru
#score options
score MIME_HTML_ONLY 1.0 score HTML_MESSAGE 1.0 score HTML_FONTCOLOR_RED 2.0 score UPPERCASE_25_50 2.0 score HTML_FONT_LOW_CONTRAST 0.5 score SUBJ_ALL_CAPS 1.0 score HTML_LINK_CLICK_CAPS 1.0 score HTML_LINK_CLICK_HERE 2.0 score HTML_TAG_BALANCE_A 2.0 score HTML_TAG_BALANCE_BODY 2.0 score HTML_TITLE_EMPTY 2.0 score PENIS_ENLARGE 5.0 score PENIS_ENLARGE2 5.0 score DRUGS_MUSCLE 5.0 score IMPOTENCE 5.0 score HTTP_WITH_EMAIL_IN_URL 2.0 score BAYES_40 0.0 score BAYES_44 1.0 score BAYES_50 1.0 score BAYES_56 2.0 score BAYES_70 3.0 score BAYES_80 3.5 score BAYES_90 4
blacklist_from example@mail.ru
>Вот что в логах:
spamd: connection from localhost [127.0.0.1] at port 41019
Oct 2 06:51:50 zimbra spamd[9078]: spamd: using default config for nobody: /etc/spamassassin/user_prefs
Oct 2 06:51:50 zimbra spamd[9078]: spamd: checking message <42B80C80B26C4DC38D89F6ABB1D235CB@cold> for nobody:102
Oct 2 06:51:50 zimbra spamd[9078]: spamd: identified spam (8.9/7.0) for nobody:102 in 0.7 seconds, 15326 bytes.
Oct 2 06:51:50 zimbra spamd[9078]: spamd: result: Y 8 - DATE_IN_PAST_03_06,HTML_MESSAGE,NO_DNS_FOR_FROM,RCVD_IN_PBL, RCVD_IN_XBL,RDNS_DYNAMIC,TVD_RCVD_IP sc$
Oct 2 06:51:50 zimbra spamd[21565]: prefork: child states: II
>Проблема такая, spamassasin не переписывает Subject письма которое яв-тся спамом.
Хотя в заголовках письма следующие:
X-Spam: Not detected
X-Mras: Ok
Subject: ***SPAM*** 777
X-Spam-Score: 100.2(+++++++++++++++++++++++++++++++++++++++++++++++++++)
X-Spam-Flag: YES
X-Antivirus: avast! (VPS 091001-0, 01.10.2009), Inbound message
X-Antivirus-Status: Clean