in reply to Slow mass mailer (used for sending out a newsletter, not spam)

Unless I've grossly misread your code, it looks like you're sending off a seperate email message for each and every recipient. It would be vastly more efficient to sort the list of recipients by their domain, and send off one message to each mx with all of the recipients BCC'd instead of sent directly to them.

An even easier alternative is just to pass a single message off to a local copy of sendmail with all of the recipients BCC'd, with the To set to yourself, and let sendmail sort it out. After all, sendmail has been solving this problem for years - why reinvent the wheel?

  • Comment on Re: Slow mass mailer (used for sending out a newsletter, not spam)

Replies are listed 'Best First'.
Re: Re: Slow mass mailer (used for sending out a newsletter, not spam)
by Chady (Priest) on Jul 30, 2002 at 16:24 UTC

    wouldn't sendmail die with 80,000 email shoved directly at its throat?


    He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

    Chady | http://chady.net/
      Yes, which is why I didn't suggest that. I told him to send a either a single message to sendmail with 80k recipients, or one per domain with all of that domains recipients.
Re: Re: Slow mass mailer (used for sending out a newsletter, not spam)
by vxp (Pilgrim) on Jul 30, 2002 at 18:11 UTC
    you wouldnt believe how many domains reject (send them to /dev/null) emails if theres more than such and such amount of people being BCC'ed trust me, i know. i tried. BCC is not an option.