<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Interestingly enough, with the mime-type directive it comes back as text/plain where without it comes back as an executable block device driver.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>So the filesystems test must be where the issue resides?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Tracy<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='color:windowtext'>From:</span></b><span style='color:windowtext'> MailScanner [mailto:mailscanner-bounces+mailscanner-list=okla.com@lists.mailscanner.info] <b>On Behalf Of </b>Valentin Laskov<br><b>Sent:</b> Monday, December 23, 2019 7:58 AM<br><b>To:</b> mailscanner@lists.mailscanner.info >> MailScanner discussion <mailscanner@lists.mailscanner.info><br><b>Subject:</b> Re: Outlook .dat files detected as DOS executable by Linux file binary<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>Try<span style='font-size:12.0pt'><o:p></o:p></span></p><p>/usr/bin/file --mime-type 240000.dat<o:p></o:p></p><p>If you like the result, you can make<o:p></o:p></p><p>File Command = /usr/local/bin/file-wrapper<o:p></o:p></p><p>#cat /usr/local/bin/file-wrapper<o:p></o:p></p><p>#!/bin/bash<br>#<br>#<br>/usr/bin/file --mime-type "$1"<o:p></o:p></p><p>Cheers! :)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>На 23.12.2019 в 15:23, Tracy Greggs via MailScanner написа:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Both Centos 7 and Ubuntu 18.04 LTS file commands return for example 240000.dat: DOS executable (block device driver) on all Outlook received emails with attachments. The .dat file names differ with each email, I never see winmail.dat but what I do see is that whatever the .dat file is normally contains the attachment and the message. <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I hate to completely disable the feature:<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal># Where the "file" command is installed.<o:p></o:p></p><p class=MsoNormal># This is used for checking the content type of files, regardless of their<o:p></o:p></p><p class=MsoNormal># filename.<o:p></o:p></p><p class=MsoNormal># To disable Filetype checking, set this value to blank. <o:p></o:p></p><p class=MsoNormal>File Command = /usr/bin/file<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>What is the current workaround for this issue, and what do you recommend for TNEF settings in MailScanner.conf?<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Thanks and Happy Holidays everyone!<o:p></o:p></p><p class=MsoNormal>Tracy Greggs<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><br><br><br><o:p></o:p></span></p><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Поздрави!<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Валентин Ласков<o:p></o:p></pre><pre>Системен администратор<o:p></o:p></pre><pre>"Феста Холдинг" АД<o:p></o:p></pre><pre>бул. "Вл. Варненчик" 48<o:p></o:p></pre><pre>9000 гр. Варна<o:p></o:p></pre><pre>тел.: +359 52 669137<o:p></o:p></pre><pre>GSM: +359 888 669137<o:p></o:p></pre><pre>Fax: +359 52 669110<o:p></o:p></pre></div></body></html>