How to limit numbers of outgoing emails per connection

Exim tells me "no immediate delivery: more than 30 messages received in one connection"
The emails then sit in the exim queue until a queue runner kicks in - which happens once every 30 minutes. The result is considerable delays which makes list email conversations bouncy.
Question: how do I tell MM3 to send no more than 30 emails in one connection to exim (via SMTP to localhost port 25) ?
If that is not possible, how do I find the number that MM3 batches outgoing emails so that I can configure exim to match (as I did with MM2) ?
I see documentation pages like the following. They are useless to me, incomprehensible without a lot of learning. I program in several languages but only a little Python. What I am looking for is a setting in a config file.
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/runners/doc...
-- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 https://www.phcomp.co.uk/ Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html #include <std_disclaimer.h>

On 2025-02-10 12:57:24 +0000 (+0000), Alain D D Williams wrote:
Exim tells me "no immediate delivery: more than 30 messages received in one connection"
The emails then sit in the exim queue until a queue runner kicks in - which happens once every 30 minutes. The result is considerable delays which makes list email conversations bouncy.
Question: how do I tell MM3 to send no more than 30 emails in one connection to exim (via SMTP to localhost port 25) ? [...]
There are corresponding configuration options in Mailman and Exim, where you need to make sure that the batch size used by the former is less than the limit set for the latter.
In your mailman configuration (we use a mailman-extra.cfg in our
deployment to selectively extend the default mailman.cfg) add a
[mta]
section with a max_recipients: some_integer_value
line.
This value needs to be explicitly less than the
smtp_accept_queue_per_connection
global setting in your exim4.conf
file.
It seems to me that the config option in Exim is poorly named and
documented, as I've observed that batches of exactly
smtp_accept_queue_per_connection
result in queued processing
rather than immediate delivery, which is why mta.max_recipients
must be strictly less, not set equal to it.
Hope that helps!
Jeremy Stanley

On Mon, Feb 10, 2025 at 3:57 PM Alain D D Williams <addw@phcomp.co.uk> wrote:
Exim tells me "no immediate delivery: more than 30 messages received in one connection"
The emails then sit in the exim queue until a queue runner kicks in - which happens once every 30 minutes. The result is considerable delays which makes list email conversations bouncy.
Question: how do I tell MM3 to send no more than 30 emails in one connection to exim (via SMTP to localhost port 25) ?
If that is not possible, how do I find the number that MM3 batches outgoing emails so that I can configure exim to match (as I did with MM2) ?
I see documentation pages like the following. They are useless to me, incomprehensible without a lot of learning. I program in several languages but only a little Python. What I am looking for is a setting in a config file.
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/runners/doc...
My biggest MM3 list has 1289 members. I have these global settings on exim config:
# exim4u: Values to modify to fix "Connection Refused: Too Many Connections" smtp_accept_max = 400 smtp_accept_max_per_host = 20 smtp_accept_queue_per_connection = 0
Exim has never chocked on any post to this ML. As Jared has explained, which I think is a better approach if you have big lists, you can control the settings from mailman.cfg.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
participants (3)
-
Alain D D Williams
-
Jeremy Stanley
-
Odhiambo Washington