
Mike Fabre <mike+luv@fabre.id.au> wrote:
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.
Are you sure you have to reinvent what is already available? You could install Postgrey, which (based on reports from friends who use it) can be very effective.
The first thing we thought of was to make all users use procmail, and set up a global procmail rule with a sleep in it, while this will almost certainly work, the users must not be able to run commands on the server, which they can do with a ~/.procmailrc file.
You could add your rules to /etc/procmailrc, however, and ensure that all mail is delivered from there.