# HG changeset patch # User Michiel Broek # Date 1361213244 -3600 # Node ID 37f217a8bcce7dc07d0d3c9a32ba1224edd95ccc # Parent c4a1470ab59d6c42c5bf1f7988650aa0d0a6eef9 Fixed check mailq on ssmtp systems diff -r c4a1470ab59d -r 37f217a8bcce cron.daily/security --- 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 diff -r c4a1470ab59d -r 37f217a8bcce security.d/chk_mailqueue --- 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 +# Michiel Broek # 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