[Mimedefang] recover from failing (or really slow) internal mail host
Lucas Albers
admin at cs.montana.edu
Tue Apr 6 19:56:44 EDT 2004
Today we encounted a problem with our internal exchange server.
It appeared 50+ messages had queued up on our external mail relay.
The internal server got really really slow.
Does anyone have a simple script to monitor the size of their mailq, and
notify them when it exceeds a certain limit?
As a short term fix, I deleted the host status information, and configured
the system to process the queue manually, which slowly forced the mail
messages to their intended destination.
How to delete host status file:
for our server named power.coe.montana . edu I just needed to delete this
file to force the mail relay to retry delivery, and ignore previous
timeouts on delivery:
rm /var/lib/sendmail/host_status/edu./montana./power
To force a manual queue run and order by host, processing multiple queues
imultaneously I did thus:
sendmail -q -v -O QueueDirectory=/var/spool/mqueue/hourly/ -O
QueueDirectory=/var/spool/mqueue -O QueueSortOrder=host
--
Luke Computer Science System Administrator
Security Administrator,College of Engineering
Montana State University-Bozeman,Montana
More information about the MIMEDefang
mailing list