Operating System - HP-UX
1823181 Members
3706 Online
109647 Solutions
New Discussion юеВ

Can't get sendmail to work!

 
SOLVED
Go to solution
MAD_2
Super Advisor

Can't get sendmail to work!

We are configuring a RP5470 just like our HP9000. Currently, I have problems trying to send email using "mailx"; any clue of what may not be configured correctly or what I should look for? We can send email from our HP9000, the version of sendmail loaded on the RP5470 is ESMTP Sendmail 8.9.3 (PHNE_24419)/8.7.1.

If there is much to cover, please guide me on the direction where I can find more detailed information about what we may be missing...

Thanks,
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with
6 REPLIES 6
Helen French
Honored Contributor
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Can't get sendmail to work!

Hi Mynor,

Use the command mailq to find out why the mails are not going out. Or you can look at /var/adm/syslog/mail.log for more errors.

Mostly it could be due to DNS resolution or if you have firewalls setup, they might not be configured accordingly.

If you are using a relay host, look for it in your HP9000's /etc/mail/sendmail.cf file by searching for DS macro and add it on your rp5400 too.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
S.K. Chan
Honored Contributor

Re: Can't get sendmail to work!

I would help if you specify the details of your problem. Since sendmail is working already I think trying to figure out why your mailx is broken should be fairly easy if you provide more details of what command you'd run, was there any error message, etc.

I'm attaching a troubleshooting notes that I have. Hope you'll find it useful.
MAD_2
Super Advisor

Re: Can't get sendmail to work!

Shiju, thanks for the guide, it will really be some good reference in the future.

However, Sridjar gets the 10 points, it was in fact the "smart relay host (DS)", it was not specified in the RP5470, I added it to the RP5470 and it works.

Regarding your question, S.K, I was using:

mailx -s "Test" myaddress@mydomain.com < /tmp/tst.txt

Adding the "smart relay host" in "/etc/mail/sendmail.cf" solved my problem.

Thanks a bunch gurus...
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with
Thomas Schler_1
Trusted Contributor

Re: Can't get sendmail to work!

Hi,

be sure that

- /usr/bin/mailx has rx permissions on user, group, other
- /var/mail exists (drwxrwxrwt, uid=bin, gid=mail)
- /var/spool/mqueue exists (drwxr-xr-x, uid=bin, gid=bin)
- /etc/mail/sendmail.cf exists and is configured well
- /etc/mail/aliases on the destination host does not redirect mails somewhere
you're not thinking of
- /etc/rc.config.d/mailservs is configured to start sendmail
- the use of sendmail isn't restricted if you have a trusted system
- /usr/share/lib/mailx.rc exists

Have a look in /var/adm/syslog/mail.log to see what has happened when you have sent an email.

Login as root and execute 'mailq' to see what happens when you send an email.

Maybe, these things help you to find the error.
no users -- no problems
MAD_2
Super Advisor

Re: Can't get sendmail to work!

Thanks everyone...
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with