Browse Source

added instructions for setting up auto emails

master
Mario Alegre 5 years ago
parent
commit
1b48caf52c
  1. 33
      linux/mail/msmtp.md
  2. 5
      linux/zfs/send-email.md

33
linux/mail/msmtp.md

@ -0,0 +1,33 @@
# lightweight email client
## install
```
sudo apt install msmtp-mta mailutils
```
## configure
edit `/etc/msmtprc`:
```
# A system wide configuration file is optional.
# If it exists, it usually defines a default account.
# This allows msmtp to be used like /usr/sbin/sendmail.
defaults
# Use TLS on port 465
port 465
tls on
tls_starttls off
account default
host $server
# Envelope-from address
from root@hostname
# Authentication
auth on
user $user
password $password
```
since you will be putting a plaintext password in this config file, make sure it's only readable by root:
```
chmod og-r /etc/msmtprc
```

5
linux/zfs/send-email.md

@ -0,0 +1,5 @@
# config zfs to send emails
edit `/etc/zfs/zed.d/zed.rc`
file is pretty self-explanatory
Loading…
Cancel
Save