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.

Maximum number of emails per hour, why it is in WHM when accounts already overriding this setting?

Discussion in 'E-mail Discussions' started by postcd, Oct 12, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    In WHM / Tweak Settings / Mail i have "The maximum number of emails each domain can send out per hour." set to 200

    but the cpanel account packages has this setting too. So why there is the setting in Tweak Settings when its already overriden by packages? Isnt it confusing?
     
  2. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Re: Maximum number of emails per hour, why it is in WHM when accounts already overriding this settin

    Hello,


    From package we set email limit per hour for particular domain name and via using tweak setting we set limit on server wide.

    So administrator can set different different limit as per package for some domain to restrict limit. e.g for server wide limit set 300 and for some domain want 100 email per hour then using package we can do this easily.


    Thanks
     
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    Re: Maximum number of emails per hour, why it is in WHM when accounts already overriding this settin

    Thx, that is interesting. So yours mentioned 300 mails server wide limit (in Tweak settings) is like each account can send 300 mails per hour even they have set Unlimitted in its cpanel packages? I think its not true as per this topic of mine where i experience cpanel is sending more then this server wide limit... So im confused still what is this server wide limit good for, its cumulative for all accounts?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Re: Maximum number of emails per hour, why it is in WHM when accounts already overriding this settin

    Hello :)

    The values configured in WHM's Tweak Settings interface are the default values. Assigning different values on a per-account or per-domain basis will take precedence over the default values configured in Tweak Settings. This is documented at:

    How to set Email Limits

    Thank you.
     
  5. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Package based limits are not mentioned in that document.

    If I modify the max emails per hour limit in a package, will that update and overwrite an individual limit?

    As a side note, when a package was edited in WHM, this used to trigger an updateof all users limits - does this still happen? I'm only asking this because I would rather replace the files in /var/cpanel/packages via the command line, but I'm concerned this would have no effect.

    Can you please clarify?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, the package limits are the same thing as the individual limits because modifying the package alters the individual value assigned to the account. This should happen automatically when editing a package.

    Thank you.
     
  7. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Might be a good idea to add that to your documentation.

    Is there a script I can run to update individual limits from the packages from the command line? I ask this because quite often we will copy the plans into /var/cpanel/packages. Doing this will not update anything, so it would be nice to run a single command to do so, rather than login to WHM on every server and edit / save all the packages manually.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You would have to use the editpkg WHM API 1 function if you wanted to update the packages from the command line and have it apply to all existing accounts using that package:

    WHM API 1 - editpkg

    cPanel version 11.50 introduces the "/usr/local/cpanel/scripts/modify_packages" script, but it's only intended for updating the theme at this time.

    Thank you.
     
Loading...

Share This Page