added auto updates script, updated postfix script

This commit is contained in:
2023-08-25 19:31:34 -05:00
parent 5d39467bf5
commit 64fe5a881a
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
apt install -y unattended-upgrades

View File

@@ -1,6 +1,6 @@
#!/bin/bash
sudo apt install -y libsasl2-modules mailutils postfix postfix-pcre
DEBIAN_FRONTEND=noninteractive apt install -y libsasl2-modules mailutils postfix postfix-pcre
echo "smtp.gmail.com notify.akanealw@gmail.com:leawkqqpthbwacrf" > /etc/postfix/sasl_passwd
echo "/^From:.*/ REPLACE From: $(hostname) <notify.akanealw@gmail.com>" > /etc/postfix/smtp_header_checks
@@ -31,4 +31,4 @@ fi
postfix reload
echo "This is a test message sent from postfix on $(hostname)" | mail -s "Test Email from $(hostname)" akanealw@gmail.com
#echo "This is a test message sent from postfix on $(hostname)" | mail -s "Test Email from $(hostname)" akanealw@gmail.com