<div dir="ltr">It is after 5.10.<br><br><a href="http://lists.mailscanner.info/pipermail/mailscanner/2011-May/097870.html">http://lists.mailscanner.info/pipermail/mailscanner/2011-May/097870.html</a><br><br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 11:45 AM, Martijn <span dir="ltr">&lt;<a href="mailto:mailinglist@mindconnect.nl" target="_blank">mailinglist@mindconnect.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For the record:<br>
This install of MailScanner on Ubuntu 10.04 LTS has been functioning<br>
without any noticable problems (except for the notification mails) or<br>
errors in the logs for about 2 years now, and that is without the perl<br>
-U switch.<br>
<br>
Should I&#39;ve noticed anything else with this parameter missing? This may<br>
lead to me writing more tests to ensure proper functioning.<br>
<div class=""><br>
Thanks,<br>
- Martijn<br>
<br>
On 16-6-2014 1:58, Jerry Benton wrote:<br>
</div><div class="">&gt; Did you add the -U option to your /usr/sbin/MailScanner?<br>
&gt;<br>
&gt; #!/usr/bin/perl -U -I/usr/share/MailScanner/<br>
&gt;<br>
&gt; -<br>
&gt; Jerry Benton<br>
</div>&gt; <a href="http://www.mailborder.com" target="_blank">www.mailborder.com</a> &lt;<a href="http://www.mailborder.com" target="_blank">http://www.mailborder.com</a>&gt;<br>
<div class="">&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jun 16, 2014, at 1:17 AM, Martijn &lt;<a href="mailto:mailinglist@mindconnect.nl">mailinglist@mindconnect.nl</a><br>
</div><div class="">&gt; &lt;mailto:<a href="mailto:mailinglist@mindconnect.nl">mailinglist@mindconnect.nl</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;&gt; I&#39;m running tests for upgrading a system to a newer version of Ubuntu<br>
&gt;&gt; LTS, and during my tests I found a difference in behaviour between the<br>
&gt;&gt; MailScanner I have on 10.04 LTS and the one that&#39;s on 12.04 LTS.<br>
&gt;&gt;<br>
&gt;&gt; The 12.04 LTS system is an upgraded install of a copy of the 10.04 LTS<br>
&gt;&gt; install. MailScanner version is: 4.84.5 from the <a href="http://apt.baruwa.org" target="_blank">apt.baruwa.org</a><br>
</div>&gt;&gt; &lt;<a href="http://apt.baruwa.org" target="_blank">http://apt.baruwa.org</a>&gt;<br>
<div><div class="h5">&gt;&gt; repository, both before and after the upgrade.<br>
&gt;&gt;<br>
&gt;&gt; The MailScanner configuration between the two systems is completely<br>
&gt;&gt; identical. MailScanner --debug --lint shows no issues.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve found two seperate issues:<br>
&gt;&gt;<br>
&gt;&gt; Issue #1: The install on 10.04 doesn&#39;t send blocked filename<br>
&gt;&gt; notifications but the install on 12.04 does.<br>
&gt;&gt;<br>
&gt;&gt; Deny Filenames list is configured as:<br>
&gt;&gt; Deny Filenames = \.com$ \.exe$ \.msi$ \.pif$ \.bat$ \.cpl$ \.vbs$ \.vb$<br>
&gt;&gt; \.scr$ \.dll$ \.reg$<br>
&gt;&gt;<br>
&gt;&gt; And:<br>
&gt;&gt; Notify Senders Of Blocked Filenames Or Filetypes = yes<br>
&gt;&gt;<br>
&gt;&gt; On 10.04, when sending an eicar test file, the mail is considered to<br>
&gt;&gt; contain a virus and therefor deleted. No notification mail is sent,<br>
&gt;&gt; although the configuration would suggest it should. The logs say this:<br>
&gt;&gt;<br>
&gt;&gt; New Batch: Scanning 1 messages, 1965 bytes<br>
&gt;&gt; Virus and Content Scanning: Starting<br>
&gt;&gt; Clamd::INFECTED::Eicar-Test-Signature :: ./DECEF36C443.ACC6F/<br>
&gt;&gt; Virus Scanning: Clamd found 1 infections<br>
&gt;&gt; Infected message DECEF36C443.ACC6F came from 195.241.145.230<br>
&gt;&gt; Virus Scanning: Found 1 viruses<br>
&gt;&gt; Virus Scanning completed at 10980 bytes per second<br>
&gt;&gt; Saved entire message to<br>
&gt;&gt; /var/spool/MailScanner/quarantine/20140616/DECEF36C443.ACC6F<br>
&gt;&gt; Spam Checks: Starting<br>
&gt;&gt; Message DECEF36C443.ACC6F from 195.241.145.230 (victim@testdomain.ext<br>
</div></div>&gt;&gt; &lt;mailto:<a href="mailto:victim@testdomain.ext">victim@testdomain.ext</a>&gt;)<br>
<div class="">&gt;&gt; to testdomain.ext is not spam, SpamAssassin (not cached, score=-3.228,<br>
&gt;&gt; required 3, autolearn=not spam, ALL_TRUSTED -1.00, AWL -0.33, BAYES_00<br>
&gt;&gt; -1.90)<br>
&gt;&gt; Spam Checks completed at 271 bytes per second<br>
&gt;&gt; Cleaned: Delivered 1 cleaned messages<br>
&gt;&gt; Deleted 1 messages from processing-database<br>
&gt;&gt; Batch completed at 264 bytes per second (1965 / 7)<br>
&gt;&gt; Batch (1 message) processed in 7.42 seconds<br>
&gt;&gt;<br>
&gt;&gt; After upgrading to 12.04, the difference in behaviour is that<br>
&gt;&gt; MailScanner now suddenly DOES sends a notification message to notify of<br>
&gt;&gt; a deleted attachment. The log now has this:<br>
&gt;&gt;<br>
&gt;&gt; New Batch: Scanning 1 messages, 1841 bytes<br>
&gt;&gt; Filename Checks: Blocked Filename Detected (7CE27442AE.AFD34 <a href="http://eicar.com" target="_blank">eicar.com</a><br>
</div>&gt;&gt; &lt;<a href="http://eicar.com" target="_blank">http://eicar.com</a>&gt;)<br>
<div class="">&gt;&gt; Other Checks: Found 1 problems<br>
&gt;&gt; Virus and Content Scanning: Starting<br>
&gt;&gt; Clamd::INFECTED::Eicar-Test-Signature :: ./7CE27442AE.AFD34/<br>
&gt;&gt; Virus Scanning: Clamd found 1 infections<br>
&gt;&gt; Infected message 7CE27442AE.AFD34 came from 10.0.3.2<br>
&gt;&gt; Virus Scanning: Found 1 viruses<br>
&gt;&gt; Virus Scanning completed at 2784 bytes per second<br>
&gt;&gt; Saved entire message to<br>
&gt;&gt; /var/spool/MailScanner/quarantine/20140616/7CE27442AE.AFD34<br>
</div>&gt;&gt; Saved infected &quot;<a href="http://eicar.com" target="_blank">eicar.com</a> &lt;<a href="http://eicar.com" target="_blank">http://eicar.com</a>&gt;&quot; to<br>
<div class="">&gt;&gt; /var/spool/MailScanner/quarantine/20140616/7CE27442AE.AFD34<br>
&gt;&gt; Spam Checks: Starting<br>
&gt;&gt; Expired 1 records from the SpamAssassin cache<br>
&gt;&gt; Message 7CE27442AE.AFD34 from 10.0.3.2 (victim@testdomain.ext<br>
</div>&gt;&gt; &lt;mailto:<a href="mailto:victim@testdomain.ext">victim@testdomain.ext</a>&gt;) to<br>
<div class="">&gt;&gt; testdomain.ext is not spam, SpamAssassin (not cached, score=-0.879,<br>
&gt;&gt; required 3, autolearn=not spam, ALL_TRUSTED -1.00, AWL 0.12)<br>
&gt;&gt; Spam Checks completed at 209 bytes per second<br>
&gt;&gt; Requeue: 7CE27442AE.AFD34 to 0BD61442B7<br>
&gt;&gt; Cleaned: Delivered 1 cleaned messages<br>
&gt;&gt; Virus Processing completed at 3872 bytes per second<br>
&gt;&gt; Deleted 1 messages from processing-database<br>
&gt;&gt; Batch completed at 185 bytes per second (1841 / 9)<br>
&gt;&gt; Batch (1 message) processed in 9.92 seconds<br>
&gt;&gt;<br>
&gt;&gt; Notice the &quot;Filename Checks: Blocked Filename Detected (7CE27442AE.AFD34<br>
</div>&gt;&gt; <a href="http://eicar.com" target="_blank">eicar.com</a> &lt;<a href="http://eicar.com" target="_blank">http://eicar.com</a>&gt;)&quot;. This notice wasn&#39;t there on 10.04 LTS.<br>
<div class="">&gt;&gt;<br>
&gt;&gt; Question: does anyone know what the cause of this difference in<br>
&gt;&gt; behaviour is, as the MailScanner version and configuration are the same?<br>
&gt;&gt;<br>
&gt;&gt; Issue #2:<br>
&gt;&gt; So, notifications are sent on 12.04, but:<br>
&gt;&gt; The option called &quot;Notify Senders Of Blocked Filenames Or Filetypes&quot;<br>
&gt;&gt; doesn&#39;t send a notification to the sender. It sends the notification to<br>
&gt;&gt; the _receiver_ of the message.<br>
&gt;&gt;<br>
&gt;&gt; Questions: Is this expected behaviour and should all those options<br>
&gt;&gt; actually be called &#39;Notify Recipient *&#39; or am I missing something here ;-)<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; - Martijn<br>
&gt;&gt; --<br>
&gt;&gt; MailScanner mailing list<br>
&gt;&gt; <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
</div>&gt;&gt; &lt;mailto:<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>&gt;<br>
<div class="HOEnZb"><div class="h5">&gt;&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
&gt;&gt;<br>
&gt;&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
&gt;&gt;<br>
&gt;&gt; Support MailScanner development - buy the book off the website!<br>
&gt;<br>
&gt;<br>
&gt;<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><div><br>--<br></div>Jerry Benton<br></div>Mailborder Systems<br><a href="http://www.mailborder.com" target="_blank">www.mailborder.com</a><br>
</div>
</div>