Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have multiple programs that send email on a shared server with a relatively low email limit. These programs are completely separate and can each individually throttle mail but cannot do so in relation to the others. Currently, whenever the hourly limit is reached, our host just starts dropping the emails. They say they have no way to change this behavior and basically suggested that I ask around.

Does anyone know of any programs that will throttle email server wide on a shared server?

share|improve this question
    
Is this a shared server as in you control a private portion, and other people you don't know have other spaces? –  liamzebedee Jul 9 '12 at 9:42
    
This is a shared hosting server. So yes. –  fdsa Jul 10 '12 at 3:06
    
"They say they have no way to change this behavior", read: they do not want to change this behaviour - which is understandable on a shared server. "...throttle email server wide on a shared server" - to influence email server-wide on a shared server is going to affect other user accounts on that server which should not be permitted at a user account level. In my experience email limits on a shared server have always been at the domain level? –  w3d Jul 10 '12 at 11:45
    
Yes. I don't care about what other people are doing. I would just like it so that when my various programs hit the limit, they are simply held in a queue until the email limit is lifted. Currently, they are dropped without any notification. –  fdsa Jul 10 '12 at 17:37
add comment

2 Answers

I'm fairly certain it is not possible to throttle emails across many different scripts/programs that you have described on a shared server. You will likely not have access to any shell on the server or the ability to install any additional software and therefore this is not an option.

Another option is if for example you have a limit of 500 emails per hour and you have two scripts requiring emails, set each individual limit to 250 so as to not go over the limit. This will make sending considerably slower but will ensure that no emails are dropped. (the numbers are all just for the example)

The best option however is to ask your host if they can change the email limit, change your plan or move to a VPS or dedicated server where this isn't a restriction.

share|improve this answer
add comment

This guy has come up with an interesting solution to this problem, he 's chaining to instances of postfix. http://www.void.gr/kargig/blog/2011/12/19/rate-limit-outgoing-emails-from-php-web-applications-using-postfix-and-policyd/

In your case, I 'm not sure if it can be done because it depends on the type of shared server. If you have command line access and can set up postfix on high ports, it should work fine. You could also shop around for servers where you have root access (vps) - they are cheap enough.

Your problem could get solved horizontally as well, since your outgoing mail needs seem to be relatively bounded. You could get a few cheap shared server accounts and have each of your programs use a different mail server.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.