Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

how is this user circumventing email rate limits?

Discussion in 'E-mail Discussion' started by JamesWard, Oct 23, 2012.

  1. JamesWard

    JamesWard Registered

    Oct 23, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I've been working with WHM for about a year now and these forums have been a valuable asset. I finally hit an issue that I couldn't find a write up about so I registered to ask the community their thoughts on this.

    I have a user who is using Exim to send out emails at a rate that exceeds the global emails per domain per hour throttle and I can't figure out how. Here is a basic rundown of my troubleshooting.

    First I wanted to see the rate for this domain:

    #exigrep domainname /var/log/exim_mainlog | grep -i completed | wc -l

    I then checked to see what window of time the logs cover.

    #tail -1 /var/log/exim_mainlog
    2012-10-23 18:44:52

    #head -1 /var/log/exim_mainlog
    2012-10-21 04:02:01

    This is an approximately 62 hour window. Lets see the ratelimit for this server:
    #cat /var/cpanel/maxemailsperhour

    and then we need to check for user specific setting:

    #cat /var/cpanel/users/user | grep -i email | egrep -vi contact
    #If you edit MAX_EMAIL_PER_HOUR or MAX_EMAIL_PER_HOUR-[domain] you must run /usr/local/cpanel/scripts/updateuserdomains

    This user appears able to send about triple the imposed limit. Does anyone have any thoughts on how I can pursue this? I ran /usr/local/cpanel/scripts/updateuserdomains just in case but it doesn't appear to have helped.

    Thanks in advance for anyone who has a link or idea.
    #1 JamesWard, Oct 23, 2012
    Last edited: Oct 23, 2012
  2. SoftDux

    SoftDux Well-Known Member

    May 27, 2006
    Likes Received:
    Trophy Points:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Could he be using a PHP script, which is not limited by the EXIM limit?
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Additionally, checking for the domain and completed doesn't mean the user is sending out. Incoming emails are also logged into /var/log/exim_mainlog and your exigrep didn't check for the domain sending out which is <= for the entry. You'll need to revise your exigrep to account for only emails sent out by the domain. Right now, it's both incoming and outgoing you are getting for the return.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice