RE: [exim] Blacklist file extensions acl_smtp_mime vs acl_sm…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Herb Martin
Dátum:  
Címzett: 'John Oxley', exim-users
CC: 
Tárgy: RE: [exim] Blacklist file extensions acl_smtp_mime vs acl_smtp_data
> What are the various merits of putting checks for black
> listed file extensions in acl_smtp_mime vs putting them in
> acl_smtp_data? Which way is faster?
>
> acl_check_mime:
> # File extension filtering.
> deny message = Blacklisted file extension detected ($found_extension)
>    condition = ${if match \
>    {${lc:$mime_filename}} \
>    {\N(\.exe|\.scr|\.vbs|\.pif|\.bat|\.scr|\.lnk|\.com)$\N} \
>    {1}{0}}


> acl_check_content:
> deny  message    = Blacklisted file extension detected 
> ($found_extension)
>       demime     = scr:vbs:bat:lnk:pif:exe:com



I believe the main difference is that the "demime"
modifier is technically "deprecate" -- carried forward
for compatibility.

Do both of these work correctly for you?

(I am having some trouble with my similar tests.)