hi,
I am trying to setup al_smtp_mime to block some attachments which is working fine and also forward any attachments containing zips to a specific mailbox..
I found some code in Google which led me to produce this:
acl_check_mime:
deny message = Blacklisted file extension detected
condition = ${if match {${lc:$mime_filename}}{\N(\.ade|\.adp|\.bat|\.chm|\.cmd|\.com|\.cpl|\.exe|\.hta|\.ins|\.isp|\.jse|\.lib|\.lnk|\.mde|\.msc|\.msp|\.mst|\.pif|\.scr|\.sct|\.shb|\.sys|\.vb|\.vbe|\.vbs|\.vxd|\.wsc|\.wsf|\.wsh)$\N}{1}{0}}
# redirection of zip files to a special account
warn message = X-Redirect-To: jodie@???
condition = ${if match {${lc:$mime_filename}}{\N(\.zip)$\N}{1}{0}}
accept
I also have the following router:
zip_redirect:
driver = redirect
condition = ${if def:h_X-Redirect-To: {1}{0}}
headers_add = X-Original-Recipient: $local_part@$domain
data = $h_X-Redirect-To:
# headers_remove = X-Redirect-Zip-To
redirect_router = dnslookup
However, while the block for certain attachments is not working, the Zip files are delivered as normal and the ACL does not seem to do anything..
Could anyone give me some pointers or help?
Exim version 4.86 (FreeBSD 9.2) uid=0 gid=0 pid=43343 D=fbb95cfd
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources Perl Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime DNSSEC PRDR OCSP Experimental_SPF
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch mysql
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply pipe smtp
Kind Regards,
Jonathan Gilpin