[Mimedefang] Filtering attachment

Muhammad Talha talha at worldcall.net.pk
Wed Mar 3 06:21:35 EST 2004


> Please help me. I don't know if mimedefang can filter
> attachement ext like .exe or .pif.
>
> Please see my mimedefang-filter: (sorry for a long
> one)

# Bad extensions
    $bad_exts =
'(ade|adp|app|asd|asf|asx|bas|bat|chm|cmd|com|cpl|crt|dll|exe|fxp|hlp|hta|ht
o|inf|ini|ins|isp|jse?|lib|lnk|mdb|mde|msc|msi|msp|mst|ocx|pcd|pif|prg|reg|s
cr|sct|sh|shb|shs|sys|url|vb|vbe|vbs|vcs|vxd|wmd|wms|wmz|wsc|wsf|wsh|zip|\{[
^\}]+\})';

Bad extentions removed by default so dont have to worry

try sendmail exe file to yourself and see you got file or not

Thanks and Regards



More information about the MIMEDefang mailing list