<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Try</p>
<p>/usr/bin/file --mime-type 240000.dat</p>
<p>If you like the result, you can make<br>
</p>
<p>File Command = /usr/local/bin/file-wrapper</p>
<p>#cat /usr/local/bin/file-wrapper</p>
<p>#!/bin/bash<br>
#<br>
#<br>
/usr/bin/file --mime-type "$1"<br>
</p>
<p>Cheers! :)<br>
</p>
<br>
<div class="moz-cite-prefix">На 23.12.2019 в 15:23, Tracy Greggs via
MailScanner написа:<br>
</div>
<blockquote type="cite"
cite="mid:1dd401d5b994$25132e10$6f398a30$@okla.com">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@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]-->
<div class="WordSection1">
<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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Поздрави!
Валентин Ласков
Системен администратор
"Феста Холдинг" АД
бул. "Вл. Варненчик" 48
9000 гр. Варна
тел.: +359 52 669137
GSM: +359 888 669137
Fax: +359 52 669110
</pre>
</body>
</html>