Operating System - HP-UX
1834220 Members
2565 Online
110066 Solutions
New Discussion

Re: mailx command stopped working - what .rhost tables are used

 
David Fosgate_2
Occasional Advisor

mailx command stopped working - what .rhost tables are used

I'm looking for the required entries to enable the mailx statement between networked servers. I have a monitoring script that mails server status information from remote servers to a central monitoring server. I inherited the networked servers, so I'm not sure what was setup to make the mailx statement work in the first place.

My question what rhost tables do I need to have on the source and target servers and in what location?

Thanks in advance for your help

Dave
3 REPLIES 3
Darrel Louis
Honored Contributor

Re: mailx command stopped working - what .rhost tables are used

Hi,

Did you configure sendmail?
The Config files in /etc/mail.
when you type the following:
sendmail -v root@xx.com

Do you see an error-message?

The .rhosts is used to remotely copy or login without a password from one server to another.
Check the man page for rhosts, man rhosts

Good Luck

Dan Hetzel
Honored Contributor

Re: mailx command stopped working - what .rhost tables are used

Hi David,

You don't need to modify any .rhosts file for mail to work across systems.

Make sure sendmail is working properly as this is the real 'mail engine'

As Darrel suggested, check if sending a mail with sendmail works. If it doesn't, something must be either wrong or unconfigured in your /etc/mail/sendmail.cf file.
Check this way:
sendmail -v root@$host.$domain

Then, check for any sendmail related message in /var/adm/syslog/syslog.log and let us know.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Ovidiu D. Raita
Valued Contributor

Re: mailx command stopped working - what .rhost tables are used

Hi,

mailx doesn't use the .rhosts files. You're having problems with sendmail.

Please check /etc/mail/sendmail.cf /etc/mail/sendmail.cw /etc/mail/aliases /etc/rc.config.d/mail ( and ps -ef |grep sendmail ) to see if sendmail is running.

Then try to telnet to the port 25 on the server you want to send the mail to
# telnet server 25
If you don't get an answer then you're having network or firewall problems.

Ovidiu
Simple solutions to complex problems