Oracle SolarisLinuxSolaris 11Solaris 11.3Solaris 11.4

Sendmail: unable to qualify my own domain name (localhost) — using short name

In this tutorial, we will learn how to solve the most common error in /var/adm/messages “unable to qualify my own domain name (localhost) — using short name” in Solaris 11 operating system.

If sendmail can’t find a hostname for itself that contains a dot (“.”), it will sleep for 60 seconds in the hopes that there was a temporary name-service failure. Correcting misconfigured systems will avoid this unnecessary delay.

If another name service is used first, that name service must provide the FQDN (fully qualified domain name).

The Error

If you get the following error message:

Mar 18 21:13:56 <HOSTNAME> sendmail[1295]: unable to qualify my own domain name (<HOSTNAME>) — using short name

sendmail -
sendmail error

or error like

Cannot qualify own <HOSTNAME>.

Causes of Error

The error is produced when

1.  There is no Fully Qualified hostname in the /etc/hosts file, for example:

<IP>   <HOSTNAME> <FQ_HOSTNAME>     loghost

where “<HOSTNAME>” is the “short name” and “<FQ_HOSTNAME>” is the “long name”.

When sendmail starts, it tries to determine its own fully qualified host name. If unable to do so, the messages are produced.

2. An unqualified /etc/hosts entry such as:

<IP> <HOSTNAME>

instead of properly qualified :

<IP> <FQ_HOSTNAME> <HOSTNAME>

causes these error messages.

Solution

To solve the problem set the FQDN in the file /etc/hosts:

<IP> <HOSTNAME> <FQ_HOSTNAME> loghost

For example :

127.0.0.1 myhost myhost.mydomain loghost

Alternate Solution (Disable sendmail)

One alternate solution to get rid of these errors is to disable the sendmail service (if you are not using it).

Check our another tutorial here to disable sendmail service:

Reference Links:-

0 0 votes
Article Rating

Prashanth Nimesh

I have passed B.Tech in Computer Science and currently working as a System Administrator with over 4 years of experience in the IT field. I am also the creator of the theGeeksHub website and its main contributor.

Related Articles

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
trackback

[…] If you want to solve this error without disabling the sendmail service check our another tutorial here. […]

Back to top button