<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<br>
<div>
<p>... Which probably mean you use better file magic;-) </p>
<p>Cheers<br>
-- <br>
-- Glenn</p>
<div class="gmail_quote">Den 3 okt 2011 16:32 skrev &quot;Kevin Kobb&quot; &lt;<a href="mailto:kkobb@skylinecorp.com" target="_blank">kkobb@skylinecorp.com</a>&gt;:<br type="attribution">
&gt; <br>
&gt; On 10/3/2011 9:51 AM, Johan Hendriks wrote:<br>
&gt;&gt;&gt; Hi guys<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I'm having problems with text being detected as MPEG files.<br>
&gt;&gt;&gt; The error I'm getting from MS is:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The following e-mails were found to have: Bad Filename Detected<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Sender: <a href="mailto:xxxxx@example.com" target="_blank">xxxxx@example.com</a><br>
&gt;&gt;&gt; IP Address: 192.168.0.210<br>
&gt;&gt;&gt; Recipient: yyyyy@example.&gt;org<br>
&gt;&gt;&gt; Subject: RE: Statistik<br>
&gt;&gt;&gt; MessageID: p937N5Zx000344<br>
&gt;&gt;&gt; Quarantine: /var/spool/MailScanner/quarantine/20111003/p937N5Zx000344<br>
&gt;&gt;&gt; Report: MailScanner: No MPEG movies allowed (msg-2048-10.txt)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This has been up before, but can't seem to find the solution.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any clues on how to handle this?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The first couple of lines in the file is ( ? = danish character æ ):<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; V?rsgo<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Glostrup Pakke blev ikke solgt i denne periode...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The first 8 bytes of 'msg-2048-10.txt' in HEX are:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 00000000 56 E6 72 73 ¦ 67 6F 0A 20<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Using the file command, i get:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; # file msg-2048-10.txt<br>
&gt;&gt;&gt; msg-2048-10.txt: MPEG-4 LOAS<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Adding an -i parameter give:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; # file -i msg-2048-10.txt<br>
&gt;&gt;&gt; msg-2048-10.txt: audio/x-mp4a-latm; charset=iso-8859-1<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; # MailScanner -V<br>
&gt;&gt;&gt; Running on<br>
&gt;&gt;&gt; Linux gphgw 2.6.30.5 #1 SMP PREEMPT Mon Sep 14 11:49:43 CEST 2009<br>
&gt;&gt;&gt; i686 Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz GenuineIntel GNU/Linux<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This is Perl version 5.010001 (5.10.1)<br>
&gt;&gt;&gt; This is MailScanner version 4.82.6<br>
&gt;&gt;&gt; SpamAssassin 3.3.1<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; All perl modules are up to date.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -- <br>
&gt;&gt;&gt; Later<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Mogens Melander<br>
&gt;&gt; <br>
&gt;&gt; As far as i know, it is not clamav that Marks this as a non deliverable mail but Mailscanner itself.<br>
&gt;&gt; I have the same problem, but on my systems (FreeBSD) these file manifest themselves as .com aka executeables.<br>
&gt;&gt; <br>
&gt;&gt; Sender: <a href="mailto:xxxx@yyyy.com" target="_blank">xxxx@yyyy.com</a><br>
&gt;&gt; IP Address: 85.233.160.19<br>
&gt;&gt; Recipient: <a href="mailto:aaaaaa@bbbbbbb.com" target="_blank">aaaaaa@bbbbbbb.com</a><br>
&gt;&gt; Subject: ??: {Filename?} ??: ??? ????<br>
&gt;&gt; MessageID: 6CE3ED46417.AFAF9<br>
&gt;&gt; Quarantine: /var/spool/MailScanner/quarantine/20110929/6CE3ED46417.AFAF9<br>
&gt;&gt; Report: MailScanner: No programs allowed (msg-85973-48.txt)<br>
&gt;&gt; <br>
&gt;&gt; I still have not find a way to let them pass without allowing executeables for the domains that send them.<br>
&gt;&gt; <br>
&gt;&gt; Regards<br>
&gt;&gt; Johan Hendriks<br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt; On FreeBSD, I have found that using the file command from ports<br>
&gt; (sysutils/file) rather than the base system, took care of a lot of these<br>
&gt; problems. The ports version is much newer.<br>
&gt; <br>
&gt; Just make sure to update the file command path in your mailscanner config.<br>
&gt; -- <br>
&gt; MailScanner mailing list<br>
&gt; <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br>
&gt; <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">
http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
&gt; <br>
&gt; Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">
http://wiki.mailscanner.info/posting</a><br>
&gt; <br>
&gt; Support MailScanner development - buy the book off the website! <br>
<br>
Ok i found out that if i use /usr/local/bin/file msg-17843-89.txt it manifest itself as executeable.<br>
<br>
If i do /usr/local/bin/file -i msg-17843-89.txt then it tells me it is a txt file.<br>
<br>
Now i try to use the following setting in MailScanner.conf<br>
File Command =&nbsp; /usr/local/bin/file -i<br>
<br>
Gr<br>
Johan<br>
<br>
<br>
</div>
</div>
</div>
</div>
</body>
</html>