[Dovecot] mime support for pigeonhole

LuKreme kremels at kreme.com
Wed Feb 5 03:50:37 UTC 2014


On 30 Jan 2014, at 11:50 , Tim Dickson <dickson.tim at googlemail.com> wrote:

> I am trying to filter mail with .exe and .zip attachments, to no success.

Are you using postfix with dovecot?

 $ cat mime_headers.pcre 
/^\s*Content-(Disposition|Type).*name\s*=\s*"?(.*\.(ade|adp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|hlp|hta|inf|ins|isp|js|jse|lnk|mdb|mde|mdt|mdw|msc|msi|msp|mst|nws|ops|pcd|pif|prf|reg|scf|scr\??|sct|shb|shs|shm|swf|vb[esx]?|vxd|wsc|wsf|wsh))(\?=)?"?\s*(;|$)/x REJECT Attachment name "$2" may not end with ".$3”
 $ grep mime main.cf
mime_header_checks = pcre:$config_directory/mime_headers.pcre



-- 
"Conservatives want live babies so they can raise them to be dead
soldiers" ~Carlin



More information about the dovecot mailing list