1846578 Members
2124 Online
110256 Solutions
New Discussion

Re: sendmail

 
Preeti Khanna
Occasional Advisor

sendmail

Hi
When I use
#mailx -s "TEST" root@hostname
It says Aug 15 04:11:21 opal2 sendmail[10428]: unable to qualify my own domain name (opal2) -- usinge

What could be the Problem ?

Thanks
Preeti
Mission Impossible
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: sendmail

PROBLEM

sendmail is reporting
Unable to qualify my own domain name, using short name

either to the terminal or the log file /var/adm/syslog/mail.log

RESOLUTION

There are 3 possible setups that can be configured:

Using DNS:
Make sure the file /etc/resolv.conf exists, and includes the line:

domain

for example:
domain hp.com

Using /etc/hosts with a domain name:
Make sure the file /etc/hosts exists, and the first uncommented line reads:




for example:
15.1.1.1 letter.hp.com letter

Using /etc/hosts without a domain name:
Make sure the file /etc/hosts exists, and the first uncommented line reads:

.

for example:
15.1.1.1 letter letter.

Set up the Dj$w macro in /etc/mail/sendmail.cf, change it from:
#Dj$w.Foo.com
to read:

Dj$w.

Add . to the file /etc/mail/sendmail.cw:

for example:
localhost
letter
letter.

and restart sendmail.
John Palmer
Honored Contributor

Re: sendmail

Add an alias of your hostname with a trailing fullstop to your /etc/hosts file.

e.g.

opal opal.

Regards,

John
CHRIS_ANORUO
Honored Contributor

Re: sendmail

Download and Install Patch PHNE_18979 sendmail 8.9.3. Set up the Dj$w macro /etc/mail/sendmail.cf, change it from:
#Dj$w.Foo.com to read: Dj$w.opal2
Add opal2 (server name) to the file
/etc/mail/sendmail.cw
for example - localhost
localhost:
opal2
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.