How to increase MailScanner spam score when block filename

David Jones djones at ena.com
Fri Mar 15 13:08:32 UTC 2019


Try "SpamAssassin Rule Actions" which would have to process after SA, obviously.

SpamAssassin Rule Actions = %rules-dir%/spamassassin.rule.actions.rules

TEST=>store forward spam at domain.com header "X-Spam-Status: Yes" header "X-Delivered-To: _TO_"

________________________________
From: MailScanner <mailscanner-bounces+djones=ena.com at lists.mailscanner.info> on behalf of 微和的風 <zephyr at flytonet.com>
Sent: Thursday, March 14, 2019 9:40 PM
To: mailscanner at lists.mailscanner.info
Subject: How to increase MailScanner spam score when block filename


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 TEST<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/38040479/attachment.html>


More information about the MailScanner mailing list