From 85b6f28f213e80d3bdb2d8dde534db4cc56465e1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 22 May 2022 15:11:46 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index e05ac7c..64b4da7 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -532,6 +532,18 @@ POSTFIX_INSTALL(){ service postfix start + echo -e -n "${idsCL[Yellow]}Send test Alert to (leave blank to not send test): ${idsCL[Default]}" + read TESTEMAIL + + if [ "${TESTEMAIL}" != "" ]; then + if [ "${TESTEMAIL}" = "txt" ]; then + TESTEMAIL='9208839613@txt.att.net' + elif [ "${TESTEMAIL}" = "mms" ]; then + TESTEMAIL='9208839613@mms.att.net' + fi + echo "Test Alert Body" | mail -r ${pffromemail}@scity.us -s "Test Alert Subject" $TESTEMAIL + fi + echo "" echo -e "${Green}Postfix has been Installed${Color_Off}" if [ ${action-x} ]; then exit 0; fi