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>2016-06-18 12:14:01 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-06-18 12:14:01 +0300
commit983e293eb157131ca5e085e4927ea5fc220edc73 (patch)
treecc5e8bea4af5cfa53f57a73d2c61357f47165857 /include/tests_mail_messaging
parent9c093f7a97fb0b9593a303ef7394c3bc5dea99b2 (diff)
Replaced text strings to allow translations
Diffstat (limited to 'include/tests_mail_messaging')
-rw-r--r--include/tests_mail_messaging30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/tests_mail_messaging b/include/tests_mail_messaging
index f9e707f2..7a9597ba 100644
--- a/include/tests_mail_messaging
+++ b/include/tests_mail_messaging
@@ -44,12 +44,12 @@
IsRunning exim
if [ ${RUNNING} -eq 1 ]; then
LogText "Result: found running Exim process"
- Display --indent 2 --text "- Checking Exim status" --result RUNNING --color GREEN
+ Display --indent 2 --text "- Checking Exim status" --result "${STATUS_RUNNING}" --color GREEN
EXIM_RUNNING=1
SMTP_DAEMON="exim"
else
LogText "Result: no running Exim processes found"
- Display --indent 2 --text "- Checking Exim status" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking Exim status" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -67,12 +67,12 @@
#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
+ Display --indent 2 --text "- Checking Postfix status" --result "${STATUS_RUNNING}" --color GREEN
POSTFIX_RUNNING=1
SMTP_DAEMON="postfix"
else
LogText "Result: no running Postfix processes found"
- Display --indent 2 --text "- Checking Postfix status" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking Postfix status" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -83,7 +83,7 @@
if [ ${POSTFIX_RUNNING} -eq 1 -a ! "${POSTFIXBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no MAIL-8816 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check Postfix configuration"
if [ ${SKIPTEST} -eq 0 ]; then
- Display --indent 2 --text "- Checking Postfix configuration" --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking Postfix configuration" --result "${STATUS_FOUND}" --color GREEN
POSTFIX_CONFIGDIR=`${POSTCONFBINARY} 2> /dev/null | grep '^config_directory' | awk '{ print $3 }'`
POSTFIX_CONFIGFILE="${POSTFIX_CONFIGDIR}/main.cf"
LogText "Postfix configuration directory: ${POSTFIX_CONFIGDIR}"
@@ -110,11 +110,11 @@
if [ ! "${FIND2}" = "" -a ! "${FIND3}" = "" ]; then
SHOWWARNING=1
else
- Display --indent 4 --text "- Checking Postfix banner" --result OK --color GREEN
+ Display --indent 4 --text "- Checking Postfix banner" --result "${STATUS_OK}" --color GREEN
fi
fi
if [ ${SHOWWARNING} -eq 1 ]; then
- Display --indent 4 --text "- Checking Postfix banner" --result WARNING --color RED
+ Display --indent 4 --text "- Checking Postfix banner" --result "${STATUS_WARNING}" --color RED
LogText "Result: found mail_name in SMTP banner, and/or mail_name contains 'Postfix'."
ReportWarning ${TEST_NO} "L" "Found mail_name in SMTP banner, and/or mail_name contains 'Postfix'"
ReportSuggestion ${TEST_NO} "You are advised to hide the mail_name (option: smtpd_banner) from your postfix configuration. Use postconf -e or change your main.cf file (${POSTFIX_CONFIGFILE})"
@@ -131,13 +131,13 @@
IsRunning dovecot
if [ ${RUNNING} -eq 1 ]; then
LogText "Result: found running dovecot process"
- Display --indent 2 --text "- Checking Dovecot status" --result RUNNING --color GREEN
+ Display --indent 2 --text "- Checking Dovecot status" --result "${STATUS_RUNNING}" --color GREEN
DOVECOT_RUNNING=1
IMAP_DAEMON="dovecot"
POP3_DAEMON="dovecot"
else
LogText "Result: dovecot not found"
- Display --indent 2 --text "- Checking Dovecot status" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking Dovecot status" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -151,12 +151,12 @@
IsRunning qmail-smtpd
if [ ${RUNNING} -eq 1 ]; then
LogText "Result: found running Qmail process"
- Display --indent 2 --text "- Checking Qmail status" --result RUNNING --color GREEN
+ Display --indent 2 --text "- Checking Qmail status" --result "${STATUS_RUNNING}" --color GREEN
QMAIL_RUNNING=1
SMTP_DAEMON="qmail"
else
LogText "Result: no running Qmail processes found"
- Display --indent 2 --text "- Checking Qmail status" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking Qmail status" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -170,12 +170,12 @@
IsRunning sendmail
if [ ${RUNNING} -eq 1 ]; then
LogText "Result: found running Sendmail process"
- Display --indent 2 --text "- Checking Sendmail status" --result RUNNING --color GREEN
+ Display --indent 2 --text "- Checking Sendmail status" --result "${STATUS_RUNNING}" --color GREEN
SENDMAIL_RUNNING=1
SMTP_DAEMON="sendmail"
else
LogText "Result: no running Sendmail processes found"
- Display --indent 2 --text "- Checking Sendmail status" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking Sendmail status" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -190,12 +190,12 @@
FIND=`${PSBINARY} ax | egrep "(/smtpd|smtpd: \[priv\]|smtpd: smtp)" | grep -v "grep"`
if [ ! "${FIND}" = "" ]; then
LogText "Result: found running smtpd process"
- Display --indent 2 --text "- Checking OpenSMTPD status" --result RUNNING --color GREEN
+ Display --indent 2 --text "- Checking OpenSMTPD status" --result "${STATUS_RUNNING}" --color GREEN
OPENSMTPD_RUNNING=1
SMTP_DAEMON="opensmtpd"
else
LogText "Result: smtpd not found"
- Display --indent 2 --text "- Checking OpenSMTPD status" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking OpenSMTPD status" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#