Linux file command identifies text-file as DOS executable (COM)

Heino Backhaus heino.backhaus at fink-computer.de
Fri Nov 6 09:02:25 UTC 2015


Thanks Valentin,

i've allready upgraded to 5.25 and it works perfektly at the moment.
The Upgrade it self is, following the LFS-Documentation, easy.
You need to have a sane development-system installed.

Thanks for helping

cheers
  -Heino

"In retrospect it becomes clear that hindsight is definitely overrated!"

   -Alfred E. Neumann

Am 02.11.2015 um 16:52 schrieb Valentin Laskov:
> Try
> in MailScanner.conf
> File Command = /usr/local/bin/file-wrapper
>
> and make /usr/local/bin/file-wrapper as this
>
> #!/bin/bash
> #
> /usr/bin/file --mime-type "$1"
> #end of /usr/local/bin/file-wrapper
>
> Regards
> Valentin
>
> На 02.11.2015 в 17:16, Heino Backhaus написа:
>> A funny thing came a cross my eyes...
>>
>> if your using file v5.14 to detect executeables and you put this "锘"
>> chinese charakter at the beginning of a text-file it will be detected
>> as DOS-Executeable (COM). I'm wondering if i schould upgrade to file
>> 5.24.
>>
>> Are there known issues with file v5.24 and Mailscanner?
>>
>> # file msg-17333-4.txt
>> msg-17333-4.txt: DOS executable (COM)
>>
>> # file --version
>> file-5.14
>>
>> Greetings
>>  -Heino
>>
>> "In retrospect it becomes clear that hindsight is definitely overrated!"
>>
>>   -Alfred E. Neumann
>>
>>
>


More information about the MailScanner mailing list