1846876 Members
2864 Online
110256 Solutions
New Discussion

send mail problem

 
SOLVED
Go to solution
Igor Sovin
Super Advisor

send mail problem

Hi!

I cant receive any mail from hp-ux host.
for example I write
#echo something |mailx myemail@mailserver.ru

what sendmail file I need to configure?
5 REPLIES 5
RAC_1
Honored Contributor

Re: send mail problem

What does /var/adm/syslog/mail.log file say?
Can you resolve the address myemail@mailserver.ru

/usr/sbin/expand_alias myemail@mailserver.ru

How you have configured /etc/mail/sendmail.cf??
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: send mail problem

http://docs.hp.com/en/B2355-90685/ch04s06.html

[ Chapter 4. Installing and Administering sendmail Modifying the Default sendmail Configuration File ]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Igor Sovin
Super Advisor

Re: send mail problem

Hi

From /var/adm/syslog/mail.log

Oct 24 08:47:27 balu sendmail[24706]: IAA24704: to=igor-ps@snos.ru, ctladdr=igorps (154/20), delay=00:00:00, xdelay=00:00:00, mailer
=esmtp, relay=snos.ru, stat=Host unknown (Name server: snos.ru: host not found)
Oct 24 08:47:27 balu sendmail[24706]: IAA24704: IAA24706: DSN: Host unknown (Name server: snos.ru: host not found)
Oct 24 08:47:27 balu sendmail[24706]: IAA24706: to=igorps, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent


Cant find where to correct mailserver entry
Igor Sovin
Super Advisor

Re: send mail problem

I've found it
problem was in /etc/nsswitch.conf

thanks for your advices guys!
Muthukumar_5
Honored Contributor
Solution

Re: send mail problem

Hostname resolvation is done based on /etc/nsswitch.conf. Before making mail setup just check with nslookup / nsquery utilities to check reachablity.

Make appropriate setup in /etc/hosts and (or) /etc/resolv.conf to give host->ip and ip->host resolvation.

-Muthu
Easy to suggest when don't know about the problem!