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