This commit is contained in:
parent
28591326ab
commit
d8344e1711
22
patch.sh
22
patch.sh
|
|
@ -28,17 +28,17 @@ 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,main.cf,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}
|
||||||
#postmap hash:/etc/postfix/sasl_passwd
|
postmap hash:/etc/postfix/sasl_passwd
|
||||||
#postmap hash:/etc/postfix/sender_canonical
|
postmap hash:/etc/postfix/sender_canonical
|
||||||
#chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
|
chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
|
||||||
#chmod 644 /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
|
chown root:root /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db
|
||||||
#chmod 644 /etc/postfix/sender_canonical /etc/postfix/sender_canonical.db
|
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