
On 14/03/12 15:08, Mike Fabre wrote:
On Wed, Mar 14, 2012 at 02:27:42PM +1100, Peter Ross wrote:
Quoting "Mike Fabre"<mike+luv@fabre.id.au>:
Hi, I have a postfix& dovecot server set up, and I have been given the task of making it put a arbitrary 5-10 minute delay for every email that comes through, whether it be for sent mail or received mail doesn't matter.
Does a configuration as described here work?
Postfix on a dialup machine http://www.postfix.org/STANDARD_CONFIGURATION_README.html#dialup
You could put one more relay in your chain and run the delivery
randomized, instead of in the dialup script.
Apologies if this was discussed before, I probably missed a handful of mails in the thread.
Brilliant, this works perfectly. Thanks, I'll use a cronjob to push all messages through every 5-10 minutes that should work well enough.
I was wondering about suggesting a similar method, using fetchmail on a 5 minute timer.. However, instead I could suggest an improvement to the above method. Start by disabling spontaneous delivery, as above. Write a little Perl script or something to scan the mail queue of pending messages, and capture the id for all messages that have been waiting for at least 5 minutes. Then pass just that list of ids to postqueue -i $id rather than calling -f to flush the lot.