diff options
author | mboelen <michael@cisofy.com> | 2014-09-09 16:49:37 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-09-09 16:49:37 +0400 |
commit | dd2ea3efaf5a91b97840383b578ad8ddffbd76a8 (patch) | |
tree | 705fee4e70ef4920598f76ab238332e791f33372 /include/tests_mail_messaging | |
parent | 3beae44e9268920f73f742365bfb26be5e5f63be (diff) |
Made adjustments to run in non-privileged scans
Diffstat (limited to 'include/tests_mail_messaging')
-rw-r--r-- | include/tests_mail_messaging | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tests_mail_messaging b/include/tests_mail_messaging index 69be839c..9dc588a6 100644 --- a/include/tests_mail_messaging +++ b/include/tests_mail_messaging @@ -82,9 +82,9 @@ logtext "Test: check Postfix status" # Some other processes also use master, therefore it should include both master and postfix FIND1=`${PSBINARY} ax | grep "master" | grep "postfix" | grep -v "grep"` - FIND2=`${PSBINARY} ax | grep "qmgr" | grep "postfix" | grep -v "grep"` - FIND3=`${PSBINARY} ax | grep "pickup" | grep "postfix" | grep -v "grep"` - if [ ! "${FIND1}" = "" -a ! "${FIND2}" = "" -a ! "${FIND3}" = "" ]; then + #FIND2=`${PSBINARY} ax | grep "qmgr" | grep "postfix" | grep -v "grep"` + #FIND3=`${PSBINARY} ax | grep "pickup" | grep "postfix" | grep -v "grep"` + if [ ! "${FIND1}" = "" ]; then logtext "Result: found running Postfix process" Display --indent 2 --text "- Checking Postfix status..." --result RUNNING --color GREEN POSTFIX_RUNNING=1 @@ -121,7 +121,7 @@ FIND2=`${POSTCONFBINARY} | grep '^smtpd_banner' | grep '$mail_name'` FIND3=`${POSTCONFBINARY} | grep '^mail_name' | grep -i 'postfix'` #YYY Check if OS name shows up in banner - #FIND4=`${POSTCONFBINARY} | grep '^smtpd_banner' | egrep "${OS}|${LINUX_VERSION}` + #FIND4=`${POSTCONFBINARY} | grep '^smtpd_banner' | egrep "${OS}|${LINUX_VERSION}` SHOWWARNING=0 if [ ! "${FIND1}" = "" ]; then SHOWWARNING=1 |