public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to setup internal email sending
Date: Sat, 31 Aug 2024 18:45:19 +0100	[thread overview]
Message-ID: <1999822.usQuhbGJ8B@rogueboard> (raw)
In-Reply-To: <b2fa736d-2a4c-4b8b-bddf-7699e8a555b7@yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 2434 bytes --]

On Saturday, 31 August 2024 18:37:06 BST ralfconn wrote:
> 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

From the previously referenced link:

"... S-nail can also send directly to external SMTP servers, so no local MTA 
is required."

I don't use zfs on linux to have experimented with this arch linux 
recommendation, or know more about it, but s-nail should be usable if need be 
with some scripting to send messages with it.

However, as you mention the local MTA architecture is the orthodox way of 
sending mail messages generated by system services.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-08-31 17:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-31 14:10 [gentoo-user] How to setup internal email sending gevisz
2024-08-31 17:09 ` Michael
2024-08-31 17:37   ` ralfconn
2024-08-31 17:45     ` Michael [this message]
2024-08-31 18:41       ` gevisz
2024-08-31 18:57         ` Dale
2024-08-31 22:36           ` Frank Steinmetzger
2024-08-31 22:42             ` Dale
2024-08-31 17:55     ` Michael
2024-08-31 18:04       ` ralfconn
2024-08-31 18:45       ` gevisz
2024-09-29 18:11       ` ralfconn
2024-09-29 19:42         ` Dale
2024-09-30 15:57           ` ralfconn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1999822.usQuhbGJ8B@rogueboard \
    --to=confabulate@kintzios.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox