westi on wordpress

the long forgotten diary of a wordpress developer

Backing off Blog-by-email

On order to protect email servers from a possible denial of service attack from the blog by email feature of WordPress I have committed a change today to ensure that WordPress will not contact the mail server more that once every 5 minutes however often wp-mail.php is accessed.

Message displayed when rejecting request

Message displayed when rejecting request

The 5 minute interval, is itself, configurable using a define in your wp-config.php file it you wish to set a longer or shorter interval.

You would configure this by adding the following to the wp-config.php:


//Set the minimum interval for wp-mail blog-by-email POP3 connections to 10 minutes

define('WP_MAIL_INTERVAL',600);

This feature will be available in WordPress v2.9

Written by Peter Westwood

August 6, 2009 at 8:10 pm

Posted in weekly digest

Tagged with

9 Responses

Subscribe to comments with RSS.

  1. Ooo, handy feature.

    Alex M (Viper007Bond)

    August 6, 2009 at 8:24 pm

  2. That would have been a great addition to the WordPress 2.8.3 update, but will be a excellent addition to WP 2.9

    Great work spotting that possibility!

    Jeremy Winter

    August 6, 2009 at 11:39 pm

  3. Yeah, very nice features – thanks!

    banago

    August 6, 2009 at 11:58 pm

  4. Nice :)

    white_eagle

    August 7, 2009 at 8:47 pm

  5. I think in general this should be moved out into a plugin we maintain.

    Matt

    August 7, 2009 at 10:02 pm

    • I take it you mean blog-by-email in general.

      If so I agree whole heartedly.

      It needs some love and would be much better as a canonical plugin to get more people involved in owning it.

      I believe there are already a number of plugins which provide a better solution as it is.

      Peter Westwood

      August 8, 2009 at 8:33 am

      • Would you be up for getting in touch with a few of the top plugin authors and see if they’d be up for working together with us to create a canonical plugin?

        Matt

        August 8, 2009 at 7:22 pm

      • Indeed I would – I have a look around for what is out there and see what people think is best.

        We did have a talk at WordCamp UK last year from someone who was using one plugin very successfully for mob-blogging.

        Peter Westwood

        August 9, 2009 at 8:45 am

    • I’ve said before, I hope that WordPress.org gets the blog-by-email love that WordPress.com has. Blog-by-email is much better for .com, so I would encourage you (both) to include some of those features whichever direction you take (and I like the canonical plugin suggestion).

      Chris

      August 10, 2009 at 1:54 am


Comments are closed.