
clive at messagecare
Dec 16, 2004, 2:44 PM
Views: 23134
Permalink
|
|
Re: Is there a way to control the delivery rate?
[In reply to]
|
|
Net Virtual Mailing Lists wrote: >The delivery rate I need to ensure is something like "1 message every 3 >or 4 minutes", which is pretty easy for qmail to exceed..... > > It sounds to me like you would want to deliver the messages to a local holding mailbox (instead of the real recipient), then have a cron job pick the first message up from that mailbox, inject it to the real recipient, and delete it from the mailbox. If the cron job runs every 4 minutes, you will have your controlled rate. Of course, this will involve some scripting, but it should be a simple enough shell script. At simplest, if you're using maildirs, something like this should do it (you will need to work out the details): to=user [at] domai file=`ls | head -1` qmail-inject $to < $file && rm $file If you're not using maildirs, you might do something a little more involved using something like fetchmail. Clive
|