Update linupx-scripts.sh
This commit is contained in:
@@ -478,12 +478,33 @@ POSTFIX_INSTALL(){
|
|||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Nn]) INSTALL_MENU;;
|
[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
|
$APTFUNC install -y postfix mailutils
|
||||||
cd /etc/postfix
|
cd /etc/postfix
|
||||||
service stop 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
|
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
|
wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/sender_canonical -O /etc/postfix/sender_canonical
|
||||||
|
|
||||||
hostname=`hostname`
|
hostname=`hostname`
|
||||||
|
|||||||
Reference in New Issue
Block a user