Brad Fitzpatrick (bradfitz) wrote in lj_dev,
Brad Fitzpatrick

Synchronous mail sending

A lot of what's slowing down the processing of BML pages is that postfix's sendmail replacement blocks while it sends mail.

I'm thinking I need to either 1) figure out postfix more, 2) switch to qmail or something, or 3) change my send_mail function to instead of piping to sendmail immediately, write the message to a file or in the database and another process running all the time waiting on mail to send... pausing for like 5 minutes or something if there's nothing to do.

Thoughts? Suggestions?

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment