Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When trying to start sendmail or send a mail using a wordpress plugin, this error shows up in the maillog:

"My unqualified host name ( unknown; sleeping for retry"

After Googling the best advice was, "add to the /etc/hosts file", but it already is:     localhost localhost.localdomain
share|improve this question
up vote 23 down vote accepted

Simply changed:     localhost localhost.localdomain

To this     localhost localhost.localdomain

Sendmail looks for a fully qualified domain (FQDN) name and will use the localhost.localdomain in the single line version.

share|improve this answer
fixed my problem. Just want to be clear, it is the hostname that should be put in this line. So first use hostname command find it, than add it to this line in \etc\hosts . Thanks, man. – leon Jul 4 '13 at 6:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.