On Wed, 1 Dec 1999, Jason J. Horton wrote:
> > host_accept_relay = /relaying/hosts
>
> My equiv of /relaying/hosts contains IP addresses, not hostnames.
> What eventually worked for me was a line like:
> host_accept_relay = "net-lsearch;/relaying/hosts"
> lsearch,net32-lsearch and just listing the filename didn't work,
> and I still don't completely understand why :)
lsearch certainly won't work, because it requests a file search using
the host *name* as a key. You need the net- to get it to use the IP
address instead. net32-lsearch will look for keys of the form
"10.9.8.7/32" rather than just "10.9.8.7", so that explains that.
What I don't understand is why just listing the file name didn't work. I
have made a note to check this case out when I get a moment. Just to be
absolutely sure, your file was of this form
10.9.8.7
10.7.5.4
192.168.34.23
right? It wasn't, by any chance,
10.9.8.7:
10.7.5.4:
192.168.34.23:
was it? If so, that does explain things. When just listing a file name,
each line is a separate item, and colons are not used.
> Exim is great, but sometimes is just as cryptic as sendmail rulesets.
Oh, ignominy! You have cut me to the quick! :-)
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.