From 90cf4e978cd72d93f9d09c28cef34d2d8eeb2f3a Mon Sep 17 00:00:00 2001 From: Stewart Bennell Date: Fri, 29 May 2020 21:33:59 +1000 Subject: [PATCH] Delete mailSetup.sh --- mailSetup.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 mailSetup.sh diff --git a/mailSetup.sh b/mailSetup.sh deleted file mode 100644 index bf9fa84..0000000 --- a/mailSetup.sh +++ /dev/null @@ -1,35 +0,0 @@ -echo "- Setting up smtp for email alerts" -#remove file if exists -rm -f /etc/postfix/{main.cf,mailtest.txt,sasl_passwd,sender_canonical} -#Downloading Files -wget -nc -qP /etc/postfix/ https://raw.githubusercontent.com/sbennell/pve-patch/master/mail/main.cf - -#echo "Enter Office 365 Email Address?" -read Email - -#echo "Enter Office 365 Email Password?" -read Password - -echo "[smtp.office365.com]:587 $Email:$Password" >> /etc/postfix/sasl_passwd -echo "/.+/ $Email" >> /etc/postfix/sender_canonical - -postmap hash:/etc/postfix/sasl_passwd -postmap hash:/etc/postfix/sender_canonical -cp /etc/ssl/certs/thawte_Primary_Root_CA.pem /etc/postfix/cacert.pem -chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db -chmod 644 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db -chown root:root /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db -chmod 644 /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db -service postfix restart - -Serverfqdn=$(hostname -f) -IP=$(hostname -I) - -echo "to: server@bennellit.com.au" >> /etc/postfix/emailsetupinfo.txt -echo "subject:New Server Setup Info $Serverfqdn" >> /etc/postfix/emailsetupinfo.txt -echo "Hostname: $Serverfqdn" >> /etc/postfix/emailsetupinfo.txt -echo "IP Address: $IP" >> /etc/postfix/emailsetupinfo.txt - -sendmail -v server@lab-network.xyz < /etc/postfix/emailsetupinfo.txt - -echo "- done!"