On Mon, Oct 30, 2000 at 10:48:18AM +0000, James Powell wrote:
> If you have a mail server doing program delivery to a few perl scripts a
> lot, what can be done to optimize this?

CentralNic's email automaton used to be a pipe filter for Sendmail, but it
used to break a lot - if there was a lot of simultaneous requests the
loadavg of the server would go through the roof.

I rewrote it as a daemon that polled a POP3 mailbox instead and it's a lot
more reliable. If the script falls over or something gets corrupted, the
mail then gets queued instead of lost, and the server now doesn't even break
a sweat because it's not constantly recompiling the script. Downside is the
memory footprint of a permanently-resident copy of pop3d and the compiled
script.

Reply via email to