2

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?

4
  • Is this a shared server as in you control a private portion, and other people you don't know have other spaces? Jul 9, 2012 at 9:42
  • This is a shared hosting server. So yes.
    – fdsa
    Jul 10, 2012 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?
    – MrWhite
    Jul 10, 2012 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, 2012 at 17:37

2 Answers 2

1

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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