1838671 Members
5849 Online
110128 Solutions
New Discussion

Mail does not work

 
SOLVED
Go to solution
Paul J. Ledbetter, II
Frequent Advisor

Mail does not work

As root, when I type "mail", "no mail" is returned, even though I know I get mail from my backup jobs etc. I know that I have saved mail; there is some I haven't deleted. It was working, but now suddenly stopped. How can I fix this?
I may not know everything, but I'm working on it...
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: Mail does not work

1) There is no mail client on HP-UX called mail. Try elm. Its a client, but it will let you go through roots mail

2) If you want to check your system mail queue, try the command mailq.

Its gonna take a little detail to get to the bottom of this situation. Can you provide a more detailed explanation of the problem?

Thanks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: Mail does not work

Are you using the correct user id. It doesn't matter if your using mailx or elm, just typing 'mail' will show you mail in the /var/mail/myuserid file. If your using something like 'sudo su' you will still be looking at your own email, not root's. The best place to start is the /var/mail/root file and work backwards. Is there mail in the queue 'mailq' ? Are there files in /var/spool/mqueue ?
Anyone for a Mutiny ?
SS_6
Valued Contributor

Re: Mail does not work

check for sendmail deamon first
#ps -ef |grep sendmail
Look into /var/adm/syslog/mail.log
Look for any mail stuck into queue.
#mailq
can also do
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
By providing solutions I am helping myself
常有慈悲心
Regular Advisor

Re: Mail does not work

i want to know the mail server in hpux .

is it sendmail or someone else?
Naveej.K.A
Honored Contributor

Re: Mail does not work

Yes sendmail is the daemon which runs so as to make it a mailserver.

Sendmail is the MTA or Mail Transfer Agent in HPUX, While elm, pine are used as mail clients.

Regards
Naveej
practice makes a man perfect!!!
Steven E. Protter
Exalted Contributor

Re: Mail does not work

My first post was.

Totally.

Completely.

Dead.

WRONG.

Apologies. A lesson that maybe I should try thing before spurting on the keyboard.

My mail command does work as root or other users.

Darn I have a lot on my HP-UX box.

Michael, what ever happened with that java issue?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
常有慈悲心
Regular Advisor

Re: Mail does not work

thanks a lot.
i want to know how to configure sendmail so i
can receive a mail from my microsoft outlook?
Paul J. Ledbetter, II
Frequent Advisor

Re: Mail does not work

To all who offered advice, here is what I've found:

I am logging in as root

There is mail in mailq; the curious thing is that the last 10 entries or so state â (no control file)â

I have no such file â /var/spool/mqueueâ

â /sbin/init.d/sendmail stopâ returns â No sendmail server runningâ

â /sbin/init.d/sendmail startâ returns me to the # prompt. A subsequent â sendmailâ stop
gives the same response as the previous â sendmail stopâ
I may not know everything, but I'm working on it...
Paul J. Ledbetter, II
Frequent Advisor

Re: Mail does not work

Sorry about the strange formatting; I copied and pasted from a Word 2003 file.
I may not know everything, but I'm working on it...
Ian Box
Advisor
Solution

Re: Mail does not work

/var/spool/mqueue should be a directory - if it doesn't exist I'm not surprised you're having problems. Mine looks like:

drwxr-xr-x 2 bin bin 1024 Mar 25 15:45 /var/spool/mqueue

As for sendmail, check /etc/rc.config.d/mailservs. If there is a line reading:

SENDMAIL_SERVER=0

then it means don't start sendmail. You could try changing that to SENDMAIL_SERVER=1, and then run the /sbin/init.d/sendmail start command again.
Paul J. Ledbetter, II
Frequent Advisor

Re: Mail does not work

The mailservs file was it! Thank you!
I may not know everything, but I'm working on it...