Linux file command identifies text-file as DOS executable (COM)
Valentin Laskov
it at festa.bg
Mon Nov 2 15:52:56 UTC 2015
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
>
>
--
Поздрави!
Валентин Ласков
Отговорник КИПО
"Феста Холдинг" АД
бул. "Вл. Варненчик" 48
9000 гр. Варна
тел.: +359 52 669137
GSM: +359 888 669137
Fax: +359 52 669110
More information about the MailScanner
mailing list