Bug#267004: exim4: When using a smarthost router: no IP address found for host smtp

Andreas Metzler Andreas Metzler <ametzler@downhill.at.eu.org>, 267004@bugs.debian.org
Mon, 23 Aug 2004 10:09:07 +0200


On 2004-08-20 Cedric Delfosse <cedric@debian.org> wrote:
> Package: exim4
> Version: 4.34-4
> Severity: normal

> In my network, the smtp smarthost machine is called "smtp", and it
> it resolved:

> # ping smtp
> PING XIII.metz (192.168.0.1) 56(84) bytes of data.
> 64 bytes from XIII.metz (192.168.0.1): icmp_seq=1 ttl=255 time=0.246 ms

> The default domain name is metz, so the machine can be called smtp.metz too:
> # ping smtp.metz
> PING XIII.metz (192.168.0.1) 56(84) bytes of data.
> 64 bytes from XIII.metz (192.168.0.1): icmp_seq=1 ttl=255 time=0.248 ms

> If I use "smtp" as the name of the smarthost router, I get this error:

> 2004-08-19 18:11:37 1BxpVp-0001bP-J9 <= root@replic U=root P=local S=274
> 2004-08-19 18:11:37 1BxpVp-0001bP-J9 no IP address found for host smtp
[...]
> But if I use "smtp.metz" as the smarthost, it works fine, the lookup doesn't
> failed:
[...]

Hello,
Could you please show us your smarthost router in
/var/lib/exim4/config.autogenerated? - Does it have byname set?

grep -A10 ^smarthost /var/lib/exim4/config.autogenerated
                cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"