Operating System - HP-UX
1834127 Members
2128 Online
110064 Solutions
New Discussion

Re: mailx - not forwarding messages

 
Martin Simonis
Advisor

mailx - not forwarding messages

HP UX 11.0 on new HP 9000 server.

'ps -ef | grep mail' gives 'sendmail: accepting connections'

Not sure if mailx daemon is running, or not.

I try sending mail with mailx:
'mailx -s 'xxx' name@domain <

I can see the message at the bottom of /var/mail/, but the mail is not getting passed into our corporate mail (Outlook) system.

It works fine on other servers that we run.

Any advise gratefully received.
3 REPLIES 3
Ceesjan van Hattum
Esteemed Contributor

Re: mailx - not forwarding messages

1. Checking if sendmail runs:
Match 'ps -ef | grep mail' with 'cat /etc/mail/sendmail.pid'
If pid is the same, you can be quite sure that mail works.
2. Then.. make sure you have your sendmail.cf is correctly configured:
DS [hostname] #relay host
3. Make sure your sendmail.cw containts all possible names (with and without domain).
4. Try elm to send messages to yourself (local ux)
5. Try mailx command to do the same.
6. Try to send abroad
Regards,
Ceesjan

Hai Nguyen_1
Honored Contributor

Re: mailx - not forwarding messages

Martin,

Run "mailq" (or "sendmail -bp") at command line. If there is any problem with a queued mail, the possible cause will be display.

Hai
Martin Simonis
Advisor

Re: mailx - not forwarding messages

Yes - the DL, DS, DW values in sendmail.cf had not been entered.

All OK now,

Many thanks