Re: [Mailman-Users] How to configure mailman to only deliver mail a few times a day?

Well, after giving the problem a night's worth of thought, I think the best idea for this problem is to use sendmail. Or rather to use 2 of them. The first one just receives mail and queues it. But it is configured to _not_ process the mail queue.
The second one is configured so that it processes its own mail queue.
Then you write an external program that wakes up every so often, and checks to see if anything in queue1 is old enough to send. If it is, it moves it off to queue2, where the second sendmail will deal with it.
Anything obviously wrong with this idea?
Laura

On 02/06/2015 10:42 PM, Laura Creighton wrote:
Then you write an external program that wakes up every so often, and checks to see if anything in queue1 is old enough to send. If it is, it moves it off to queue2, where the second sendmail will deal with it.
Anything obviously wrong with this idea?
It doesn't seem that the 'mover' should be checking the age of things in queue 1. The idea is just to not send messages more than a few times a day, not to introduce extra delay.
Also, it's easy to configure Mailman to use some smtp port other than 25 for sending and thus send only to to the first sendmail and be the only thing that does so, but you may not want to delay all Mailman mail, e.g. an on demand password reminder or a held message notification. The mover needs to be smart. I think it should check queue1 frequently and if a queued message has a Mailman generated Message-ID: of the form <mailman\.\d+\.\d+\.\d+\..+@.+> move it right now, otherwise wait until x hours since the last "bulk move" at which time it moves everything and updates the last bulk move time.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Laura Creighton
-
Mark Sapiro