From 7c9a0043efa39d23b293363803f8c10334c5b5f9 Mon Sep 17 00:00:00 2001 From: Stewart Bennell Date: Thu, 28 May 2020 13:51:44 +1000 Subject: [PATCH] Update patch.sh --- patch.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index 8497102..0fdd6aa 100644 --- a/patch.sh +++ b/patch.sh @@ -29,7 +29,13 @@ chmod -R go= ~/.ssh echo "- Seting up smtp for email alerts" apt install postfix sasl2-bin mailutils -y apt install libsasl2-modules -y -wget --user=bennellit --ask-password -qP /etc/postfix/ https://bennellit.com.au/Files/noaccess/{mailtest.txt,main.cf,sasl_passwd.db,sender_canonical.db} +wget --user=bennellit --ask-password -qP /etc/postfix/ https://bennellit.com.au/Files/noaccess/{mailtest.txt,main.cf,sasl_passwd,sender_canonical} +postmap hash:/etc/postfix/sasl_passwd +postmap hash:/etc/postfix/sender_canonical +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 sendmail -v server@lab-network.xyz