Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.qmail > #3224

Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send

From Charles Cazabon <search-web-for-address@pyropus.ca>
Newsgroups muc.lists.qmail
Subject Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send
Date 2022-05-18 09:40 -0600
Organization Newsgate at muc.de e.V.
Message-ID <YoUTUnaIQBbjn45a@pyropus.ca> (permalink)
References <CAOqj+1MRzX+dnrDAFKkyyUMuJrvrTZcvP7vX8qaD0gmR31URNA@mail.gmail.com>

Show all headers | View raw


Manvendra Bhangui <mbhangui@gmail.com> wrote:
> 
> 1. Avoid scanning todo directory for new email. qmail-queue has the
>    information of a new email. Can this be transmitted to qmail-send
>    efficiently without the need for scanning todo directory?

As you noted, I would have concerns about the weakening (shared memory etc) or
removal (combining multiple qmail programs) of the partitioning between
different parts of qmail.

ext-todo does work quite well.  Have you found that with that, on modern
hardware, that the todo scanning is still a bottleneck for the system?  I'm
not saying I doubt you, just that I haven't run into it myself lately.

Regarding combining multiple qmail programs to run on tiny embedded systems
and whatnot -- I don't think running a full MTA is a sensible choice there.
Tiny systems should be using nullmailer or ssmtp or some other equivalent to
send all their mail to a smarthost, where the real MTA lives.

> 2. Send multiple emails using as few connections as possible for remote
>    deliveries rather a making new connection for every email to be
>    delivered to remote hosts. This will be my next project and I
>    think this will be challenging because too much to deal with tcp/ip
>    sockets, timeouts, handling reconnection and stuff. Not sure I will
>    succeed, but I will give it a try.

qmail's architecture makes it difficult - you have to have qmail-send change
to supplying multiple messages and recipients to qmail-remote, which is
significant surgery.

The traditional solution to this for dealing with mail to the big hosts --
Gmail, Yahoo, Yandex, whatever -- is to put all mail for those domains in a
maildir and periodically run maildirsmtp, which then delivers all accumulated
mail over a single persistent connection.  It works quite well.  The number of
huge mail providers which really benefit from this type of optimization is
reasonably small, so this is a workable solution.

Charles
-- 
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:                  http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.qmail | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Manvendra Bhangui <mbhangui@gmail.com> - 2022-05-18 20:22 +0530
  Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Charles Cazabon <search-web-for-address@pyropus.ca> - 2022-05-18 09:40 -0600
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send "Andy Bradford" <amb-sendok-1655608419.pihkcaidealnncpjikcf@bradfords.org> - 2022-05-19 21:13 -0600
  Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Manvendra Bhangui <mbhangui@gmail.com> - 2022-05-18 21:33 +0530
  Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Charles Cazabon <search-web-for-address@pyropus.ca> - 2022-05-18 12:57 -0600
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Manvendra Bhangui <mbhangui@gmail.com> - 2022-05-19 11:01 +0530
      Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send "Andy Bradford" <amb-sendok-1655610517.acaeoeagfmekmmidodop@bradfords.org> - 2022-05-19 21:48 -0600
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Charles Cazabon <search-web-for-address@pyropus.ca> - 2022-05-19 07:52 -0600
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Manvendra Bhangui <mbhangui@gmail.com> - 2022-05-19 19:59 +0530
      Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send "John Levine" <johnl@iecc.com> - 2022-05-19 13:00 -0400
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Charles Cazabon <search-web-for-address@pyropus.ca> - 2022-05-19 10:48 -0600
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Manvendra Bhangui <mbhangui@gmail.com> - 2022-05-20 09:02 +0530
  Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Erwin Hoffmann <feh@fehcom.de> - 2022-05-19 16:26 +0200
    Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Erwin Hoffmann <feh@fehcom.de> - 2022-05-19 17:34 +0200
  Re: TLDR; Using POSIX message queues in qmail-queue to communicate with qmail-send Manvendra Bhangui <mbhangui@gmail.com> - 2022-05-19 20:51 +0530

csiph-web