Bug #2093
openWt::Mail can't resole localhost
0%
Description
Hello!
While user registration, I get the following error message:
[info] "Mail.Client: Smtp::Client: using 'localhost' (from smtp-self-host property) as self host"
[info] "Mail.Client: Smtp::Client: using 'localhost:25' (from smtp-host and smtp-port properties) as SMTP host"
[info] "Mail.Client: Smtp::Client: connecting to 'localhost:25"
[error] "Wt: error during event handling: Host not found (authoritative)"
[fatal] "Host not found (authoritative)"
Postfix is listening on 25 port.
This was hotfixed by adding 127.0.0.1 to settings.xml.
Other applications recognize "localhost":
$ nc localhost 25
220 servername ESMTP Postfix (Debian/GNU)
Wt 3.2.3, Linux.
Debian 7. On Debian 6, this was not reproduced (same static boost, Wt and application binaries). Moreover, no [info] messages were logged.
This is very likely to be my fail, not Wt's. If you know what it could be, help me.
WD Updated by Wim Dumon about 13 years ago
- Status changed from New to Feedback
Indeed probably not a Wt bug.
Is localhost in /etc/hosts? Does /etc/host.conf contain order hosts,bind?
BN Updated by Boris Nagaev about 13 years ago
/etc/hosts contain
127.0.0.1 localhost
, but no
order hosts,bind