On Thu, Feb 15, 2007 at 03:22:46PM +0000, Mike Cardwell wrote:
<snip> 
> acl_relay_countries:
>    warn set acl_m3 = ${if eq{$acl_m3}{}{$h_received:}{$acl_m3}}
>         set acl_m2 = ${if match{$acl_m3}{\N^[^\[]+\[([^\]]+)\]\N}{$1}{}}
>         set acl_m3 = ${sg{$acl_m3}{\N^[^\[]+\[([^\]]+)\](.*)\N}{\$2}}
>    warn condition  = ${if match{$acl_m2}{\N^\d{1,3}(\.\d{1,3}){3}$\N}}
>         !condition = ${if match_ip{$acl_m2}{+private_networks}}
>         set acl_m5 = 
> ${sg{$acl_m2}{\N^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$\N}{\$4.\$3.\$2.\$1.zz.countries.nerd.dk}}
>         set acl_m5 = ${lookup dnsdb{txt=<,$acl_m5}{${uc:$value}}{UNKNOWN}}
>         set acl_m0 = ${if eq{$acl_m0}{}{$acl_m5}{$acl_m0 $acl_m5}}
>    warn !condition = ${if eq{$acl_m2}{}}
>         acl        = acl_relay_countries
>    accept
> 
> I only briefly tested the above but it seems to work.
> 
> There should be an obfuscated exim configuration contest.


You win.

-- 
The universe is like a safe to which there is a combination -- but the
combination is locked up in the safe.
                -- Peter DeVries

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to