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.

Max Emails Per Hour, Please Help

Discussion in 'E-mail Discussions' started by mm1250, Feb 19, 2008.

  1. mm1250

    mm1250 Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    I have the Max Emails per hour set to 125 for my cPanel server. This is to help get rid of spammers. But I do have a site that does newletter mailings and has roughly 500 members. I need to be able to allow them to send upto 550 email per hour but only for that account, not serverwide.

    How can I do this in WHM or commandline or whatever?
     
  2. Kevinfrom

    Kevinfrom Well-Known Member

    Joined:
    Jan 18, 2008
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    You can specify a max emails per hour limit per domain also, just create a file here and change domain.com to the domain you need to set it up for

    /var/cpanel/maxemailsperdomain/domain.com

    Then just add the numeric amount of max emails you want that domain to use in that file.
     
  3. anushkumar

    anushkumar Well-Known Member

    Joined:
    May 14, 2005
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    In addition, Don forget to run /scripts/build_maxemails_config if it is a new version of cpanel.
     
  4. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    What exactly do /scripts/build_maxemails_config?

    Thanx!
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    That's only needed if you update the single master text file /var/cpanel/maxemails. If you update the /var/cpanel/maxemailsperdomain/domain.com file directly you don't need to run it.
     
  6. mambovince

    mambovince Well-Known Member

    Joined:
    Jan 15, 2005
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    London, UK
    None of this will stop spammers that exploit a form script right?

    Does cPanel settings only restrict emails per hour for messages sent via Exim, not those via PHP?

    Thanks,

    - Vince
     
  7. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    That's the whole point. PHP sends mail via exim, so yes, it will stop most form exploits.

    The exception is that sometimes spammers will break into a form script to send spam directly via port 25. The cpanel SMTP tweak, or the CSF firewall, will stop this from happening.

    * the CSF firewall is available from configserver.com and is essential for cpanel, in my opinion ...
     
  8. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    Thanx for the info brianoz!

    About your last post wondering how you have configured CSF to block the emails, i know it have an option to limit the emails, but i do not see any option to limit it per user.

    Thanx!
     
  9. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    What really happens when a user exceeds this limit? The mails keep in queue until hourly restriction is open again? or s imply are them deleted from the queue?
     
  10. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Emails are dropped with a message, and logged. Queuing would make the limit worthless.
     
Loading...

Share This Page