Domainthrottlemap Plugin Update

I’ve been using PhpList for around 20 years now, and recently started having issues with getting blocked by Comcast, Yahoo, etc. I used ChatGPT and a sample of my list of around 125k subscribers to modify the old domainthrottlemap plugin by Michiel Dethmers:

https://github.com/michield/phplist-plugin-domainthrottlemap/archive/master.zip

This new version throttles by domain, which means the config.php settings for using domain throttling should be disabled when using this:
//define(‘MAILQUEUE_THROTTLE’,0.35);
define(‘USE_DOMAIN_THROTTLE’,0);
define(‘DOMAIN_BATCH_SIZE’,1);
define(‘DOMAIN_BATCH_PERIOD’,90);
define(‘DOMAIN_AUTO_THROTTLE’, 0);
define(‘MAX_PROCESSQUEUE_TIME’, 0);

and these settings should be enabled:
define(‘MAILQUEUE_AUTOTHROTTLE’, 1);
define(‘MAILQUEUE_BATCH_PERIOD’, 3600);
define(‘MAILQUEUE_BATCH_SIZE’, 3000);

To use this you would first install the original plugin I linked to above, and then go to the /admin/plugins directory and replace the domainthrottlemap.php file with the attached (keep a back up on the original just in case!).

In my case, with a very long record of sending emails from the same server IP, and having an excellent record, this new version has prevented the new issues I started to have, especially with the email providers that I mentioned. In my case the send completes in the same time period as before (~48 hours), but I am no longer seeing emails backing up in the queue due to my hitting delivery rate limitations.

Use at your own risk–it works fine in my testing and improved my recent deliverability issues, but I am not a coder, and ChatGPT 5.1 wrote the code using my directions, and using a breakdown of the actual domain counts for each major email provider on my list.

domainthrottlemap_new.zip (1.6 KB)