<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Try "SpamAssassin Rule Actions" which would have to process after SA, obviously.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">SpamAssassin Rule Actions = %rules-dir%/spamassassin.rule.actions.rules</span><br>
</div>
<div style="font-size: 12pt;"><span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif;"><span style="color: rgb(51, 51, 51); font-family: Calibri, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></span></div>
<div style="font-size: 12pt;"><span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif;"><span style="color: rgb(51, 51, 51); font-family: Calibri, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">TEST</span>=>store
 forward </span><font face="Calibri, sans-serif">spam@domain.com</font><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"> header "X-Spam-Status: Yes" header "X-Delivered-To: _TO_"</font><br>
</div>
<div style="font-size: 12pt;"><font color="#000000" face="Calibri, Arial, Helvetica, sans-serif"><br>
</font></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> MailScanner <mailscanner-bounces+djones=ena.com@lists.mailscanner.info> on behalf of 微和的風 <zephyr@flytonet.com><br>
<b>Sent:</b> Thursday, March 14, 2019 9:40 PM<br>
<b>To:</b> mailscanner@lists.mailscanner.info<br>
<b>Subject:</b> How to increase MailScanner spam score when block filename</font>
<div> </div>
</div>
<div lang="ZH-TW" style="">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">I’m using CentOS v7(1804),MailScanner 5.0.7 and spamassassin 3.4.</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">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.</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">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.</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">Why?? I guess it may be caused by the sequence of mailscanner rewriting the mail subject and spamassassin checking spam.</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">Please help me solve this problem.Thanks!</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">My settings are as follows</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">1./etc/MailScanner/MailScanner.conf</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">Filename Subject Text = {***File Quarantine***}</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">High SpamAssassin Score = 8</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">High Scoring Spam Actions = store forward <a href="mailto:spam@domain.com">
<span style="color: rgb(51, 51, 51); font-family: Calibri, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">TEST</span></a></span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">2./etc/mail/spamassassin/local.cf</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">header   TEST  Subject =~ /File Quarantine/</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">describe  TEST  File Quarantine</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">score    TEST   8</span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;">
<span lang="EN-US">ZEPHYR</span></p>
</div>
</div>
</div>
</body>
</html>