On Mon, 30 Oct 2000, 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?
>
> I'm already planning on replacing sendmail with postfix.
>
> And another idea would be just to have a very lightweight
> process (such as a compiled c program) that just cats the mail
> into a directory and a perl daemon that does its magic on the
> contents of the directory, but this requires more reprogramming
> than I have time or inclination to do right now.
>
> Obviously in the HTTP world we have mod_perl, a mail server
> equivalent of this with could be very nice (with persistent DBI
> connections???).
>
> Another thing that I noticed is that Activestate do a product
> that hooks perl in tightly with sendmail, although I'm not sure
> it is quite what I want.
>
With sendmail 8.11 onwards there is the possibility of having Perl code
intervene at nearly any point in the processing of a message. I think
activestates MxPerl does something with this but there are modules on CPAN
that will work with it as well.
I think you can also replace sendmail.cf with a Perl program.
/J\
--
Jonathan Stowe |
http://www.gellyfish.com | I'm with Grep on this one
http://www.tackleway.co.uk |