The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rate Limit Locahost?

Discussion in 'E-mail Discussions' started by wizzy420, Oct 3, 2008.

  1. wizzy420

    wizzy420 Well-Known Member

    Joined:
    Nov 13, 2007
    Messages:
    125
    Likes Received:
    2
    Trophy Points:
    18
    So I had a user just now send out 750 messages in two minutes.

    Is there anyway to rate limit local users to something reasonable like 50 e-mails/minute?

    W
     
  2. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    You may be able to achieve this via Email tweak settings of WHM.

    WHM >> Server Configuration >> Tweak Settings >> The maximum each domain can send out per hour (0 is unlimited)

    Set the above to something like 3000 (this will allow 3000 email per hour OR 50 email per domain per min). However, this would be true for all domains on your server.

    Also, you may want to just set this to a value something like 200 then allow individual domain to go higher via /var/cpanel/maxemails file. Note on that file: "# If you update this file you must run /scripts/build_maxemails_config"

    Sample entry for /var/cpanel/maxemails

    domain.com=3000
    otherdomain=0 #this means that this particular entry is exempted from the limit.

    Hope this helps.
     
  3. wizzy420

    wizzy420 Well-Known Member

    Joined:
    Nov 13, 2007
    Messages:
    125
    Likes Received:
    2
    Trophy Points:
    18
    The server is already set to 250/hour max - but this doesn't stop them from trying and tying up Exim spitting out "you reached your maximum, sorry"

    W
     
Loading...

Share This Page