Harshad Kamat <harshad(_at_)pspl(_dot_)co(_dot_)in> writes:
Is it possible to configure procmail in such a way that it need not be
invoked every time when a mail is to be delivered ?
From a performance point of view, can I have a procmail process always
running which gets a mail from sendmail and processes it rather than
invoking a new procmail process every time ?
Not at this time. I have alpha-code that makes procmail serve as an
LMTP (rfc 2033) server, which among other things allows for better
performance when delivering the same message to multiple people.
However, even in this case, procmail will fork for each recipient, as it
needs to become the user to do the actual deliver. The total number of
processes will be the same, however a chunk of work is 'factored out' to
a parent process.
To back up a step, do you have actual evidence that the fork/exec of
procmail is a bottleneck on your server?
procmail mailing list