• Re: [gentoo-user] How to setup internal email sending

    From Michael@21:1/5 to All on Sat Aug 31 18:09:30 2024
    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


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbTTkoACgkQseqq9sKV Zxm4Vw//fjCNhU2woItPCuYsgRB72hGUruVqFoT6gaC3a3jUImPXYdJRJI0KjaxQ PyVxrO7Id5Nd5+x1s3ix8D2Q5Euyx3UORstKVgl8DiYya4iiHgFvzxBcIDaGvV46 H3xrh+JyRyPdSZQlHZhDJcUOVOXfE5rwJOgQ3ptlL2So1NTdDxqIwldZTRScSi8p zO0WFzCrDkhQEKzUFdafX3oRU2oIpmDYYSNeY2/1qb0iVKZMryR/SnSleHZuQMsO 8F+9JpAPwSxkbQOg3Sp0TCffzuW8kWTefIOzoa+iNc+Jp2LVTtE9pRlSeljvLi6O rVeWyZ1Ycdr0fdC4tfLFjknPMi4GTGvw0wjxliVGR3pcXvPmyQVE8u96goAmcHf3 oNBW0VkN8ofukEs8HCoLPLexhVA97lpCTZvtHX47PcSy0jKhBuf8GTAIyKCbYhmH g+BW5YhAMT5Y5Mf+ExXbhRX9QasDj+IMchxa2B6Nig3cEkC9+7c3m6Vp1IatsbHa MzTRXrYRccVCgIow5omGks13Ku1Hp/S9OhyO343KvJzBGmD2g1GMP7dbsk5rstkX kqHRxVK8OM318oWUyUDl0u/XCZFYv4piFcqJ++1DmBKmpwJYwKXNXVJVpbCxudQ1 /z3Du+Z6FOqAxsNA7qRE47k9pj4ikL0PIXhY7IxzySVlksOxE98=
    =HPfs
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ralfconn@21:1/5 to All on Sat Aug 31 19:40:01 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sat Aug 31 18:55:35 2024
    On Saturday, 31 August 2024 18:37:06 BST ralfconn wrote:

    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.

    Probably not relevant to the OP, but did you try to configure T'bird to look
    at a local folder where your mail was stored (you'll probably need T'bird's movemail for this):

    https://support.mozilla.org/en-US/questions/1341209 https://ubuntuforums.org/showthread.php?t=1718795

    I've been able to access local mail storage with mutt and with Kmail - but
    have not tried T'bird.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbTWRgACgkQseqq9sKV Zxk21BAAzv0XFZ40cEU0DyTH0tDQDf5u30gtIIS0EPIzDlbnHVH+Pfuy00IB+k/C tLCwFokPMXUCkcbXANQgGdalIxGCTW0ekf7nj56VgIzIOC8hg0vulvhh7d5EGyZw bNsmXcN42Ys7C0LQH5g+5E5PiieofFr0VGXXt+XJAmoW1wwWIffykTLX/eMwd9At bzjnWxRyZfcStQrHrkUr7GJZW6v19o4EKFdUlLiaJRPMv3go19RKD5Em6gJwTI2j TqbYSt9D11iAXI3tTCgf7LyEc77bPJ4Kqej+bFA26KGSu1mVb+uodz8zKfgEfLis QiMUij4mhrHGcU3b0wCpATE9J0F7XuMgPsGELIh0x7lQzaqv52MyLCP+Q0Xh4Gaj nbMU6GnaqXw8DTgUpT11KoTPX50bLV3fzLI5ECbxFMsgf0EZKthZn23djUpBt3D6 b1kCvupc9AA3S2q65sfsy/uXsUpYaO3ipGtxFCz2V8ZrsWwvkD7QN9d8REUJMB+y cD3kLU5I+T6GTdSy6UFbvA001VTTvC2Oa1gN7QQOYwftRrCvhsDa8GbUqeUH94Xq I9OBkygk0w5TTKRgDxAYvxPRrLzVLKQ/85sRs8gkIXJ3Onb4FjzURHuf6g/SPqVh gm/428PA7KRtcvd+SWF6lfUzDHOMAEpPiuZoinexyhsaATMM3cA=
    =R9XL
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Sat Aug 31 18:45:19 2024
    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.

    -----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-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ralfconn@21:1/5 to All on Sat Aug 31 20:10:01 2024
    Il 31/08/24 19:55, Michael ha scritto:
    On Saturday, 31 August 2024 18:37:06 BST ralfconn wrote:

    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.

    Probably not relevant to the OP, but did you try to configure T'bird to look at a local folder where your mail was stored (you'll probably need T'bird's movemail for this):

    https://support.mozilla.org/en-US/questions/1341209 https://ubuntuforums.org/showthread.php?t=1718795

    I've been able to access local mail storage with mutt and with Kmail - but have not tried T'bird.

    To be sincere, I don't remember. I fiddled a lot to get a working setup
    years ago and promptly forgot what I did. But those links are
    interesting an worth a new try.

    raf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Sun Sep 1 00:40:01 2024
    Am Sat, Aug 31, 2024 at 01:57:25PM -0500 schrieb Dale:

    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
    Thank you. I will look into this wiki.

    email seems to be one of the more complicated things to manage in linux.
    That's why I avoided it so far. :)



    I set this up on my old machine and transferred it over to my new rig. 
    I use mail-mta/ssmtp and it works fine.  I haven't tested it yet on new
    rig but worked on old rig.  Only thing that uses it is SMART for hard drives, that I know of anyway.  This is my config file, less comments.  /etc/ssmtp/ssmtp.conf

    root=postmaster

    root=rdalek1967@gmail.com  #Change to your preferred email address

    […]

    Hope that helps.   Someone else may add to this.  Or correct things. 

    Well, the OP wants to have local delivery, not delivery via SMTP to an external server. That means the mail is generated by the local service (like ZED or smartd), reaches the MTA and that—without any network traffic—puts the mail directly into a local folder, where it can be viewed with a reader like mutt, or trigger a “you have mail” notification at logon.

    I use dma for that. I can’t remember anymore whether I had to set up anything specific, but my /etc/dma/dma.conf is completely vanilla and has
    all lines commented out. When I do something like

    echo hi | mutt root -s testmail
    echo hi | mutt frank -s testmail

    I get a new mail in /var/spool/mail/root and /var/spool/mail/frank, respectively.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    Humans long for immortality, yet they don’t know what to do on a rainy Sunday.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmbTmvYACgkQizG+tUDU MMq0YRAAhkE+yhr7ZxWO5dKHISH5vEBFaFSyYAdZLNdqDBtlgf6JWof4VaoUDLxy 6vIasVAVFeu/vRQOlstuFvUn+HUKfpfdjQEkPj/sIp0TaXX8c4nsaoMZWSldNHv0 i8iQfE1PfV60AT5riezOFJysbJfh5bIK+pCYVHi+XMGN/dvs+vLHsS3QZKBHcqG2 YPZ7WZwTmLd2GH+RqzZDiWInUYFqHCxP/o+5J18l/qtxOxn7Na4p8SwaAxksnkqa 0awtWxzoXmmmnvht2hRsV5pToGagyfKHzVWJKlLYE7WRf4yvU+9uok/MV0ryL+XU EhMxGRamHYpBGsCPq1tgVDeAYDh8JWvvMCKmyn18ncp7rmw56A6/S5mv1OZ9fEHJ zVvep/oSznqgihTHAAFgijpoQaczygt4iwpwZklmQUgiakWt5nnVy4OEUkzn0Ze0 gdpmgVxIGMu3/0c4e5vk6ufuBDdRWqPjDFEf7cUwwCuw1FzqY510v9DYTj2wuyLN 7taeltwMnvyR6wdX6LE5z08nki/UgVRO3I6DdGrZBRuPQ68pLMatpAd2qP5yKZ0D q9/il9UdlQjCCTG6xRpxVv3QHkm/FeylCc1vjoJRIA7qC7ojcH9lOfQ/n0tFDwSF KrXXfg3Ymay3ySzbOKEsLUZucqVATuUlFgI/Ai4QpYq6u3iHyuA=
    =v8F
  • From ralfconn@21:1/5 to All on Sun Sep 29 20:20:01 2024
    Il 31/08/24 19:55, Michael ha scritto:
    On Saturday, 31 August 2024 18:37:06 BST ralfconn wrote:

    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.

    Probably not relevant to the OP, but did you try to configure T'bird to look at a local folder where your mail was stored (you'll probably need T'bird's movemail for this):

    https://support.mozilla.org/en-US/questions/1341209 https://ubuntuforums.org/showthread.php?t=1718795

    I've been able to access local mail storage with mutt and with Kmail - but have not tried T'bird.

    I've finally had a chance to look at movemail in TB, seems it was
    removed approximately 7 years ago [1]. Somebody posted a possible
    workaround [2] but I'm not going that way. 2 years ago there was the
    intention to restore it but I see no activity on that bug.

    Funny, [4] suggests going back to seamonkey for movemail support. I once
    was a happy seamonkey user then switched to FF/TB because SM seemed unmaintained, but from the website it looks like it's still alive and
    kicking.

    raf

    [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1625741
    [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1625741#c35
    [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1802145
    [4] https://bugzilla.mozilla.org/show_bug.cgi?id=1625741#c81

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ralfconn@21:1/5 to All on Mon Sep 30 18:00:01 2024
    Il 29/09/24 21:42, Dale ha scritto:
    ralfconn wrote:
    Funny, [4] suggests going back to seamonkey for movemail support. I
    once was a happy seamonkey user then switched to FF/TB because SM
    seemed unmaintained, but from the website it looks like it's still
    alive and kicking.

    raf

    [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1625741
    [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1625741#c35
    [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1802145
    [4] https://bugzilla.mozilla.org/show_bug.cgi?id=1625741#c81




    I think Seamonkey mostly gets bug fixes and updates so that it compiles
    with new tools and works with newer software.  I don't think it gets
    much else.  I am constantly running into sites that don't work right or
    even load with Seamonkey but work fine with Firefox.  Some may recall
    the massive Firefox rewrite a few years ago.  Once Firefox got the kinks worked out, it was a huge improvement.  Also, add-ons were redone as
    well.  Seamonkey needs to do the same because there are few add-ons that work with Seamonkey now.  You have to use the old add-ons, if you can
    find them, to use anything and almost none of them get updated.  As a example, I switched from Lastpass to Bitwarden.  I have to use Lastpass
    on any site I want to access that uses passwords because Bitwarden
    doesn't have a up to date add-on for Seamonkey.  Lastpass doesn't
    either.  It's still stuck on the last version since Firefox did it's
    rewrite and add-on change.  Yea, no security updates either.  Basically, the only reason I still have Lastpass, it was already installed.  If I
    were to remove Lastpass, I may not be able to get it back.  If it
    stopped working, it would be dead.  There is no update for it in
    Seamonkey.

    In my opinion, Seamonkey is slowly dying unless enough people step up
    and update it to work like Firefox, including add-ons, and is coded in a
    way that websites work like Firefox does.  I mostly use it for the email part and would like to switch but I don't like Thunderbird to much.
    Links is my biggest problem.  If I click on a link, it wants to open a
    new instance of Firefox instead of asking me which instance I want to
    open in with a new tab.  As I type, I have four instances of Firefox
    open.  Each one had a different set of add-ons installed and are used
    for different tasks.  When I click on a link, I just need it to open in
    a new tab and ask me where to do it.

    If anyone were to ask me if they should start using Seamonkey, I'd say
    no.  It worries me that at some point, it isn't even going to work well enough just for the email part.  That is about the only part of it that really works OK.  For web browsing, it's Firefox for 99% of things I do here.  As it is, I have to copy links in Seamonkey email and then paste
    the link in a new tab in Firefox on occasion.  It's annoying.


    Thanks Dale, great explanation (as usual!)

    raf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)