Fixed check mailq on ssmtp systems

Mon, 18 Feb 2013 19:47:24 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 18 Feb 2013 19:47:24 +0100
changeset 16
37f217a8bcce
parent 15
c4a1470ab59d
child 17
65656789da08

Fixed check mailq on ssmtp systems

cron.daily/security file | annotate | diff | comparison | revisions
security.d/chk_mailqueue file | annotate | diff | comparison | revisions
--- a/cron.daily/security	Sun Feb 17 19:49:24 2013 +0100
+++ b/cron.daily/security	Mon Feb 18 19:47:24 2013 +0100
@@ -25,7 +25,7 @@
 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 #############################################################################
 
-VERSION=0.16
+VERSION=0.17
 export PATH=/bin:/usr/bin:/sbin:/usr/sbin
 umask 077
 LANG=C; export LANG
--- a/security.d/chk_mailqueue	Sun Feb 17 19:49:24 2013 +0100
+++ b/security.d/chk_mailqueue	Mon Feb 18 19:47:24 2013 +0100
@@ -1,9 +1,9 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2012
+# Copyright (C) 2005-2013
 #   
-# Michiel Broek               <mbse@mbse.dds.nl>
+# Michiel Broek               <mbse at mbse.eu>
 # the Netherlands
 #
 # This file is part of SlackSecCheckScripts.
@@ -23,6 +23,9 @@
 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 #############################################################################
 
+# If the system is using ssmtp then there is no queue to check
+[ -x /usr/sbin/ssmtp ] && exit
+
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
 umask 077

mercurial