Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

Sendmail very long queue

Sendmail very long queue

Hi everybody

Can anyone tell me why do I have 7500 messages in /var/spool/mqueue? (OP: hp-ux 10.20).
Please help.

Thanks in advance,
Honored Contributor

Re: Sendmail very long queue

Check /var/adm/syslog/mail.log for more detailed information why the mails are stuck.

Also check if sendmail daemon is running.
If not start sendmail by /sbin/init.d/sendmail start

Good Luck..
James R. Ferguson
Acclaimed Contributor

Re: Sendmail very long queue


Use 'mailq' to see the queued messages. You can delete undeliverd, old messages if you wish.


Honored Contributor

Re: Sendmail very long queue

May be mails are not getting delivered. Check mail.log for details. You can delete them if you wich.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: Sendmail very long queue

If there are lots of entries on mailq as root try sendmail -q

This is supposed to try and force queue delivery.

If that doesn't work you need to look at relay configuration:

[IP of relay server]

in /etc/mail/ file

Your relay server might be rejecting mail, you find out like this.

/usr/sbin/sendmail -v -d8.99 -d38.99

This will let you see connect rejects and stuff like that.

You also want to make sure networking is correct.


Check that host resolution is working right with nslookup.

any errors, report back.

Steven E Protter
Owner of ISN Corporation