<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050">Hi,</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050">
I need to selectively allow certain people to send image files, and I have ran into problems. </p><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050">I have the following configuration.</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050; min-height: 12.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050">Deny File MIME Types = %rules-dir%/deny.filemimetypes.rules </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050; min-height: 12.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050">in the %rules-dir%/deny.filemimetypes.rules file</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050; min-height: 12.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #0065cc"><span style="color: #500050">From:<span class="Apple-tab-span" style="white-space:pre">        </span><a href="mailto:terence@vicosys.com.hk"><span style="text-decoration: underline ; color: #0065cc">terence@vicosys.com.hk</span></a><span class="Apple-tab-span" style="white-space:pre">        </span>image/png</span></p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050; min-height: 12.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; color: #500050">When I try to send a email attached a png file - the mail can still pass thru. I tested the file using file -i command, the mime type is &quot;image/png&quot; </p>
</div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial">I traced the code and found out that the coding for &quot;file -i&quot; has not been used. ($MailScanner::Config::UsingFileICommand = 0), so it has never tried to look at the MIME type.</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; min-height: 12.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial">if I hack the Config.pm and force $MailScanner::Config::UsingFileICommand = 1, it all works. </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial; min-height: 12.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial">Is this a bug or if it is some misconfiguration on my part?</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial">
Thanks</p></div><div><br></div>