smtp-check message

This commit is contained in:
pvincent
2024-04-23 22:35:35 +04:00
parent 72ed035132
commit 9c1e6c49d2
+3 -3
View File
@@ -23,9 +23,9 @@ EOF
function check_smtp_connection {
echo -n "check smtp server <$server> port 587 ... "
if connect_server | grep -q CONNECTED; then
echo SUCCESS
echo SUCCESSFUL CONNECTION
else
echo FAILURE && exit 1
echo wrong server connection! && exit 1
fi
}
@@ -35,7 +35,7 @@ function check_smtp_auth {
output=$(auth_server)
if echo "$output" | grep -q CONNECTED; then
if echo "$output" | grep -q "Authentication successful"; then
echo OK
echo SUCCESSFUL AUTHENTICATION
else
echo wrong username or password! && exit 2
fi