update
This commit is contained in:
@@ -25,16 +25,14 @@ case "$choice" in
|
||||
service stop postfix
|
||||
|
||||
echo
|
||||
echo -e -n "${idsCL[LightCyan]}Server is 'I'nternal or 'E'xternal? ${idsCL[Default]}"
|
||||
echo -e -n "${idsCL[LightCyan]}Server is 'I'nternal or 'E'xternal or 'D'irect? ${idsCL[Default]}"
|
||||
read -i "I" -e SERVERLOC
|
||||
|
||||
if [ "${SERVERLOC}" = "" ]; then SERVERLOC=I; fi
|
||||
[ "${SERVERLOC}" = "" ] && SERVERLOC=I
|
||||
|
||||
mv /etc/postfix/main.cf /etc/postfix/main.cf.bak
|
||||
|
||||
if [ ! -f /etc/mailname ]; then
|
||||
echo "scity.us" > /etc/mailname
|
||||
fi
|
||||
[ ! -f /etc/mailname ] && echo "scity.us" > /etc/mailname
|
||||
|
||||
case ${SERVERLOC} in
|
||||
[Ii]) wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/main.cf -O /etc/postfix/main.cf;;
|
||||
@@ -52,6 +50,20 @@ case "$choice" in
|
||||
sudo postmap /etc/postfix/sasl_passwd
|
||||
sudo rm -f /etc/postfix/sasl_passwd
|
||||
;;
|
||||
[Dd])
|
||||
echo
|
||||
echo -e -n "${idsCL[LightCyan]}Username for direct: ${idsCL[Default]}"
|
||||
read -i "david@schroedercity.com" -e USERNAME
|
||||
echo
|
||||
echo -e -n "${idsCL[LightCyan]}Password for direct: ${idsCL[Default]}"
|
||||
read -s PASSWORD
|
||||
echo
|
||||
wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/direc.auth.cf -O /etc/postfix/main.cf
|
||||
echo "[pro.turbo-smtp.com]:587 ${USERNAME}:${PASSWORD}" > /etc/postfix/sasl_passwd
|
||||
sudo chmod 600 /etc/postfix/sasl_passwd
|
||||
sudo postmap /etc/postfix/sasl_passwd
|
||||
sudo rm -f /etc/postfix/sasl_passwd
|
||||
;;
|
||||
esac
|
||||
|
||||
wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/sender_canonical -O /etc/postfix/sender_canonical
|
||||
|
||||
Reference in New Issue
Block a user