Re: [exim] matching hostlist by IP address

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jasen Betts
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] matching hostlist by IP address
On 2016-12-30, Ian Zimmerman <itz@???> wrote:
> Hi eximummers again,
>
> I am trying to add a router where one of the conditions is the client
> should be from the set of trusted relay IP addresses. I didn't want to
> repeat the definition of relay_from_hosts, so I wrote:
>
> condition = ${if match_ip {$sender_host_address} {relay_from_hosts} {true}{}}
>
> But this doesn't work - it seems to treat relay_from_hosts as literal so
> of course the match fails. Reading the spec again carefully, I realize
> it doesn't say anywhere that I can use a named host list in this
> context. So, is this too much to ask? And isn't it a natural thing to
> ask? :-)


named lists start with '+' when you use them "+relay_from_hosts"

exim spec 10.5

--
This email has not been checked by half-arsed antivirus software