Operating System - HP-UX
1837835 Members
2345 Online
110121 Solutions
New Discussion

Re: mailx command issue...

 
SOLVED
Go to solution
Shaun Aldrich_1
Advisor

mailx command issue...

Hello Everyone,

I am trying to run the below command at the command prompt on my HP-UX 11.0 K210 system and I am not receiving any emails back in my Outlook.

echo "This is a test" | /usr/bin/mailx -s "Node is Down" saldrich@chaptersinc.com

When I run this same command on my other three HP-UX 10.20 systems it works fine and I receive an email in Outlook. Any ideas on why I can't get this command to work on HP-UX 11. Are there any configuration files I need to modify? The three HP-UX 10.20 systems were set up before I got here so I am not sure what was done.

Any help is greatly appreciated...

S Aldrich
Hard work & dedication goes a long way...
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: mailx command issue...

I would check the sendmail setup on your 11.0 system. It sounds like it is not configured correctly. Look at the /etc/mail/sendmail.cf file and compare it to your other systems. Also check the /etc/rc.config.d/mailservs file and compare it to your other systems.

If there are discrepancies between your 11.0 system and the others, then I would make them all look the same. You can copy the sendmail.cf file from the other systems and edit the mailservs file.

Be sure to stop and restart the sendmail daemon.
Tom Danzig
Honored Contributor

Re: mailx command issue...

You may also want to compare /etc/nsswitch and /etc/resolv.conf files on both the working and non-working systems.
Shaun Aldrich_1
Advisor

Re: mailx command issue...

Thanks for the responses... Obviously I don't know a lot about mailx or sendmail.
So let me get this straight, in order to use mailx to send a message to an Outlook mailbox you have to configure Sendmail?

If so, does anyone have a brief summary of the steps to do this? Is it just a matter of making sure that you have a full qualified name in the /etc/hosts file and that the /etc/rc.config.d/mailservs file has been changed from 0 to 1. Then start the sendmail daemon.

Do I need to know additional steps? Do I need to do anything with the /etc/nsswitch.conf and /etc/resolv.conf file?

One last thing, Do I need to make any modifications to the /etc/mail/sendmail.cf file and if so any suggestions?

Thanks for your help,

S Aldrich
Hard work & dedication goes a long way...
Patrick Wallek
Honored Contributor

Re: mailx command issue...

If your other machines are working I would do the following:

copy sendmail.cf from working machine to non-working machine
compare mailservs between 2 machines and make them look the same.
compare nsswitch.conf and resolv.conf between working and non-working machines. Assuming the configurations are similar otherwise, you can probably copy those files from the working to the non-working machine.
lastly, do a '/sbin/init.d/sendmail stop' and make sure sendmail is stopped. And then do a '/sbin/init.d/sendmail start' to restart it.
Shaun Aldrich_1
Advisor

Re: mailx command issue...

Hi Everyone,

Thanks for the replies. I have thought about copying over all of the files from a working system on 10.20 to 11.0 but I guess what I am trying to do is look at it as if I don't have any other systems. Somebody else has set up those systems and I am not sure what they did.

What if I was given a new system and asked to do this from scratch?

So let me get this straight, in order to use mailx to send a message to an Outlook mailbox you have to configure Sendmail?

If so, does anyone have a brief summary of the steps to do this? Is it just a matter of making sure that you have a full qualified name in the /etc/hosts file and that the /etc/rc.config.d/mailservs file has been changed from 0 to 1. Then start the sendmail daemon.

Do I need to know additional steps? Do I need to do anything with the /etc/nsswitch.conf and /etc/resolv.conf file?

One last thing, Do I need to make any modifications to the /etc/mail/sendmail.cf file and if so any suggestions?

Thanks for your help,

S Aldrich

Hard work & dedication goes a long way...
Shaun Aldrich_1
Advisor

Re: mailx command issue...

Hi Everyone,

Thanks for the replies. I have thought about copying over all of the files from a working system on 10.20 to 11.0 but I guess what I am trying to do is look at it as if I don't have any other systems. Somebody else has set up those systems and I am not sure what they did.

What if I was given a new system and asked to do this from scratch?

So let me get this straight, in order to use mailx to send a message to an Outlook mailbox you have to configure Sendmail?

If so, does anyone have a brief summary of the steps to do this? Is it just a matter of making sure that you have a full qualified name in the /etc/hosts file and that the /etc/rc.config.d/mailservs file has been changed from 0 to 1. Then start the sendmail daemon.

Do I need to know additional steps? Do I need to do anything with the /etc/nsswitch.conf and /etc/resolv.conf file?

One last thing, Do I need to make any modifications to the /etc/mail/sendmail.cf file and if so any suggestions?

Thanks for your help,

S Aldrich

Hard work & dedication goes a long way...
James R. Ferguson
Acclaimed Contributor
Solution

Re: mailx command issue...

Hi Shaun:

See if document #KLTKBRC00005381 (Sendmail 8.x Setup Instructions) helps you.

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: mailx command issue...

Shaun,

You probably will need to modify the sendmail.cf file. Here are several links to other threads in the forums to hopefully get you started.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x426e37f45ef7d4118fef0090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x52a879bffde7d4118fef0090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x60cb6af52b04d5118fef0090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xad0460260cafd4118fef0090279cd0f9,00.html

Also mentioned in one of the above threads is http://www.sendmail.org You might also want to take a look at the sendmail documents in /usr/share/doc. There you will find several documents on sendmail. Lastly there are some sendmail.cf templates in /usr/newconfig/etc/mail/

If you want to more threads on sendmail from the Forums, select 'search' from the left side of the screen, type sendmail into the 'Search for' field and make sure the 'community forums' check box is checked. You will get 2 pages (the max that will be returned) worth of hits.