[exim] demime -> acl_smtp_mime

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marco Gaiarin
Fecha:  
A: exim-users
Asunto: [exim] demime -> acl_smtp_mime

I'm a bit later but...


I've to rewrite my 'data' ACL that use the old 'demime' condition. One is:

   deny
     message = .$found_extension files are not accepted here
     demime = ADE:ADP:ASP:BAS:BAT:CAB:CHM:CMD:COM:CPL:CRT:EXE:HLP:HTA:INF:INS:ISP:JS:JSE:LNK:MDB:MDE:MSC:MSI:MSP:MST:PCD:PIF:REG:SCR:SCT:SHB:SHS:URL:VB:VBE:VBS:WS:WSC:WSF:WSH


and is relatively simple, i think something like:

   deny
     message = '$mime_filename' file are not accepted here
     condition = ${if match {${uc:$mime_filename}} {[.] *(ADE|ADP|ASP|BAS|BAT|CAB|CHM|CMD|COM|CPL|CRT|EXE|HLP|HTA|INF|INS|ISP|JS|JSE|LNK|MDB|MDE|MSC|MSI|MSP|MST|PCD|PIF|REG|SCR|SCT|SHB|SHS|URL|VB|VBE|VBS|WS|WSC|WSF|WSH)\$}}


but a condition like:

  deny
    message = Serious MIME defect detected ($demime_reason)
    demime = *
    condition = ${if >{$demime_errorlevel}{2}{1}{0}}


how can be converted in 'acl_smtp_mime' lingo?


Thanks.

--
Una volta qualcuno chiese al Mahatma Gandhi cosa ne pensasse della civiltà
in occidente. «Credo che sarebbe una buona idea», rispose.