On 28 Apr 2003, Andy Lear wrote:
> check_etrn:
> accept hosts = ${lookup mysql {select etrn.hosts from etrn where \
> etrn.hosts = '$host_name'}{$value}fail}
If you want the name of the remote host, you need $sender_host_name, not
just $host_name. Note that if Exim cannot find the name (rDNS fails),
there will be a temporary error.
> 2003-04-28 13:07:59 ETRN clogau.co.uk received from surf.clogau.co.uk
> (srvmail.clogau.com) [62.105.76.151]
> 2003-04-28 13:07:59 H=surf.clogau.co.uk (srvmail.clogau.com)
> [62.105.76.151] temporarily rejected ETRN clogau.co.uk
>
> I'm probably doing something really stupid, but if anyone can point me
> in the right direction I'd really appreciate it.
Test it with -d and -bh.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.