|Think about Loose Coupling
writing a basic bulkmailerby schweini (Friar)
|on Sep 23, 2005 at 02:13 UTC
schweini has asked for the wisdom of the Perl Monks concerning the following question:
so, mailman is finally causing unbearable load on my little server because of a rather active one-way mailinglist with 8000 members that get a 300kb mail each (are loads > 3 normal on a 2GHz processor because of this, by the way? why do mailman's python processes use incredible amounts of RAM even when nobody's using them?)
So i decided to write my own little bulkmailer that simply mails a file that was received via some .forward or .qmail to a list of people registered in a mysql table.
I don't think i'm reinventing too many wheels doing this, since i want very fine-grained information on the progress of any on-going mailing, and need very customizable throttle-control, so that i can tune the script until i can rest assured that there will be no load-spikes no matter what my crazy clients think everybody should know (it's not spam, obviously).
So, my plan up to now is to do the following:
now, i have a couple of doubts:
I'm still looking into using the great Mail::Bulkmail, but it seems almost too powerful, and i can't seem to find a way to have some 'callback' called after each mail so that i can update progress information, handle errors, etc.