From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B2FE7158083 for ; Sat, 31 Aug 2024 17:45:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC80C2BC018; Sat, 31 Aug 2024 17:45:23 +0000 (UTC) Received: from sienna.cherry.relay.mailchannels.net (sienna.cherry.relay.mailchannels.net [23.83.223.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F797E2A52 for ; Sat, 31 Aug 2024 17:45:23 +0000 (UTC) X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 776055C48C8 for ; Sat, 31 Aug 2024 17:45:22 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1725126322; a=rsa-sha256; cv=none; b=YgLxGN8xyyAbJTAfg4I0yG734CwU/VRWJ9eT6Kv2nZ0jmJCzjonU8rtI6wGfnn7RsMrIoG kqVfAPYITtX+xX3ocGr8Mmxbqt1RB0l4Y025iUMbZtqikswmoXA6wOowkorb3NaiuxzHqJ 8x+j8d+2OIyer5kjw0UjwAZseDfV13o5O4iKpiOQimZfvj9XY6NjWOH6ZTINU3Z/HXp05b NvoIXd66XFkUaFFbqhbu76heywiBDumZXFewZ9ZJj6bTTlRozabtwmdTJzGbReDmUvjQoC 27pK8H7YjYbMTwgJ0pJLH3RAn02aAf8ufNGGzNjIiQfwPhXpssFo81Qg026HAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1725126322; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=8txRPRjp2Km1S1eUuEiEkxncmpoKcvw1phv+Ynh9fb8=; b=aVthm1vx4FxGRG9jWE5a1qETONAMVUmS70i4n+2tw+rhVD0gNbioPs5G9/9yz7+bPjSJRV zE2nQM5mrYlx3zyZw1eBwfpyasu3XVylnxOoHsNV19y+93cH6UFcYCEhGIaCXuIeWY79SU 4JtFu6dqyXW3XvOhC1/uZE60NFhS3i45wjZXnYqwLgPmAIKTuEn7BRYImbT5JyS4sjmi8d Czm2ymK2hPiFSwRTK9YtRdL6rFTES2xrFXPE20bsmzlqfVrcbUlBxUVDEknnSVmFLYw+eA eWLmy+tKRifkarI+fmJyNqjb4YGLgMOC+EkB6GpKB7ir0aVjEyhKEGpmEwi2hw== ARC-Authentication-Results: i=1; rspamd-5f94c8cb88-crpj6; auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com X-Sender-Id: thundermail|x-authsender|confabulate@kintzios.com X-MC-Relay: Neutral X-MailChannels-SenderId: thundermail|x-authsender|confabulate@kintzios.com X-MailChannels-Auth-Id: thundermail X-Cure-Invention: 5616444c0125d591_1725126322378_3226171596 X-MC-Loop-Signature: 1725126322378:1154737520 X-MC-Ingress-Time: 1725126322378 Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk [149.255.60.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.36.200 (trex/7.0.2); Sat, 31 Aug 2024 17:45:22 +0000 Received: from cloud238.thundercloud.uk (cloud238.thundercloud.uk [149.255.62.116]) by mailclean11.thundermail.uk (Postfix) with ESMTPS id 149EA1E0004 for ; Sat, 31 Aug 2024 18:45:20 +0100 (BST) Authentication-Results: cloud238.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet Received-SPF: pass (cloud238.thundercloud.uk: connection is authenticated) From: Michael 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 Message-ID: <1999822.usQuhbGJ8B@rogueboard> In-Reply-To: References: <3310292.aeNJFYEL58@rogueboard> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3504699.QJadu78ljV"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <172512631864.4102735.13523731649111064466@cloud238.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Rspamd-Queue-Id: 149EA1E0004 X-Rspamd-Server: mailclean11 X-Spamd-Result: default: False [-1.61 / 999.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; ONCE_RECEIVED(0.10)[]; MX_GOOD(-0.01)[]; RCVD_TLS_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_ALLOW(0.00)[+mx]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kintzios.com,none]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM(-0.00)[-0.949]; HAS_REPLYTO(0.00)[confabulate@kintzios.com] X-Rspamd-Action: no action X-Archives-Salt: 3d2de2d2-1629-45ff-a897-664f72aacc74 X-Archives-Hash: 489021988d7e7850a007961115beca3a --nextPart3504699.QJadu78ljV Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Michael To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] How to setup internal email sending Date: Sat, 31 Aug 2024 18:45:19 +0100 Message-ID: <1999822.usQuhbGJ8B@rogueboard> In-Reply-To: MIME-Version: 1.0 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. --nextPart3504699.QJadu78ljV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbTVq8ACgkQseqq9sKV Zxlpig/9FHfxd5dm1zRqOnSyhqS38A7aCIVMVg1PgVLCM7JJphv+wSwga0F9OHyq OZ/Bw07jTVYptLyrRhRiYPc4Bfu4aMTY+Ij1UGULOeS6V4VQPBwCV6e7A4YRxv45 xv1Qn6cOCmQmEBMn/TGa9gux6bBUqkXCCiPdRtlHFZRr/tTDgIDsJzAgr8OH6sCU Ogv3NplXC4IcHCrUQQfw83bC4lTP9UdDtwmzP73e0NSDveVFJ092lH2i6OlIWDPv 4aQ8gMcgFF0i7RtvkRyVpcyxlBQVrCg1gD3Q4dBr3ms8aIyJ9pgea98gjljCaLo8 xQ9Dv0MOU0MonsYgC/bUsDQdfxF44/iBug+beQbUhiwO8ReNP8scaPTwpJM0+oFF RvA0lsIxfYKscSP5/aes/+I6MJZUvY+x+mgBKmG4NOCIgtMjVawayLKOrDMemDTL GZBcpHuophRw3EmiCas4/L1nAcdxoWd8kOQyMosn1unU/vdF2chKLqbsvB7biTaH 15V8Geqf1p77O15k1PhoV5yIHKt8IpmH06xWVaNYDIe6d3zev3jMU3AwEJpgDPTb scKkeQPgqRvJappzhz7EA/8mi7pug6a1XgwkTCY7j6nEfAC6dky9dsAWWasennXJ fTlp4nuzWF3eIYta21dmG2kY6/Zy/ceTYBc5LMbNnz9VWhaT3D8= =GXZu -----END PGP SIGNATURE----- --nextPart3504699.QJadu78ljV--