I had an issue come up today with MailScanner, quite why it only suddenly surfaced I don&#39;t know (I&#39;m guessing someone did an update on the server and hasn&#39;t fessed up).<div><br></div><div>Anyway, the issue was that MailScanner would continually cycle over the same messages time and again, never actually processing them (although it&#39;d virus and SpamAssassin scan them, just not deliver them on). The only error was in /var/log/messages, being variations on the following: &quot;Process did not exit cleanly, returned 255 with signal 0&quot;.&nbsp;</div>
<div><br></div><div>Running check_MailScanner with Debug = yes and Debug SpamAssassin = yes turned up the following error: &quot;Unmatched ) in regex; marked by &lt;-- HERE in m/\.[a-z0-9]{3}) &lt;-- HERE \1$/ at /usr/lib/MailScanner/MailScanner/SweepOther.pm line 273.&quot;</div>
<div><br></div><div>I took a look at that file and couldn&#39;t see anything obviously wrong, although it&#39;s hard to tell as the regex is actually being passed in as a variable. To get round the problem I added the following: &quot;$regex = quotemeta ($regex);&quot; just before that line, which cured the problem and doesn&#39;t seem to have broken anything else (check_MailScanner returned no problems and the server is now processing mail correctly).</div>
<div><br></div><div>Any thoughts on what could have caused this and whether my fix is okay?</div><div><br></div><div>TIA,</div><div><br></div><div>Symon.</div>