diff --git a/ansible/roles/zfs-install/notes/mail_and_zed.txt b/ansible/roles/zfs-install/notes/mail_and_zed.txt new file mode 100644 index 0000000..5f72637 --- /dev/null +++ b/ansible/roles/zfs-install/notes/mail_and_zed.txt @@ -0,0 +1,47 @@ +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 +user "Hypervisor 00 " +password changeme +from hv00@balsillie.net +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 \ No newline at end of file