public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Laurence Perkins <lperkins@openeye.net>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] Local mail delivery agent (MDA) wanted
Date: Wed, 15 Dec 2021 20:21:05 +0000	[thread overview]
Message-ID: <MW2PR07MB4058057A592ADD9F96526287D2769@MW2PR07MB4058.namprd07.prod.outlook.com> (raw)
In-Reply-To: <fb171288-da37-4cbd-c293-89657850472d@spamtrap.tnetconsulting.net>

>
>
>-----Original Message-----
>From: Grant Taylor <gtaylor@gentoo.tnetconsulting.net> 
>Sent: Tuesday, December 14, 2021 3:34 PM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] Local mail delivery agent (MDA) wanted
>
>On 12/13/21 3:12 PM, Frank Steinmetzger wrote:
>>> Using strace, I found out that mail from mailx puts those mail into 
>>> /var/spool/clientmqueue/, one file per mail, but not in a maildir structure.
>
>Yes, the /var/spool/clientmqueue is the mail queue for outgoing messages from clients.  Hence the name "client m(ail) queue".
>
>> OK, I found out that this is the usual outgoing queue which needs to 
>> be processed by sendmail, probably through another cronjob or a 
>> process that itself checks that directory periodically.
>
>Sendmail is quintessentially a daemon that's running all the time.  As such it usually does it's own scheduling and does not depend on external scheduling.
>
>>> In many places I read that system mail—by default—goes into 
>>> /var/spool/mail/<user>, but until now I’ve yet to observe this behavior.
>
>/var/spool/mail/<user> and /var/mail/<user> are the quintessential locations for mbox based inbound email storage.
>
>Note:  There are a number of other fancy client mail storage routines that don't use files in this path.
>
>> It’s really not easy to find a description of the default setup of 
>> olden days (or I’m simply using the wrong search terms). Because when 
>> you search for something like unix local mail setup, most results are 
>> about setting up an SMTP server. In hindsight—perhaps that is simply 
>> the way to go. :-/
>You will quite likely need a Mail Transfer Agent to receive the email, either via command (mail(x) / sendmail / etc) or read from a queue location like /var/spool/clientmqueue and then deliver the messages to where they belong.
>
>There /may/ be an alternate "mail" command that does all of this in one function.  But I'd be surprised to learn about such.
>
>Most of the surprise is because it would be combining three distinct parts of the email flow:  the Mail User Agent (a.k.a. MUA) generating the original outgoing message, the Message Transfer Agent (a.k.a. MTA) to receive the original message and do something with it, and the Local Delivery Agent (a.k.a. LDA) to put the message in the proper location.
>
>The originating MUA can frequently be substituted at will with "mail", "mailx", and "nail" being three CLI based that come to mind immediately.
>
>The MTA can frequently be one of many with Sendmail, Postfix, Courier, Exim coming to mind.
>
>The LDA can easily be one of the following; procmail, maildrop, Courier,
>  and something super simple I don't remember the name of because I've not used it in so long.
>
>
>
>--
>Grant. . . .
>unix || die
>
>

So one thing that's annoyed me for a while is that there are several things which will pull in nullmailer to accept local mails, but don't pull in anything to do local delivery (And I'm not sure if nullmailer can even pass things to local delivery) so your local delivery mails by default just stack up in the nullmailer outbound queue unless you configure it to pass them off to an external mail system.

Since the most commonly used of these programs are things like cron where local delivery is probably the only thing most users would care about it might be nice if the default configuration were one that does that, and then those who want local mail relayed elsewhere still don't have any significant extra setup work to do.

LMP

  reply	other threads:[~2021-12-15 20:21 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 [this message]
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
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=MW2PR07MB4058057A592ADD9F96526287D2769@MW2PR07MB4058.namprd07.prod.outlook.com \
    --to=lperkins@openeye.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