From 3bb02cdb6f6586e494e5e1a159b385e9c1832f02 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 15 Feb 2001 01:34:37 +0000 Subject: [PATCH] Manually run /usr/sbin/sendmail -q once a day. Folks seem to be too trigger happy and turn off sendmail_enable entirely (instead of setting sendmail_flags to -q30m instead). I have seen boxes with things like daily run reports that have sat in mailq for 5 months. Since /usr/sbin/sendmail is actually mailwrapper, this should be safe for the other plugins that provide the sendmail calling interface. --- etc/crontab | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/crontab b/etc/crontab index 56ef4758eb6..4f356811711 100644 --- a/etc/crontab +++ b/etc/crontab @@ -25,3 +25,7 @@ HOME=/var/log # does nothing, if you have UTC cmos clock. # See adjkerntz(8) for details. 1,31 0-5 * * * root adjkerntz -a +# +# Try and stop mail sitting around in the queue forever if there is no +# sendmail -q30m periodically trying to dequeue it. +41 6 * * * root /usr/sbin/sendmail -q