1846133 Members
4771 Online
110254 Solutions
New Discussion

Re: Configuring E-mail

 
Alex Montanez
Occasional Contributor

Configuring E-mail

Hi,
I'm new to HP-UX, we have just finished installing an L2000 server running ver. 11.x of HP-UX, the name of the server is DEVSAP1, I'm trying to get e-mail to work, I have a Sun-OS e-mail server (SUN-S1.LEONIWIRING.COM) installed on the same LAN. I tried using mailx and it doesn't do anything, it acts like it's working but I don't receive the test e-mail.
I have checked the mail.log file on DEVSAP1 and I get the following error message:
"MY UNQUALIFIED HOST NAME (DEVSAP1) UNKNOWN; SLEEPPING FOR RETRY"
"UNABLE TO QUALIFY MY OWN DOMAIN NAME (DEVSAP1) -- USING SHORT NAME"

Any help will be greatly appreciated.

Thanks,
Alex Montanez

7 REPLIES 7
Philip Chan_1
Respected Contributor

Re: Configuring E-mail

Try this,

- cd /etc/mail
- save a copy of sendmail.cf to sendmail.cf.old
- edit sendmail.cf
- locate the line Dj$w.Foo.COM (should be around line 125)
- replace Foo.COM with your domain name or remove Foo.COM if you don't have a domain name (leave the dot there after $w)
- uncomment the edited line
- edit /etc/host, give your host an alias name as
- restart sendmail by "/sbin/init.d/sendmail stop" and "/sbin/init.d/sendmail start" (you must be root for doing this)
- now send yourself some email and try reading it
- if anything gone wrong, restore sendmail.cf.old then restart sendmail

Regards,
Philip
Antoanetta Naghiu
Esteemed Contributor

Re: Configuring E-mail

Beside what Philip said, in the same /etc/mail/sendmail.cf
edit Cw to Cwmachine_name.domaniname, DS to DSsmtp.domaniname, DR to DRdomainname.
Be sure in /etc/hosts you have the machine name fully qualified.
Rick Garland
Honored Contributor

Re: Configuring E-mail

The /etc/hosts file, DNS, sendmail.cf file, sendmail.cw file, check all of these to ensure that you are using the FQDN. Not all of these are required but depending on your environment, you may need some of these. At the very least, do the /etc/hosts file and you should see the message go away.
Kofi ARTHIABAH
Honored Contributor

Re: Configuring E-mail

In addition to the above, you might also want to check your /etc/nsswitch.conf - if you do not have one, create one with the following entry:

hosts: files [NOTFOUND=continue] dns

This tells the system to first look for any hostnames in the hosts file but if that fails, it should look in the DNS.

PS. I am assuming that you have dns set up and that you can do an
nslookup hostname.

good luck
nothing wrong with me that a few lines of code cannot fix!
Doug Brinkman
Occasional Contributor

Re: Configuring E-mail

Hi Alex,
try adding your hostname to /etc/mail/sendmail.cw
(and restart sendmail)

Re: Configuring E-mail

Hi,

The answers had been already told by most of them. If you edit the sendmail.cf file and restart the sendmail. It should be through.

Regs,

S.J.Babu
Today is the day