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 _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

