1
0
IaC/ansible/roles/zfs-install/notes/mail_and_zed.txt

47 lines
883 B
Plaintext
Raw Permalink Normal View History

2023-04-17 16:06:00 -04:00
install inetutils (for hostname) s-nail (for mail) and msmtp-mta , which brings in msmtp as a dependancy
configure /etc/msmtprc
account default
host smtp.balsillie.net
port 465
tls on
tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on
2023-04-18 08:13:00 -04:00
user hv00@balsillie.net
2023-04-17 16:06:00 -04:00
password changeme
2023-04-18 08:13:00 -04:00
from "Hypervisor 00 <hv00@balsillie.net>"
2023-04-17 16:06:00 -04:00
aliases /etc/aliases
allow_from_override off
set_from_header on
configure /etc/alaises
root: admin@balsillie.net
default: admin@balsillie.net
edit nano /etc/zfs/zed.d/zed.rc
uncomment line
ZED_EMAIL_ADDR="root" # the aliases file will translate this
ZED_NOTIFY_VERBOSE=1 # Receiev alerts for healthy pool scrubs
ZED_EMAIL_PROG="msmtp"
start and enable zfs-zed.service
install smartmontools
edit nano /etc/smartd.conf
replace
DEVICESCAN
with
DEVICESCAN -a -m admin@balsillie.net -M test
start/enable smartd.service