Re: [Exim] condition syntax question

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Marc MERLIN
CC: exim-users
Nieuwe Onderwerpen: Re: [Exim] New HELO check suite
Onderwerp: Re: [Exim] condition syntax question
On Mon, 24 May 2004, Marc MERLIN wrote:

> So, I have this value:
> domainlist local_domains = @ : @[] : localhost : MAILNAME : LISTDOMAIN : CONFDIR/domains/localdomains : CONFDIR/domains/localdomains_norewrite
>
> And I'd like to have an ACL test against it:
>
> # Forged HELOs
>   deny    message       = Forged hostname detected in HELO - $sender_helo_name
>           hosts         = !+relay_from_hosts
>           log_message   = Forged hostname detected in HELO - $sender_helo_name
>           condition     = ${lookup {$sender_helo_name} +local_domains}{yes}{no}}

>
> Of course, the last line is invalid, but I just wrote it to show what I'm
> trying to do
>
> Any suggestions?


Read NewStuff 4.33/2.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book