Update patch.sh
This commit is contained in:
parent
d8344e1711
commit
ac4625456f
4
patch.sh
4
patch.sh
|
|
@ -28,7 +28,7 @@ chmod -R go= ~/.ssh
|
||||||
|
|
||||||
#echo "- Seting up smtp for email alerts"
|
#echo "- Seting up smtp for email alerts"
|
||||||
|
|
||||||
rm -f /etc/postfix/{mailtest.txt,main.cf,sasl_passwd,sender_canonical}
|
rm -f /etc/postfix/{mailtest.txt,sasl_passwd,sender_canonical}
|
||||||
wget -nc -P /etc/postfix/ https://raw.githubusercontent.com/sbennell/pve-patch/master/mail/mailtest.txt
|
wget -nc -P /etc/postfix/ https://raw.githubusercontent.com/sbennell/pve-patch/master/mail/mailtest.txt
|
||||||
#wget -nc -P /etc/postfix/ https://raw.githubusercontent.com/sbennell/pve-patch/master/mail/main.cf
|
#wget -nc -P /etc/postfix/ https://raw.githubusercontent.com/sbennell/pve-patch/master/mail/main.cf
|
||||||
wget --user=bennellit --ask-password -P /etc/postfix/ https://bennellit.com.au/Files/noaccess/{sasl_passwd,sender_canonical}
|
wget --user=bennellit --ask-password -P /etc/postfix/ https://bennellit.com.au/Files/noaccess/{sasl_passwd,sender_canonical}
|
||||||
|
|
@ -41,4 +41,4 @@ chmod 644 /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db
|
||||||
service postfix restart
|
service postfix restart
|
||||||
sendmail -v server@lab-network.xyz < /etc/postfix/mailtest.txt
|
sendmail -v server@lab-network.xyz < /etc/postfix/mailtest.txt
|
||||||
|
|
||||||
echo "- done!"
|
echo "- done!"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue