Operating System - HP-UX
1833589 Members
3976 Online
110061 Solutions
New Discussion

Re: Sendmail Problem in hp-ux 11.11

 
abhilash_op
Advisor

Sendmail Problem in hp-ux 11.11

Hi,

I am not able to send mail from my hp-ux server, When i checked the mail.log i could see the following error message

Mar 10 13:07:22 pnasd110 sendmail[23454]: alias database /etc/mail/aliases rebuilt by abpadman
Mar 10 13:07:22 pnasd110 sendmail[23454]: /etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
Mar 10 13:07:22 pnasd110 sendmail[23455]: gethostbyaddr(172.24.11.13) failed: 1
Mar 10 13:07:22 pnasd110 sendmail[23456]: starting daemon (8.9.3 (PHNE_26305)): SMTP+queueing@00:30:00
Mar 10 13:07:25 pnasd110 sendmail[23471]: gethostbyaddr(172.24.11.13) failed: 1


My DS in the sendmail.cf is configured properly,and i am able to to nslookup on that.
I checked nslookup for 172.24.11.13, i am not able to do. Also i m not able to findout from where this address is taking.


Pls reply back with your important solutions.

Thanks

Abhi
10 REPLIES 10
Arunvijai_4
Honored Contributor

Re: Sendmail Problem in hp-ux 11.11

Senthil Kumar .A_1
Honored Contributor

Re: Sendmail Problem in hp-ux 11.11

Hi,

If the failure is on "gethostbyaddr" it means.. the reverse lookup is failing and not "forward lookup".

If you want it to test, just find the hostname for 172.24.11.13 and give an entry for that hostname in your /etc/hosts file. Make sure "file" is the first entry in your /etc/nsswitch.conf file for "hosts" entry. after this change see whether the sendmail is able to send the mail. If it can, then there is something wrong with the DNS server, because it is not able assist in your reverse lookup. Then that would be a issue to be sorted by the DNS administrator.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Bharat Katkar
Honored Contributor

Re: Sendmail Problem in hp-ux 11.11

Abhi,

Also have a look at this doc attached.
Thought it could help you.

Regards,
You need to know a lot to actually know how little you know
RAC_1
Honored Contributor

Re: Sendmail Problem in hp-ux 11.11

The message is OK. The address might be coming from /etc/hosts file. Do you have nic that has this ip address? How does your nsswitch.conf and resolv look like?? Also what does /etc/mail/service.switch look like?
There is no substitute to HARDWORK
abhilash_op
Advisor

Re: Sendmail Problem in hp-ux 11.11

Hi All,

Thanks for the replies, Spl thanks to RAC. Actually this IP is being assigned to the lan0 network card but not being updated in the /etc/hosts file.

Actually the IP address which we are presetly using is assigned to lan1. So is there any configuration change to bypass this error message. Since this server is a production server, i cnt add this IP address to the /etc/hosts nw. Also there is no DNS for this server.

Thanks

Abhi

RAC_1
Honored Contributor

Re: Sendmail Problem in hp-ux 11.11

sendmail tries to resolve all ips assigned to lans, if it can't it gives out that messsage. This is OK.
There is no substitute to HARDWORK
abhilash_op
Advisor

Re: Sendmail Problem in hp-ux 11.11

Hello,

Then I think the server is not able to relay the messages which i am sending. I have configured my DS entry in the /etc/mail/sendmail.cf file, but still if i see the mail.log, it is showing "relay=root@localhost", idealy it should show "relay=servername" if i am right.If i check my mailq all the messages are showing as "deferred".

regards

Abhi
RAC_1
Honored Contributor

Re: Sendmail Problem in hp-ux 11.11

mailq -v -d
Also,
grep DS /etc/mail/sendmail.cf and restart sendmail. Also hope relay server allows you send emails.
There is no substitute to HARDWORK
Carlos Roberto Schimidt
Regular Advisor

Re: Sendmail Problem in hp-ux 11.11

Can you put this output?

# sendmail -v your_email@domain.com
abhilash_op
Advisor

Re: Sendmail Problem in hp-ux 11.11

Hi All,

Thank you very much for all your valuable replies. I could solve the problem now. The problem was due to /etc/nsswitch.conf file was not exists in the server. Created /etc/nsswitch.conf. Now sendmail is working fine.

Thanks

Abhi