From 61b179f18fcb3de4d4c7bd04626da21514e74525 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 22 May 2022 13:41:14 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index ce7570c..7c6834d 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -478,12 +478,33 @@ POSTFIX_INSTALL(){ case "$choice" in [Nn]) INSTALL_MENU;; * ) + echo -e "${Green}Select default options upon install as config will be overwritten by script at the end${Color_Off}" + read -n 1 -s -p "Press any key to continue" $APTFUNC install -y postfix mailutils cd /etc/postfix service stop postfix + + echo -e -n "${idsCL[LightCyan]}Server is internal or external (I/e): ${idsCL[Default]}" + read SERVERLOC + mv /etc/postfix/main.cf /etc/postfix/main.cf.bak - wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/main.cf -O /etc/postfix/main.cf + + case $opt in + [Ii]) wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/main.cf -O /etc/postfix/main.cf;; + + [Ee]) + echo -e -n "${idsCL[LightCyan]}Username for scity.us domain email: ${idsCL[Default]}" + read USERNAME + echo + echo -e -n "${idsCL[LightCyan]}Password for scity.us domain email: ${idsCL[Default]}" + read -s PASSWORD + echo + wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/main.auth.cf -O /etc/postfix/main.cf;; + sed -i "s/<>/${USERNAME}/g" main.cf + sed -i "s/<>/${PASSWORD}/g" main.cf + esac + wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/sender_canonical -O /etc/postfix/sender_canonical hostname=`hostname`