Using perl for a high performance mailer daemon ?

2001-06-19 Thread Greg Cope

Dear All

Sorry to drag the tone back down to perl, but, I've a question that is
ripe for the lists collective expertise.

I want to design a mailer for sending large numbers of individual
messages to a large list.  This is for a client whom manages companies
customers CRM lists.  This is more of a prototype / proof of concept,
and as such I thought perl would be the best.

We are already using qmail, but the expense of queuing a message mean
that performance is limited by disc speed and qmail-send the program
that manages the queue and sending outbound emails.

Hence I want to write is a thing that:

a) Looks up and caches MX records in a shared area (shared mem) - easy.

b) Load the message template into shared mem - easy.

c) Gets message from shared mem, and given a list uses qmail-remote to
actual do the smtp conversation (by reading info on different
filehandles), if the initial send fails drop back to an smtp relay that
will queue the message or bounce it somewhere else. Could this done even
quicker with a perl client that does simple checks ?

d) Log to a central file - success for failure.

I just know there must be a way to do this in perl that is quick (rather
than writing it in C).

So whats the way the write this so that its execution speed is the
fastest (given enougth memory and network bandwidth).

Part C is the sticker, i.e. the quickest way to spawn and control alot
of other process that communicate over filehandles.

Clues on a postcard, ta.

Greg

normal vaguely perl service can be resumed





Re: Using perl for a high performance mailer daemon ?

2001-06-19 Thread Leon Brocard

Greg Cope sent the following bits through the ether:

 I want to design a mailer for sending large numbers of individual
 messages to a large list.

You're writing a mailer in Perl. Mailers have been done before. If
you're using a slow one, then look at other ones, such as exim.

Leon
-- 
Leon Brocard.http://www.astray.com/
Iterative Software...http://www.iterative-software.com/

... S met ing's hap ening t my k ybo rd . .



Re: Using perl for a high performance mailer daemon ?

2001-06-19 Thread Jonathan Stowe

On Tue, 19 Jun 2001, Philip Newton wrote:

 Greg Cope wrote:
  Sorry to drag the tone back down to perl

 You could at least have done it on the proper list (you know, the one that
 Jonathan Stowe said he wouldn't be closing down this afternoon).

 CC'ed to the real list.


I fixed the reply address on lists.dircon.co.uk so it shouldnt matter :)

/J\