1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit number of emails sent per hour / email throttling

Discussion in 'XenForo Suggestions' started by jacko, Oct 14, 2010.

  1. jacko

    jacko Well-Known Member

    It would be great to have email queue system that makes sure that no more than a specific number of emails per hour can be sent from the forum.
    orange7, maszd, W1zzard and 11 others like this.
  2. jacko

    jacko Well-Known Member

    In vbulletin this was a modification, so perhaps someone is capable of writing such mod for XenForo?
    It was called: Cron Based Mail Queue

    This is very important for smaller forums that run on shared hosting accounts.
  3. JVCode

    JVCode Well-Known Member

    This is very important for bigger boards running on tight server allowances. +1
  4. Brett Peters

    Brett Peters Well-Known Member

    Email throttling should be considered for sending emails and also domain throttling would also be good.

    I dont think that their is a need for me to further explain, if their is please let me know.


    Email throttling

    Email throttling is a must if you have limits set by your host or email provider
    Email throttling is also a must to comply with email providers receiving limits such as hotmail, google etc, You can get a better understanding from email providers and their best practices from their postmaster pages. That being said don't expect to get a quick answer to the maximum number of emails you can send without being considered spam.

    Domain throttling
    This ensures that you do not send more emails than the set amount to a single domain such as hotmail, Gmail etc (*no spam folder for you)
    *other condition apply, i suggest signing up to feedback loops

    Email separation
    Email functions like mailings, registration and alerts should have the option for separate email addresses, Separating email addresses by their function is a best practice and over all ensures better inbox placement. The basic thought behind separating email addresses by their functions is a simple one that I can only explain by saying "don't place all your eggs in one basket"
  5. Blue

    Blue Well-Known Member

    I'm on shared hosting with a 400 per hour limit so I would like this as well.
  6. Digital Doctor

    Digital Doctor Well-Known Member

    If you go over ... could you be flagged as a spammer ?
    For business sites .... this Mailchimp addon could help ?
  7. Blue

    Blue Well-Known Member

    They shut off my email until I contacted them so I would say yes.
  8. Digital Doctor

    Digital Doctor Well-Known Member

    Is that a Suggestion or a Support issue ?
  9. Brett Peters

    Brett Peters Well-Known Member

    Not only should this be included for peoples email sending limits I would like to ad that it is greatly needed for receiving limits, Basically every email provider such as hotmail etc has a limit of emails that you can sent to their domain based on their best practices and to respect their server resources, If a sender sends more than the considered safe amount per time frame you are considered a spammer and your inbox placement suffers.
    DomainArchitect.com and optrex like this.
  10. Brett Peters

    Brett Peters Well-Known Member

    I placed it as a suggestion although i feel that it is a bug (I felt it would come across as arrogance on my part if I posted it as a bug)

    The other suggestion I have made recently was for XF to include an email "receive newsletter checkbox" so that I can collect email addresses and comply with spam policys.

    Another thing that I would like to put as a suggestion is for the ability to have a separate email address for mailings, registration and general notifications, Once again this falls under email best practices and gives over all better inbox placement.
    optrex and Digital Doctor like this.
  11. Digital Doctor

    Digital Doctor Well-Known Member

    Seems logical.
    Might help with the throttling issue as well.
    You wouldn't want registrations throttled. But Mailing should for sure be throttled.
    Notifications, depending on how they are used, probably don't need throttling, unless you have a super popular thread, where everyone is watching ... and has email notifications selected.
    Brett Peters likes this.
  12. Brett Peters

    Brett Peters Well-Known Member

    I do like your train of thought, the only issue's that I can see with not throttling either a single or multiple functions would be the ability to go over a set quota, Lets say for an example that a user has a quota of 100 emails per hour and sets a throttling limit of 90 emails per hour. that users can then keep track of how many non XF emails they send, however if they have ten registrations then their quota is met. I personal thinking is that their would be to many unpredictable variables to ensure that a set quota is met.

    Also if a user is sending mailings and has set a quota for domain names such as hotmail, any un throttled functions could possibly exceed the desired quota and lead to making a spam trap such as hotmail angry.
  13. jacko

    jacko Well-Known Member

    any support for the idea?
  14. Brett Peters

    Brett Peters Well-Known Member

    You have my support for email throttling, If I may also suggest a few things that are related to email throttling.

    Domain shuffling for outgoing emails (Better inbox placement/avoiding spam traps)
    Domain per hour throttling (Better inbox placement/avoiding spam traps)
    Newsletter Opt in process to comply to standards (include a check box)
    Separating email addresses for different functions, Registration - Board Emails - Mailings... (Basically standard email practice)
  15. optrex

    optrex Active Member

    I keep hitting this barrier and it seems like many others do too, please can we get a solution or an implementation.
  16. Numenorean7

    Numenorean7 Member

    I'd like to see this feature added in a future release as well. :)
  17. Digital Doctor

    Digital Doctor Well-Known Member

    Deebs showed a method for email throttling.


    Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet.

    http://www.exim.org/exim-html-current/doc/html/spec_html/index.html (Revision 4.77 - 10 Oct 2011).
  18. optrex

    optrex Active Member

    I dont have exim on my server, since I switched to plesk based control panels. Using mailman at the moment. Would you be able to do a step by step?
  19. Digital Doctor

    Digital Doctor Well-Known Member

    sorry. i dont know much about mailman or exim.
  20. ManuTdi

    ManuTdi Active Member

    Would be very interesting to be able to schedule emails to users, to send 100 emails/ hour. Some of us have problems by the limit have servers and this is a problem.

    I suggest that for the next version this can be done, other systems already bring by default and do not have problems of limitations.

    I have this error by not administrate emails/hour
    An exception occurred: Mysqli prepare error: MySQL server has gone away in /home/gameradi/public_html/gamer/library/Zend/Db/Statement/Mysqli.php on line 77
        Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
        Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
        Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
        Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 825
        Zend_Db_Adapter_Abstract->fetchOne() in XenForo/Error.php at line 50
        XenForo_Error::unexpectedException() in XenForo/Application.php at line 295

Share This Page