HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Troubleshooting Sendmail
Chapter 296
Contacting the Sendmail Daemon to Verify
Connectivity
It is possible to contact the Sendmail daemon and other SMTP servers
directly with the following command:
telnet host 25
Use this to determine whether an SMTP server is running on
host
. If
not, your connection attempt will return the message Connection
refused.
After you establish a connection to the Sendmail daemon, you can use
the SMTP vrfy command to determine whether the server can route to a
particular address. For example:
telnet furschlugginer 25
220 furschlugginer.bftxp.edu ESMTP Sendmail 8.11.1/8.11.1; Wed
, 28 Aug 2002 14:33:50 +0530 (IST)
vrfy istm@hp.com
250 2.1.5 <istm@hp.com>
vrfy blemph@morb.poot
554 5.1.1 blemph@morb.poot... User unknown
quit
221 2.0.0 furschlugginer.bftxp.edu closing connection
Connection closed by foreign host
Not all SMTP servers support the VRFY and EXPN commands.
Setting Your Domain Name
If Sendmail cannot resolve your domain name, you may see the following
warning message in your syslog file:
WARNING: local host name
name
is not qualified; fix $j in con
fig file
To resolve this problem, do one of the following:
• Uncomment the following line in the /etc/mail/sendmail.cf file by
deleting the pound sign (#) at the beginning of the following line:
Dj$w.Foo.COM
Change Foo.COM to the name of your domain (for example, HP.COM).