Install msmtp
and its mta.
|
|
Edit /root/.msmtprc
|
|
Edit /etc/zfs/zed.d/zed.rc
:
-
Change
ZED_EMAIL_ADDR
to your desired mailbox -
Uncomment
ZED_EMAIL_PROG=mail
-
Uncomment
ZED_EMAIL_OPTS
and edit value:"-s '@SUBJECT@' @ADDRESS@ -r [email protected]"
-
Uncomment
ZED_NOTIFY_VERBOSE=1
-
For testing only, change to 0 to ignore events on healthy pools
-
Scrub a pool and wait till finish to send a test email.