Il 31/08/24 19:09, Michael ha scritto:
On Saturday, 31 August 2024 15:10:02 BST gevisz wrote:
I want to set up ZFS Event Daemon Notifications to be sent by ZED to
my user account locally.
It is said in ZFS Gentoo Wiki (see,
https://wiki.gentoo.org/wiki/ZFS#ZFS_Event_Daemon_Notifications)
that to do this I have to set my email address in /etc/zfs/zed.d/zed.rc

However, I am afraid that it is not enough as I have not set up any
email client or server in my Gentoo box.

I have read in an Arch Wiki that to do this I have to install s-nail
and have done it.

However, again, I have found no instructions on how to set up the
s-nail for this very simple task
(take the message from ZFS Event Daemon and deliver it to a folder in
my home directory).

P.S. Alternatively, I would be satisfied if ZED will just log to some
file instead of sending emails.

Please, forgive me, if this question is stupid.

I expect any MTA would do the task of sending emails - but since you've
installed s-nail check the configuration examples offered here:

https://wiki.archlinux.org/title/S-nail


My understanding is that daemons (or shell scripts) do not access directly the local mailbox, they have to go through an MTA. s-nail is a mail client, not an MTA. The latter would be e.g. postfix, sendmail, nullmailer.

I did not have success making the mail client (thunderbird in my case) read from a local mailbox so I ended up configuring the MTA (nullmailer) to forward the messages produced by my local daemons or shell scripts to one of the external mail servers I already used for thunderbird.

I'm sure there is a more linear way so I'd be interested in the answer to this not stupid question, email seems to be one of the more complicated things to manage in linux.

raf

Reply via email to