Date: Sun, 29 Aug 1999 15:38:53 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: jj@cybernex.net.au, security@FreeBSD.ORG Subject: Re: Daily security run - mail que content Message-ID: <v04210106b3ef3aec13ac@[128.113.24.47]> In-Reply-To: <199908291358.XAA11762@cybernex.net.au> References: <199908291358.XAA11762@cybernex.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
At 12:02 AM +1000 8/30/99, Jacob Rhoden wrote: >For some reason... I continually get the following message >from the crontab security email: As others have mentioned, if you only get one line in this check, then it is telling you about the message that it (the check itself) is sending. If you only see one line, ignore it. This also bothered me, so I changed /etc/periodic/440.status-mailq to be: #!/bin/sh # # $Id: 440.status-mailq,v 1.3 1998/04/17 22:53:59 des Exp $ # if [ -x /usr/bin/mailq -a -d /var/spool/mqueue ] ; then echo "" echo "Mail in local queue:" if [ "`mailq|egrep -v '(1 request.|Sender/Recipient[-]*)$'|wc -l`" -ne 1 ] ; then mailq else echo " (no mail pending in queue)" fi # If you run a busy mail server or mail relay, you may prefer # a shorter and better formatted message. # # mailq | perl -ne 'print if /^\s+\S+@/' | # sort | uniq -c | sort -nr | awk '$1 > 1 {print $1, $2}' fi --- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v04210106b3ef3aec13ac>