Debian Squeeze/Exim 4.72: ACL
I have the more or less standard exim acl for rejecting emails based on mime attachments with some common compressed file extensions added in (.zip/.rar etc.)
deny set acl_m1 = ${extract{-1}{.}{${lc:$mime_filename}}}
message = This message contains a prohibited file extension ($acl_m1)
log_message = REJECTED ATTACHMENT ($acl_m1)
condition = ${if match{$acl_m1}\N^(ade|adp|bas|bat|chm|cmd|com|cpl|crt|eml|enc|exe|hlp|hta|inf|ins|isp|js|jse|mdb|lnk|mde|msc|msi|msp|mst|pcd|pif|rar|reg|scr|sct|shs|url|vbs|vbe|wsf|wsh|wsc|zip)$\N}{1}{0}}
Q: How would I use a "Whitelist" to allow specific users to receive emails containing attachments of a certain type (e.g. .zip)?
Thx