
2 changed files with 38 additions and 0 deletions
@ -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 |
||||
|
``` |
@ -0,0 +1,5 @@ |
|||||
|
# config zfs to send emails |
||||
|
|
||||
|
edit `/etc/zfs/zed.d/zed.rc` |
||||
|
|
||||
|
file is pretty self-explanatory |
Loading…
Reference in new issue