Move email notification info from notes to docs
This commit is contained in:
parent
d28134d920
commit
60cf86a484
|
@ -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)
|
* [AUR Package Manager (REQUIRED)](aur_package_manager.md)
|
||||||
* [Slideshow Prep (REQUIRED)](slideshow_prep.md)
|
* [Slideshow Prep (REQUIRED)](slideshow_prep.md)
|
||||||
* [Slideshow Setup (REQUIRED)](slideshow.md)
|
* [Slideshow Setup (REQUIRED)](slideshow.md)
|
||||||
|
* [Email Notifications (OPTIONAL)](email_notifications.md)
|
||||||
|
|
54
docs/email_notifications.md
Normal file
54
docs/email_notifications.md
Normal 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
|
||||||
|
|
||||||
|
```
|
44
notes.txt
44
notes.txt
|
@ -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)
|
# Cron (needed for email output of backup jobs)
|
||||||
########################################
|
########################################
|
||||||
|
|
Loading…
Reference in a new issue