How to increase MailScanner spam score when block filename
微和的風
zephyr at flytonet.com
Fri Mar 15 02:40:24 UTC 2019
I’m using CentOS v7(1804),MailScanner 5.0.7 and spamassassin 3.4.
I set a rule to block certain kind of filename,and add “***File
Quarantine***” to SUBJECT. I also set a rule for spamassassin to store mail
and email to spam account.
When I receive a blocked filename of mail, the spamassassin rules is not
applied. I do a test to send a mail just with subject “***File
Quarantine***”,the spamassassin rule works fine.
Why?? I guess it may be caused by the sequence of mailscanner rewriting the
mail subject and spamassassin checking spam.
Please help me solve this problem.Thanks!
My settings are as follows
1./etc/MailScanner/MailScanner.conf
Filename Subject Text = {***File Quarantine***}
High SpamAssassin Score = 8
High Scoring Spam Actions = store forward spam at domain.com
<mailto:spam at domain.com>
2./etc/mail/spamassassin/local.cf
header TEST Subject =~ /File Quarantine/
describe TEST File Quarantine
score TEST 8
ZEPHYR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20190315/51058b82/attachment-0001.html>
More information about the MailScanner
mailing list