Filed under:

Throttling PHPlist to rate-limit mail sending




You should be aware of the Astutium Ltd Email Sending Policies - if not, we suggest you read the article in the knowledgebase and familiarise yourself with what is acceptable, what is not acceptable, and what simply will not work.

Our email policy requires all mailing list users to throttle your mailing lists to keep under 200 outbound emails per hour.

Below are instructions on how you can tweak the provided PHPList available through fantastico to obey the limits - if you do not follow these instructions, you will get banned from delivering email to aol, yahoo, gmail etc.

  1. Locate the config file for your phplist installation.
    If you have installed the script on your domain with URL like http://www.mydomain.co.uk/phplist/ then the physical path will be ...
    /home/(cpanel-username)/public_html/phplist/config/config.php
  2. Download this file to your local machine by FTP
  3. Edit the file in a local *TEXT* editor like notepad (MS-Word is not a text editor)
  4. Locate the section labelled as batch processing
  5. Below that you will see something like ...
    # define the amount of emails you want to send per period. If 0, batch processing # is disabled define("MAILQUEUE_BATCH_SIZE",0);  # define the length of one batch processing period, in seconds (3600 is an hour) define("MAILQUEUE_BATCH_PERIOD",3600); 

    These are the standard/default settings which you need to adjust to keep the mails under 200/hour.
  6. Set the batch_size to 150 ...
    define("MAILQUEUE_BATCH_SIZE",150);
  7. Set the batch_period to per hour (60 mins*60seconds) ...
    define("MAILQUEUE_BATCH_PERIOD",3600);
  8. Save your changes
  9. FTP the new configuration over the top of the original These settings will ensure you phplist keeps to ~150 outbound emails per hour


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
article icon What is my IP address? (Views: 2100)

Language: