Move email notification info from notes to docs

This commit is contained in:
KemoNine 2020-07-31 23:58:01 +00:00
parent d28134d920
commit 60cf86a484
3 changed files with 55 additions and 44 deletions

View File

@ -11,3 +11,4 @@ This folder contains a bunch of general information on how to get the base of a
* [AUR Package Manager (REQUIRED)](aur_package_manager.md)
* [Slideshow Prep (REQUIRED)](slideshow_prep.md)
* [Slideshow Setup (REQUIRED)](slideshow.md)
* [Email Notifications (OPTIONAL)](email_notifications.md)

View File

@ -0,0 +1,54 @@
# Email Notifications
The below commands will setup ```msmtp``` as an emailer for the system. This is helpful for getting system messages via email as well as cron emails.
This is optional but strongly recommended to setup.
## Important Notes
* ```msmtp``` *will* work with Office365, Gmail and other providers
## Setup
``` sh
pacman -S msmtp msmtp-mta
cat > /etc/aliases <<EOF
# Example aliases file
# Send root to Joe and Jane
root: user@domain.tld
# Send cron to Mark
cron: user@domain.tld
# Send everything else to admin
default: user@domain.tld
EOF
cat > /etc/msmtprc <<EOF
# Accounts will inherit settings from this section
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
from user@domain.tld
keepbcc on
account piframe
host email.domain.tld
port 587
auth on
user user@domain.tld
password apassword
# Set a default account
account default : piframe
aliases /etc/aliases
EOF
```

View File

@ -1,47 +1,3 @@
########################################
# email notifications via msmtp
########################################
pacman -S msmtp msmtp-mta
cat > /etc/aliases <<EOF
# Example aliases file
# Send root to Joe and Jane
root: user@domain.tld
# Send cron to Mark
cron: user@domain.tld
# Send everything else to admin
default: user@domain.tld
EOF
cat > /etc/msmtprc <<EOF
# Accounts will inherit settings from this section
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
from user@domain.tld
keepbcc on
account piframe
host email.domain.tld
port 587
auth on
user user@domain.tld
password apassword
# Set a default account
account default : piframe
aliases /etc/aliases
EOF
########################################
# Cron (needed for email output of backup jobs)
########################################