|
#1
|
||||
|
||||
|
Hello Folks,
I hope all of you must be aware of Hostgator's Mail policy. The policy urges all you phplist/mailing lists users to throttle your mailing lists to keep them under the 500 emails/hour limit. I am presenting specific instructions on how you can tweak PHPList available through fantastico to obey the limit while sending mails preventing legitimate domains like "yahoo.com" from being bouncing back as "unroutable domains" Here we go : 1. Locate the config file for your phplist installation. If you have installed the script on your domain with URL like http://www.domain.com/list/ then the physical path will be : /home/username/public_html/list/config/config.php In FTP you could see /public_html/list/config/config.php 2. Download this file to your local PC. 3. Edit the file in a text editor like notepad or wordpad. 4. Locate the section called as "batch processing". 5. Just below you will see some code like : Code:
# 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);
Here is the code I suggest : Code:
# define the amount of emails you want to send per period. If 0, batch processing
# is disabled
define("MAILQUEUE_BATCH_SIZE",480);
# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);
6. Save the file and ftp it back to its original location. Remember to take a backup of the original file just in case you mess up. Now you should be able to send mails without any bounces and not overloading the mailserver. Any additions to this article are always welcome :-)
__________________
Shashank Wagh Systems Administrator & Level III Support, Hostgator.com LLC. Find us @ http://www.HostGator.com/help/ Last edited by GatorShashank; 03-11-2008 at 04:23 AM. Reason: The limit is now raised to 500 mails per hour. |
|
#2
|
||||
|
||||
|
Cool, so the 200 email per hour limit _does_ apply to the mailing lists as well!
I had assumed, up till now, that the limit did not apply to mailing lists as long as you kept them throttled as per HG's specs. Antonio. |
|
#3
|
|||
|
|||
|
I am doing this and I'm having some problems with it.
When I process the queue it sends the first 175 messages, but then the browser times out in the hour down time. When I log back in, it won't process the rest of the queue, but instead gives me this message: Started Sending in batches of 175 emails Processing has started, 1 message(s) to process. It is safe to click your stop button now, report will be sent by email to ben@hibeams.com Processing message 6 Looking for users Found them: 202 to process Script stage: 5 Finished, Nothing to do 0 messages sent and 175 messages skipped Finished this run Finished, All done When I click the messages tab, I get: Status = inprocess and Action = 175 done. Any ideas on what's going on? |
|
#4
|
|||
|
|||
|
bkoconnor,
did you ever figure out what to do? I have PHPList installed for a client, they have not reached 200 users yet but it's only a matter of time. |
|
#5
|
||||
|
||||
|
Quote:
Quote:
|
|
#6
|
||||
|
||||
|
Wait a minute. Is the limit a batch of 200 AT ONCE or 1 every 6 secs (more than 200 per hour) if sent one at a time, or either?
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
Quote:
Quote:
Last edited by Hoggs74; 07-13-2006 at 01:08 PM. |
|
#9
|
||||
|
||||
|
The reason I say all this sounds contradictory from HG support is, in his 1st reply he says that:
Quote:
Quote:
|
|
#10
|
||||
|
||||
|
I sent a reply to HG support and it reads below:
Quote:
Yet in his next reply he says: " You will need to use the throttle function with phplist to do so. This will send to all 600 just during the corse of a longer peroid of time. You will need a dedicated server to send anymore then 200 per hour. 900+ email lists will need to be done sometime during non peek hours such as 1am - 6am." Please note that in my original message I stated I had already set up the throttling as specified and he replyed that all over 200 would basically be lost. Quote:
Last edited by Hoggs74; 07-13-2006 at 01:56 PM. |
|
#11
|
||||
|
||||
|
Whoa that was long...
PHPlist will send the first 200 right away, then 200 the second hour and 200 in the third hour... 600 emails sent, just spaced out so you don't go over the 200 limit.. It's suggested you make the setting 175 or something lower than 200 in case there are other emails being sent at the same time. |
|
#12
|
|||
|
|||
|
i think you have to set it up where it runs the cron job every 15 minutes or so to process the quene, instead of doing it manually.
|
|
#13
|
|||
|
|||
|
Now with the upcoming PHPSuExec install - won't this method of throttling emails no longer work? I'm referring to this part of the email I received from HostGator:
If your account is using over 25 processes, 100MB or more per PHP thread, or exceeds a 30 second execution time, you will receive an Internal Server Error. How can we get around this if we have to send out emails to a large group of members? |
|
#14
|
|||
|
|||
|
I do not use anymore phplist but an other throttler.
Clearly there are two limits on top one of the other: The sendmail or whatever server process trashing everything over 200 per domain and the throttler eg phplist doing his job. I recommand to set them to 150 or 160 no more for to let some space for some extra regular mails. What's the matter if the server need's one hour more for to accomplish the mailing. The 30 secs do not concern this probleme, it is the time limit of the execution of an individual script, including his includes or external calls, excluding the waiting times eg. waiting for a connection, a DB, ... Some second opinion is welcome. Doing so I do not have any problem and my script manages some sends over hours. |
|
#15
|
|||
|
|||
|
Does the same 200 emails per hour limit still apply if phplist uses a remote smtp server?
|
|
#16
|
||||
|
||||
|
No, only when you are using a local SMTP server. However, if you don't throttle Phplist, you will spike your CPU sending the emails to the remote server and your account will still get suspended.
|
|
#17
|
|||
|
|||
|
I decided to ask support, here is what they said.
Quote:
Quote:
Quote:
|
|
#18
|
|||
|
|||
|
What hostgator needs to tell people is, you cant have a mailing list running on any shared or reseller or semi dedicated server hosting option.
having a limit on number of emails per hour defeats the whole point of having a mailing list. If you can not get a dedicated server, then you would need to use one of the several FREE/ad driven web based mailing lists out there. http://groups.yahoo.com/ http://groups.google.com/ http://lists.topica.com/ http://www.coollist.com/ http://www.bravenet.com/webtools/elist/ these are all free, and have lots of options and do not limit your mailing list emails per hour. I own and moderate over 40 Mailing lists on YahooGroups and Topica, and most of the groups have over 3000+ members. Last edited by admiral; 06-24-2007 at 09:59 AM. |
|
#19
|
|||
|
|||
|
I can't get the cronjob to work at all for phplist. When using fantastico it enters the following in the crontab:
cd '/home/userXXX/public_html/list/admin/' ; php -q index.php -p processqueue > /dev/null ; But that doesn't seem to process the queue. It can't be that I have to have the browser open for the list to finish? As I have more the 2200 members it take some 12 hours to send |
|
#20
|
||||
|
||||
|
I'm another who had major problems with the recommended config.php settings with the browser timing out and having to hit the processqueue link every hour. I'm definitely NOT going to do that.
I found that the following settings allow the browser to reload and begin the processqueue every 60 seconds. I was able to send 4 messages of about 1100 each in 4 days. define("MAILQUEUE_BATCH_SIZE",3); define("MAILQUEUE_BATCH_PERIOD",60); define('MAILQUEUE_THROTTLE',19); So . . . that's 3 emails every 60 seconds, waiting 19 seconds between emails. That computes to about 187 emails per hour, under the 200/hr limit. |
|
#21
|
|||
|
|||
|
I found that after the change to phpsuexec I had to change my crontab line to read:
/usr/local/bin/php -q /home/username/public_html/newsletter/admin/index.php -p processqueue > /dev/null; This uses the older php for processing the queue. |
|
#22
|
||||
|
||||
|
I recently installed phplist. When I imported a 2400+ suscribers list I set it to request for user confirmation rather than marking them all as confirmed. Nearly all the confirmation requests were bounced by HG for exceeding the max number of emails sent per hour. So I tried following "Phplist Throttling :: How To" instructions to control the amount of emails sent per hour and stay within the limit. Then I went to "reconcile users" in phplist to resend
the request for confirmation email, and they bounced again! I have tried changing the batch size and throttle settings so many times I don't even know what they are supposed to be anymore. Now I just have big mess and it's way over my head. Am I not entering the right number in the right place? Or is it just that the throttle only works for mailing list messages and not for confirmation and system messages? Is there a way to control the speed at which confirmation request emails are sent? This is how settings are now: define("MAILQUEUE_BATCH_SIZE",180); define("MAILQUEUE_BATCH_PERIOD",3600); define('MAILQUEUE_THROTTLE',0); define('MAILQUEUE_AUTOTHROTTLE',1); define('USE_DOMAIN_THROTTLE',0); define('DOMAIN_BATCH_SIZE',1); define('DOMAIN_BATCH_PERIOD',60); I'd appreciate a "for dummies" reply, please! |
|
#23
|
||||
|
||||
|
Quote:
![]() define('MAILQUEUE_THROTTLE',1); Here's how to set it to send 180 email per hour: define("MAILQUEUE_BATCH_SIZE",180); define("MAILQUEUE_BATCH_PERIOD",3600); define('MAILQUEUE_THROTTLE',20); <<the line just above will add 20 second between each email just to make sure you will not overload. so 1 email is sent every 20 seconds. IF we do the math, 3600 seconds(1 hour) divided by 20 = 180>> define('MAILQUEUE_AUTOTHROTTLE',0); We don't need autothrottle since we did our own math with the 180, 3600 and 20. And wait at least an hour since you can only send 200 email per hour or they will all bounce again. Best Regards
__________________
█ Jean Boudreau - SysAdmin WannaBe @ Host And Mail █ Shared, Reseller cPanel Hosting and Backup Solutions █ http://www.hostnmail.com/ Last edited by chaloupe; 10-04-2007 at 02:01 AM. Reason: additional info |
|
#24
|
||||
|
||||
|
I made the changes suggested by chaloupe, then had PHPList send the confirmation requests again, but it's not throttling them. I'm still getting hundreds of bounce emails from HG for exceeding max emails per hour.
Seems throttling in PHPList does not apply to system messages, only list messages. Last edited by psican; 10-09-2007 at 01:18 PM. |
|
#25
|
|||
|
|||
|
Wow... so for the past year I have been sending messages to our 700+ members only to find out only a few got through. My questions is, if this is such a monumental problem for HostGator, why don't they automatically throttle ALL outgoing mail to resolve this issue instead of letting us find out after our business is half-ruined?
I have no idea how to do any of the above Fantastico changes, and it sounds like it is not reliable at all. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHPlist does not install correctly | NetKontent | Pre-Sales Questions | 9 | 08-28-2007 01:49 PM |
| Fast and Helpful Support Appreciated - PHPList | BeenToDixie | Customer Reviews | 0 | 06-23-2004 09:18 AM |