>So is there anyway of having the email address of the user being emailed in
>the To: field without using qmail-inject for every message?

Using plain qmail, no, it tries very hard no to mutate messages as they
pass through.

For a similar application I wrote a little perl module called qspam to
send out lots of customized messages.  It passes each message directly
to qmail-remote, and only if that fails passes it to qmail-queue to
retry.  It runs many qmail-remote processes in parallel, and on any
half-decent list rarely has to queue a message so it pumps out mail
about as fast as qmail itself does.

For me it does a pretty decent job of sending out messages to an
18,000 address list I have.  It uses files in /tmp rather than pipes
because that makes the code a lot simpler and it seems to me that
files in a ramdisk /tmp should be about as fast as pipes.

You can find it at http://wx.iecc.com/Qspam.pm



-- 
John R. Levine, IECC, POB 727, Trumansburg NY 14886 +1 607 387 6869
[EMAIL PROTECTED], Village Trustee and Sewer Commissioner, http://iecc.com/johnl, 
Member, Provisional board, Coalition Against Unsolicited Commercial E-mail

Reply via email to