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!

Email limits counter

Discussion in 'E-mail Discussion' started by vikelidiskostas, Apr 14, 2018.

  1. vikelidiskostas

    Joined:
    Sep 4, 2016
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello everyone,

    I just updated the "Max hourly emails per domain" in Tweak Settings from unlimited to 150.

    1. Is there any way to check the current value of the counter for a specific domain?

    2. Is there any way to check when this counter will be reseted for a specific domain?

    Preferably from the command line.

    Thanks in advance,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 vikelidiskostas, Apr 14, 2018
    Last edited: Apr 14, 2018
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,880
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    You can use the below command to check the count.
    stat -c %s /var/cpanel/email_send_limits/track/domain.com/$( perl -e 'print join( ".", ( gmtime(time()) )[ 2, 3, 4, 5 ] ) ' )

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,137
    Likes Received:
    222
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    I believe the answer to the second question:

    Is in the format of the file:

    The format of Email Send Limits Files
    Sent emails are tracked in files in the /var/cpanel/email_send_limits/track/ directory. Each file is given a name based on a timestamp of 4 numbers that correspond to items 2, 3, 4, and 5 of the array returned by the Perl gmtime function, i.e., the hour, day of the month, month (starting from 0), and year minus 1900, all in GMT.

    For example:

    Code:
    # ls -l /var/cpanel/email_send_limits/track/domain.com/*
    -rw-rw-rw-. 1 root mail   4 Sep 28 21:45 /var/cpanel/email_send_limits/track/domain.com/0.29.8.117
    -rw-rw-rw-. 1 root mail 107 Sep 28 22:57 /var/cpanel/email_send_limits/track/domain.com/1.29.8.117
    A single byte containing a "1" is added to the file each time during the hour a message is sent. The size of the file thus corresponds with the number of messages that have been sent during that hour. In the case of the files above, 4 messages were sent during the 21st hour, and 107 during the 22nd hour.


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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