security.d/chk_mailqueue

changeset 16
37f217a8bcce
parent 14
59e07bba67cc
child 17
65656789da08
--- 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