public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@gentoo.tnetconsulting.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Local mail delivery agent (MDA) wanted
Date: Mon, 20 Dec 2021 15:28:26 -0700	[thread overview]
Message-ID: <a8a2c775-c62c-896a-0962-1dcbf2375fb8@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <YcD/DMXMxWH21fKq@kern>

On 12/20/21 3:09 PM, Frank Steinmetzger wrote:
> Delivery works on both systems

:-)

> (with a little caveat, see second-last paragraph).

;-)

> At first I believed that both systems used mail from GNU mailutils. 
> But I erred:

Ya.  Determining /which/ implementation of a command is being used can 
be ... difficult at times.

> My Gentoo NAS only has mailutils installed. But while I have that also 
> installed on Arch, I was in fact using s-nail’s mail program there. 
> Mailutils installs its mail as /usr/bin/gnu-mail instead, which allows 
> both packages to co-exist (which Gentoo does not).

Yep.  That could be an issue.  It's not bad if you are aware of it and 
can account for it.

> So I tried gnu-mail on Arch, but this does not move read mail away 
> upon exit like its Gentoo cousin.

That might be a default configuration / rc file in somewhere in /etc.

> I did more trials, wrote a lengthy description of it into this message 
> and threw them away again, so I wouldn’t bore you.

/me chuckles mildly.

I doubt that you would bore me.  I might also learn something about Arch 
and possibly even Gentoo.  But those bits have already gone through the 
circuit.  (Portmanteau of "water under the bridge"?)

> In the end I gave up, removed Gentoo’s mailutils and went with 
> s-nail. And now it works. ¯\_(ツ)_/¯

It sounds like you've achieved your goal /and/ that we (at least you and 
I) learned some things along the way.  :-D

> Maybe building dma from source broke some stuff, because it installed 
> into /usr/local. `echo foo | mail root` (mail from mailutils) produces 
> mail that remains in dma’s queue, whereas `echo bar | sendmail root` 
> (/usr/local/sbin/ sendmail from dma) gets the mail delivered to the 
> spool file.

I would expect the `mail` and `sendmail` commands (binaries / scripts) 
to do slightly different things.  Both should accept messages on STDIN. 
But what they do with them might be different.

Leaving the message in the spool makes me think that there is 
expectation that something else, maybe even another part of DMA, will do 
something with the spooled message(s).  Maybe DMA is expecting some sort 
of cron job to work the mail queue.

> But the latter mails were missing vital headers and thus mail had a 
> problem displaying them properly.

That sounds like raw, unprocessed email to me.

> It’s all a bit voodoo-esque to my simple-minded user’s point of 
> view; confusion over many implementations of the same standard;

The wonderful thing about standards is that we have so many to choose 
from.  }:-)

> they should interoperate,

Ideally.

> but maybe don’t, or maybe I did not configure them properly.

See above comment about cron et al.

> plus the overly complex configs and info documentation on GNU’s 
> side which keeps me away. It must have been great days back in the 
> 80s. I wish I had experienced those times and machines.

Email is ... non-trivial, to put it mildly.  There are many different 
things that interact and each behaves slightly differently while doing a 
different part of the job.



-- 
Grant. . . .
unix || die


  reply	other threads:[~2021-12-20 22:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-12 13:25 [gentoo-user] Local mail delivery agent (MDA) wanted Frank Steinmetzger
2021-12-12 14:23 ` Alexey Mishustin
2021-12-12 23:36 ` William Kenworthy
2021-12-13  9:36   ` Peter Humphrey
2021-12-13  9:50     ` William Kenworthy
2021-12-13 19:40 ` tastytea
2021-12-13 20:11   ` Grant Taylor
2021-12-13 21:34   ` Frank Steinmetzger
2021-12-13 22:12     ` Frank Steinmetzger
2021-12-13 23:49       ` tastytea
2021-12-14 23:34       ` Grant Taylor
2021-12-15 20:21         ` Laurence Perkins
2021-12-15 20:38           ` Grant Taylor
2021-12-15  3:26 ` Ralph Seichter
2021-12-18 23:00 ` Frank Steinmetzger
2021-12-19  2:19   ` Grant Taylor
2021-12-19 14:23     ` Frank Steinmetzger
2021-12-20 19:08     ` Frank Steinmetzger
2021-12-20 19:10       ` Frank Steinmetzger
2021-12-20 20:00       ` Grant Taylor
2021-12-20 22:09         ` Frank Steinmetzger
2021-12-20 22:28           ` Grant Taylor [this message]
2021-12-20 22:37             ` Wol
2021-12-20 23:38               ` Grant Taylor

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=a8a2c775-c62c-896a-0962-1dcbf2375fb8@spamtrap.tnetconsulting.net \
    --to=gtaylor@gentoo.tnetconsulting.net \
    --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