1753878 Members
7121 Online
108809 Solutions
New Discussion юеВ

Re: sendmail

 
Greg Huber_3
Occasional Contributor

sendmail

I have a recently configured workstation:
J5000, HP-UX 10.20. Occasionaly the following will pop up on the screen: "NOV
17 01:00:42 c2pcdlms sendmail[12550]:unable to qualify my own domain
name(c2pcdlms)--using short name".

This was poping up prior to making this server a master domain server, and it
still continues now. c2pcdlms is the hostname of the computer, there is NOT
another station with the same name anywhere on the net.
3 REPLIES 3
Paul Heffels_1
Frequent Advisor

Re: sendmail

Hi Greg,

I had this one before but I don't know exactly how to fix it anymore. Look in
your /etc/hosts file and look what entry comes first. Then check your
/etc/mail/sendmail.cw file to make sure that the first entry in your /etc/hosts
file is listed there first too. Run newaliases and it should work.

There is also something about this issue in the comments of file
/etc/mail/sendmail.cf
Neil Gast_1
Frequent Advisor

Re: sendmail

The message is mostly harmless, but it's an indication that your sendmail
environment is slightly misconfigured. The following will probably fix it:
1. Edit /etc/hosts and add a fully qualified hostname alias (like
myhost.acme.com)
2. Edit /var/mail/sendmail.cf. Uncomment that line that looks like so:
#Dj$w.Foo.COM
and remove the "Foo.COM" part. Leave the trailing dot. The new line will look
like so:
Dj$w.
3. /sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

MrNeil
Jason Luginbuhl_1
Frequent Advisor

Re: sendmail

What Neil has suggested will probably fix the problem.
A few other things that may be necessary:

1) In /etc/hosts, find the line with your hostname and add an alias to your
hostname with a dot at the end.
Example /etc/hosts entry:
10.10.10.10 hostname hostname.

2) Make sure in /etc/nsswitch.conf that the hosts and aliases entries look to
files first. It can look to files only, or files before DNS and/or NIS.
Example /etc/nsswitch.conf entries (no DNS/NIS):
hosts: files
aliases: files

Example /etc/nsswitch.conf entries (w/DNS)
hosts: files dns
aliases: files dns

For more info on /etc/nsswitch.conf consult the man pages for switch(4).

3) After making these changes restart sendmail.
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start