Update linupx-scripts.sh

This commit is contained in:
2022-05-22 13:41:14 -05:00
parent 0162ab721a
commit 61b179f18f

View File

@@ -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>>/${USERNAME}/g" main.cf
sed -i "s/<<PASSWORD>>/${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`