and yes, I have
127.0.0.1 localhost myhost.mydomain.eu myhost.domain2.eu localhost.localdomain
127.0.1.1 myhost
in hosts file. What is wrong? Sendmail started to put this error into log.
May 9 19:08:54 myhost sm-mta[17103]: unable to qualify my own domain
name (myhost) — using short name
Is this configuration OK?
Best Answer
Sendmail: short host name to FQDN via /etc/hosts entry
Reorder your
/etc/hosts
file entries:It should qualify
myhost
tomyhost.mydomain.eu
(the leftmost name in/etc/hosts
line withmyhost
)