Closed jimklimov closed 3 years ago
Bump? This change is in our production for a month now, spams well :)
One missing thing for admins not at console would be to get more detail at HOW zfs send failed (e.g. copy of stderr from the command at least, contemporary dmesg snippet at best) but I think it can be done in another PR. Probably needs some Mojo magic that I don't yet know, to grab that zfs
output...
Should send the error summary to specified recipient(s) and fix the issue #499 as far as I (original poster) am concerned :)
Tested on a local system, delivers to one or two (comma-separated) local mailboxes using the standard
/usr/lib/sendmail
or/usr/sbin/sendmail
alias (exim, postfix also provide that interface). Internet delivery is up to MTA setup and outside znapzend's interest.If the mail program does not exist in standard path (currently hardcoded, can be made an argument later), it is noted but not fatal:
Message in the box: