diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2017-03-27 18:14:11 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-03-27 18:14:11 +0300 |
commit | 7f06a2c34fc45c9100564160762b9479aec99b53 (patch) | |
tree | 4710bede4ffeb84cc7f3f50993c325f15cb74c02 /include/tests_mail_messaging | |
parent | 76f211fd715656eb8587cf621e27e4aaab43b316 (diff) |
Added MAIL-8820 test for Postfix
Diffstat (limited to 'include/tests_mail_messaging')
-rw-r--r-- | include/tests_mail_messaging | 22 |
1 files changed, 22 insertions, 0 deletions
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" |