Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2017-03-27 18:14:11 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-03-27 18:14:11 +0300
commit7f06a2c34fc45c9100564160762b9479aec99b53 (patch)
tree4710bede4ffeb84cc7f3f50993c325f15cb74c02
parent76f211fd715656eb8587cf621e27e4aaab43b316 (diff)
Added MAIL-8820 test for Postfix
-rw-r--r--db/tests.db1
-rw-r--r--include/tests_mail_messaging22
2 files changed, 23 insertions, 0 deletions
diff --git a/db/tests.db b/db/tests.db
index 2950cd7e..2275afd8 100644
--- a/db/tests.db
+++ b/db/tests.db
@@ -223,6 +223,7 @@ MAIL-8814:test:security:mail_messaging::Check postfix process status:
MAIL-8816:test:security:mail_messaging::Check Postfix configuration:
MAIL-8816:test:security:mail_messaging::Postfix configuration errors:
MAIL-8818:test:security:mail_messaging::Postfix banner:
+MAIL-8820:test:security:mail_messaging::Postfix configuration:
MAIL-8838:test:security:mail_messaging::Check dovecot process:
MAIL-8860:test:security:mail_messaging::Check Qmail status:
MAIL-8880:test:security:mail_messaging::Check Sendmail status:
diff --git a/include/tests_mail_messaging b/include/tests_mail_messaging
index 6157e671..c893f83a 100644
--- a/include/tests_mail_messaging
+++ b/include/tests_mail_messaging
@@ -155,6 +155,28 @@
#
#################################################################################
#
+ # Test : MAIL-8820
+ Register --test-no MAIL-8820 --weight L --network NO --category security --description "Postfix configuration scan"
+ if [ ${SKIPTEST} -eq 0 ]; then
+ if [ "$(postconf -h inet_interfaces 2> /dev/null)" = "all" ]; then
+ if ! SkipAtomicTest "${TEST_NO}:disable_vrfy_command"; then
+ if [ "$(postconf -h disable_vrfy_command 2> /dev/null)" = "no" ]; then
+ ReportSuggestion "${TEST_NO}:disable_vrfy_command" "Disable the 'VRFY' command" "disable_vrfy_command=no" "text:run postconf -e disable_vrfy_command=yes to change the value"
+ fi
+ fi
+ fi
+
+ #FIND=$(${POSTCONFBINARY} 2> /dev/null | ${SEDBINARY} 's/ /:space:/g' | ${SEDBINARY} 's/ =$//')
+ #for line in ${FIND}; do
+ # line=$(echo ${line} | ${SEDBINARY} 's/:space:/ /g')
+ # key=$(echo ${line} | ${AWKBINARY} -F" = " '{print $1}')
+ # value=$(echo ${line} | ${AWKBINARY} -F" = " '{print $2}')
+ # #echo "Found key '${key}' with value '${value}'"
+ #done
+ fi
+#
+#################################################################################
+#
# Test : MAIL-8838
# Description : Check Dovecot process
Register --test-no MAIL-8838 --weight L --network NO --category security --description "Check dovecot process"