Re: [exim] 2 !hosts or 1 joint !hosts

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Sub Zero
CC: exim-users
Subject: Re: [exim] 2 !hosts or 1 joint !hosts
On Fri, 5 Aug 2005, Sub Zero wrote:

> Should I just change this !hosts line to:
>
>    !hosts = +relay_hosts : /etc/exim_rbl_whitelist

>
> Or just make it like this:
>
>    !hosts = +relay_hosts
>    !hosts = /etc/exim_rbl_whitelist

>
> Which one is faster/lighter or just working? :)


They both "work", just with different meanings. The first combines the
two conditions with OR, and the second combines them with AND.

> PS: I think I have to use lsearch;/etc/exim_rbl_whitelist instead of
> /etc/exim_rbl_whitelist right?


lsearch will work only if your file contains a list of complete host
names.


-- 
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