著者: robert rotman 日付: To: Philip Hazel CC: exim-users 題目: Re: [Exim] ! lsearch
On Thu, 9 Nov 2000, Philip Hazel wrote:
> On Thu, 9 Nov 2000, robert rotman wrote:
>
> > What is the syntax for a "negative lsearch"
> > (host_accept_relay = !/etc/norelay : 123.123.123.123/16).
> >
> > host_accept_relay = !lsearch;/etc/norelay : 123.123.123.123/16
> > did not work.
>
> How did it "not work"? What was the output from a test with -bh? The
> second syntax is right for a negative lsearch; the first syntax is right
> for a negative interpolated file.
>
the -bh rejects relay if "!/etc/norelay" is given and accepts it
when "!lsearch;/etc/norelay" is given with the same content in
/etc/norelay.
/etc/norelay contains a list of ip adresse:
123.123.123.1
123.123.123.2
....