Update install-postfix.sh
This commit is contained in:
@@ -20,8 +20,8 @@ case "$choice" in
|
|||||||
service stop postfix
|
service stop postfix
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -e -n "${idsCL[LightCyan]}Server is 'i'nternal or 'e'xternal (i=default): ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Server is 'I'nternal or 'E'xternal? ${idsCL[Default]}"
|
||||||
read SERVERLOC
|
read -i "I" SERVERLOC
|
||||||
|
|
||||||
if [ "${SERVERLOC}" = "" ]; then SERVERLOC=I; fi
|
if [ "${SERVERLOC}" = "" ]; then SERVERLOC=I; fi
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ case "$choice" in
|
|||||||
[Ee])
|
[Ee])
|
||||||
echo
|
echo
|
||||||
echo -e -n "${idsCL[LightCyan]}Username for scity.us domain email: ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Username for scity.us domain email: ${idsCL[Default]}"
|
||||||
read USERNAME
|
read -i "systems" USERNAME
|
||||||
echo
|
echo
|
||||||
echo -e -n "${idsCL[LightCyan]}Password for scity.us domain email: ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Password for scity.us domain email: ${idsCL[Default]}"
|
||||||
read -s PASSWORD
|
read -s PASSWORD
|
||||||
@@ -52,17 +52,14 @@ case "$choice" in
|
|||||||
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`
|
||||||
echo -e -n "${idsCL[LightCyan]}Server Name (Default = \"${hostname}\"): ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Server Name: ${idsCL[Default]}"
|
||||||
read pfhostname
|
read -i "${hostname}" pfhostname
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "${pfhostname}" = "" ]; then pfhostname=${hostname}; fi
|
echo -e -n "${idsCL[LightCyan]}Default from email (portion before @scity.us): ${idsCL[Default]}"
|
||||||
|
read -i "${hostname}" pffromemail
|
||||||
read -p "Default from email (portion before @scity.us, Default = \"${hostname}\"): " pffromemail
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "${pffromemail}" = "" ]; then pffromemail=${hostname}; fi
|
|
||||||
|
|
||||||
sed -i "s/<<HOSTNAME>>/${pfhostname}/g" main.cf
|
sed -i "s/<<HOSTNAME>>/${pfhostname}/g" main.cf
|
||||||
sed -i "s/<<FROMEMAIL>>/${pffromemail}/g" sender_canonical
|
sed -i "s/<<FROMEMAIL>>/${pffromemail}/g" sender_canonical
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user