file -i correctly returns text/plain. The charset isn't correct but that's no problem.<br><br>The entry in my mailscanner.conf was simply:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
# Where the "file" command is installed.<br># This is used for checking the content type of files, regardless of their<br># filename.<br># To disable Filetype checking, set this value to blank.<br>File Command = /usr/bin/file <br>
</blockquote><br>I changed this to /usr/bin/file -i to try if it works.<br><br>Can Mailscanner use this output with default rulesets?<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
allow text - -<br>allow \bscript - -<br>allow archive - -<br>allow postscript - -<br>deny self-extract No self-extracting archives No self-extracting archives allowed<br>
deny executable No executables No programs allowed 1<br>#EXAMPLE: deny - x-dosexec No DOS executables No DOS programs allowed<br>#deny ELF No executables No programs allowed<br>deny Registry No Windows Registry entries No Windows Registry files allowed<br>
<br>#deny MPEG No MPEG movies No MPEG movies allowed<br>#deny AVI No AVI movies No AVI movies allowed<br>#deny MNG No MNG/PNG movies No MNG movies allowed<br>#deny QuickTime No QuickTime movies No QuickTime movies allowed<br>
#deny ASF No Windows media No Windows media files allowed<br>#deny metafont No Windows Metafont drawings No WMF drawings allowed<br></blockquote><div><br>I can't find a translation table anywhere so I think Mailscanner compares these entry's directly with 'file' command's output.<br>
</div><br><br><br><div class="gmail_quote">On 8 June 2012 13:16, Martin Hepworth <span dir="ltr"><<a href="mailto:maxsec@gmail.com" target="_blank">maxsec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What version of mailScanner are you using?<br><br>this sounds like an issue that was fixed along time ago by using "file -i" rather the "file" to get the mime type.<span class="HOEnZb"><font color="#888888"><br>
<br clear="all">-- <br>Martin Hepworth, CISSP<br>
Oxford, UK</font></span><div class="HOEnZb"><div class="h5"><br>
<br><br><div class="gmail_quote">On 8 June 2012 09:41, Joolee <span dir="ltr"><<a href="mailto:mailscanner@joolee.nl" target="_blank">mailscanner@joolee.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I found out that it's just the file command and especially my magic file that identifies the E-mails as executable.<br><br>root@giselle:/usr/share/file# /usr/bin/file /var/spool/MailScanner/quarantine/20120608/BF8292586.AA876/msg-14738-61.txt<br>
/var/spool/MailScanner/quarantine/20120608/BF8292586.AA876/msg-14738-61.txt: DOS executable (COM)<br><br>My file version is 5.04 (newest in Ubuntu repo but there are newer ones in <a href="http://ftp.astron.com" target="_blank">ftp.astron.com</a>) but I can't find out where I can get the newest magic.mgc file. The files on the ftp server have to be compiled first.<div>
<div><br>
<br><div class="gmail_quote">On 8 June 2012 10:01, Andrew Colin Kissa <span dir="ltr"><<a href="mailto:andrew@topdog.za.net" target="_blank">andrew@topdog.za.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On 08 Jun 2012, at 9:20 AM, Joolee wrote:<br>
<br>
> The E-mails itself are valid E-mails from Russian GMail users that are encoded with the KOI8-R encoding.. I can send a sample off list if anyone is interested.<br>
<br>
</div>Send me the sample i will investigate.<br>
<br>
- Andrew<br>
<br>
--<br>
<a href="http://www.baruwa.org" target="_blank">www.baruwa.org</a><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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>
</font></span></blockquote></div><br>
</div></div><br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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>
<br></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br>