Operating System - HP-UX
1832511 Members
4509 Online
110043 Solutions
New Discussion

Re: mailq reports I/O error

 
Learn_1
Regular Advisor

mailq reports I/O error

Hi All,
i am having prb with sendmail. if i execute mailq command i am receiving the following error.
mailq

Mail Queue (7324 requests)

--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------

JAA26073 281 Thu Mar 23 13:54 psaadmin

(I/O error)
=======

can anyone help me to resolve this issue.
6 REPLIES 6
Prashant Zanwar_4
Respected Contributor

Re: mailq reports I/O error

Check for bdf & mount -a output.. something is smelling bad, might be corrupt file system..
run dmesg and confirm..

Good luck
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Peter Godron
Honored Contributor

Re: mailq reports I/O error

Hi,
this may be a hardware problem, however:
1. check where mail error messges go to by looking at the /etc/syslog.conf file
2. Check that file
3. Check syslog.log
4. Are any emails being sent, or is the whole sendmail process stopped.
Learn_1
Regular Advisor

Re: mailq reports I/O error

Hi all
thanks. Attached is the bdf output and syslog file for further analysis
Peter Godron
Honored Contributor

Re: mailq reports I/O error

Hi,
nothing unusual I can see in these logs.
Can you please also check the file used for mail logging. Mine is
/var/adm/syslog/mail.log
See my earlier posting (point 1,2 and 4)
Prashant Zanwar_4
Respected Contributor

Re: mailq reports I/O error

Looking at output I believe IO error belong to a different file system.. can you look at vx_nospace messages and see if any mail flow is stuck due to that and clear it off..

Otherwise there is nothing else I can doubt about..

Regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Mark Greene_1
Honored Contributor

Re: mailq reports I/O error

With 7,000+ messages in the queue, you do have a problem.

Run ls -l /var/spoo/mqueue to verify that's where all the messages are being held. If you get I/O errors with that, run fsck on /var.

To diagnose sendmail try this:

to force-flush the mail queue:
sendmail -v -d8.20 -q

to debug the sendmail daemon:
sendmail -v -d0 -d1 -d0.4 -d1.5 -d2 -d6 -d6.5 -d10 -d11 -d30 -d45 [your email address here] /tmp/maildebug.log 2>&1

where testmailfile is a text file with a one or two line message in it.

mark
the future will be a lot like now, only later