Re: [exim] acl_m* variables don't work in MIME ACL??

Etusivu
Poista viesti
Vastaa
Lähettäjä: Casey Allen Shobe
Päiväys:  
Vastaanottaja: exim-users
Kopio: David Saez Padros, Philip Hazel
Aihe: Re: [exim] acl_m* variables don't work in MIME ACL??
On Friday 19 May 2006 08:17, Philip Hazel wrote:
> How are you proposing that this should work when a message with an
> executable attachment is sent to two recipients, one in each type of
> domain?


acl_check_rcpt:
        warn    condition       = ${if def:acl_m7 {0}{1}}
                set acl_m7      = ${lookup pgsql{select "block_executables" 
from "hosted_domains" where "domain" = '${quote_pgsql:$domain}'} 
{$value}fail}
[...]
        defer   condition       = ${if !eq {${acl_m7}} {${lookup 
pgsql{select "block_executables" from "hosted_domains" where "domain" 
= '${quote_pgsql:$domain}'}}} {1}{0}}
                message         = Try this address in the next batch
[...]




acl_check_mime:
[...]
        accept  condition       = ${if eq{${acl_m7}} {f}}
        deny    condition       = ${if match{$mime_filename}{\N\.(bat|btm|cmd|
com|cpl|dll|exe|hta|lnk|msi|pif|prf|reg|scr|vbs)$\N} {yes}{no}}
                message         = Message content prohibited (Executable 
attachment not allowed:  $mime_filename).
                log_message     = MIME: Message content prohibited 
($mime_filename).



Cheers,
--
Casey Allen Shobe | cshobe@??? | 206-381-2800
SeattleServer.com, Inc. | http://www.seattleserver.com