• Welcome to Simple Machines Community Forum. Please login or sign up.
October 21, 2021, 07:32:03 PM

News:

SMF 2.0.18 has been released! Please update. Read more.


Maximum emails to send per hour

Started by iksa, March 31, 2013, 07:01:21 AM

Previous topic - Next topic

iksa

I think it would be great to have a setting "Maximum emails to send per hour" in the email queue settings. My server provider limits the number of sent emails per hour and the current setting that limits the number of emails per minute does not fit very well for that. Now I have to divide the limit by 60 in order to ensure that every email gets sent, but that makes the delivery of the whole queue unnecessarily slow because not every minute there is somebody doing a page load in my forum. If the limit was per hour instead of per minute, the delivery time would be optimal even if only a single person visits the forum once an hour.

Ricky.

March 31, 2013, 07:37:32 AM #1 Last Edit: June 16, 2013, 02:18:20 PM by Ricky.
Hmm.. that  seems appropriate, shouldn't be hard .. may be option to send it per hour OR per minute... its already there.. see my next post.

iksa

Why not a text field to specify the number of minutes in addition to the number of emails sent in that specified number of minutes?

GreenHeart89

I'd like to second this request have a setting to limit the maximum emails per hour.   Yesterday morning Bots managed to cause my website to exceed the maximum amount of emails allowed per hour.  112 were sent & i'm limited to only 90.            i'm currently using smf 1.1.18 & would greatly be thankful for this to prevent such problems.

Kindred

1.1.x will never have this.
2.0.x already has a limit/throttle feature.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Ricky.

Throttling per minute is already there SMF and you can actually use per minute to do per are throttling , eg.. you have 100 mails per hour limit then it may go like .. around 1. 66 mails per minute.. so you may add 1 mail per min, which will go 60 mails.

MrPhil

Still, many hosts do have both per-minute and per-hour caps, and even per-day caps. Granted, it's not a terrible hardship to be able to set only per-minute, but a per-hour cap could cause you to exceed the per-minute cap, and likewise for per-day. On the other hand, allowing only a per-minute cap can cause you to exceed the per-hour cap, and likewise for per-day (e.g., 20 per minute, 300 per hour -- you would reach the per-hour cap after only 15 minutes).

Note that some hosts are starting to put fairly low per-hour caps to avoid being labeled as spammers by email handlers. It's most unfortunate.

iksa

Like I mentioned in my original request, if the forum is not very active, a per-minute limit will not be very effective if the host's real limitation is per hour. Like in Ricky's example, if there is only one visitor (page request) in the forum in an hour, only 1.66 mails will be sent during that hour even though 100 mails could be sent (and would be sent, if the limitation could be set per hour instead of per minute). And the per-minute limit cannot be increased because that causes a risk that the per-hour limit is exceeded if there sometimes are more visitors (page requests to be exact) per hour.

jkmont

Hi everyone,

I have same problem, and now my account suspended with my server for being email over limit: 200 per hour and 2000 per day. Where can I set this email action and how, can anybody help this.

Thanks

kat

Admin>Forum Maintenance>Mail (Oddly enough)>Mail settings>Maximum emails to send per minute.

MrPhil

Quote from: iksa on June 26, 2013, 11:14:29 AM
Like I mentioned in my original request, if the forum is not very active, a per-minute limit will not be very effective if the host's real limitation is per hour. Like in Ricky's example, if there is only one visitor (page request) in the forum in an hour, only 1.66 mails will be sent during that hour even though 100 mails could be sent (and would be sent, if the limitation could be set per hour instead of per minute). And the per-minute limit cannot be increased because that causes a risk that the per-hour limit is exceeded if there sometimes are more visitors (page requests to be exact) per hour.

Has anyone looked at using wget or the like, via cron, to kick off an SMF action every minute or two? Just enough to cause the mailer to run if there's anything backed up. It could even be a new lightweight operation to explicitly just tickle the mail queue in batch. If the forum is getting exercised enough that it's checking every minute, presumably the tickle would be ignored.

Advertisement: