<div style="font-family: Arial; font-size: 13;"><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;">Hi,</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;"><br></div><div><font face="Arial"><span style="font-size: 13px;">I have some running amavisd-new-2.7.0-pre8 (20101028), with configured banned_filename_re.</span></font></div><div><font face="Arial"><span style="font-size: 13px;">Though, I can send exe files or any other extension specified, as if it is not considered at all.</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">I also have final_banned_destiny as D_BOUNCE.<br>I also tried one of them upgraded to amavisd-new-2.11, no way, same result.<br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">Anyone has any idea why it is not filtering attachments by filename as expected?</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">Here is the </span></font><span style="font-family: Arial; font-size: 13px;">banned_filename_re definition:</span><font face="Arial"><span style="font-size: 13px;"><br></span></font><br><div><div><font face="Arial"><span style="font-size: 13px;">$banned_filename_re = new_RE(</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><span style="font-size: 13px; font-family: Arial;">  qr'^\.(exe-ms|dll)$',                   # banned file(1) types, rudimentary</span></div><div><font face="Arial"><span style="font-size: 13px;">  qr'^\.(exe|lha|cab|dll)$',              # banned file(1) types</span></font></div><div><span style="font-size: 13px; font-family: Arial;">  [ qr'^\.(rpm|cpio|tar)$'       => 0 ],  # allow any in Unix-type archives</span></div><div><font face="Arial"><span style="font-size: 13px;">  qr'.\.(pif|scr)$'i,                     # banned extensions - rudimentary</span></font></div><div><font face="Arial"><span style="font-size: 13px;">  qr'^application/x-msdownload$'i,        # block these MIME types</span></font></div><div><font face="Arial"><span style="font-size: 13px;">  qr'^application/x-msdos-program$'i,</span></font></div><div><font face="Arial"><span style="font-size: 13px;">  qr'^application/hta$'i,</span></font></div><div><span style="font-family: Arial; font-size: 13px;">  qr'\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,</span></div><div><span style="font-size: 13px; font-family: Arial;">  qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com|wsf|js)$'i, # banned extension - basic+cmd</span></div></div><div>);</div><div><br></div>Thanks for any help</div><div>Gabriele</div><div><br><div id="wt-mailcard" style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;"><div style="font-family: Arial;">----------------------------------------------------------------------------------------<br></div><div style="font-family: Arial;"><b>Sonicle S.r.l. </b>: <a href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</a></div><div style="font-family: Arial;"><b>Music: </b><a href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com <br></a></div><div style="font-family: Arial;"><b>Quantum Mechanics : </b><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></div></div></div>
<br><br></div>