Can you try editing the "File Command" option?<br><br><div class="gmail_quote">On 14 June 2012 09:41, Remco Barendse <span dir="ltr"><<a href="mailto:mailscanner@barendse.to" target="_blank">mailscanner@barendse.to</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have the same problem although my messages in Russian language that i sent from Outlook XP get blocked :(<br>
<br>
I am running the latest MailScanner.<br>
<br>
I think mailscanner will run without that default ruleset that checks for executables but that would leave a huge security hole open, not an option (at least for me).<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Mon, 11 Jun 2012, Joolee wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
# 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>
<br>
<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>
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>
<br>
<br>
I can't find a translation table anywhere so I think Mailscanner compares these entry's directly with 'file' command's output.<br>
<br>
<br>
<br>
On 8 June 2012 13:16, Martin Hepworth <<a href="mailto:maxsec@gmail.com" target="_blank">maxsec@gmail.com</a>> wrote:<br>
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.<br>
<br>
--<br>
Martin Hepworth, CISSP<br>
Oxford, UK<br>
<br>
<br>
On 8 June 2012 09:41, Joolee <<a href="mailto:mailscanner@joolee.nl" target="_blank">mailscanner@joolee.nl</a>> wrote:<br>
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/<u></u>quarantine/20120608/BF8292586.<u></u>AA876/msg-14738-61.txt<br>
/var/spool/MailScanner/<u></u>quarantine/20120608/BF8292586.<u></u>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<br>
the newest magic.mgc file. The files on the ftp server have to be compiled first.<br>
<br>
On 8 June 2012 10:01, Andrew Colin Kissa <<a href="mailto:andrew@topdog.za.net" target="_blank">andrew@topdog.za.net</a>> wrote:<br>
<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<br>
send a sample off list if anyone is interested.<br>
<br>
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>
<br>
<br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<u></u>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<u></u>mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/<u></u>posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br>
<br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<u></u>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<u></u>mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/<u></u>posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br>
<br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<u></u>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<u></u>mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/<u></u>posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br>
<br>
<br>
</blockquote>
</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>