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!

Problem: Mailman and WHM's "limit mail sends per hour"

Discussion in 'E-mail Discussion' started by nothsa, Jan 31, 2005.

  1. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    I have a few users who's Mailman lists have grown to almost 1000, and one that's at about 1300, users. I am wanting them to be able to send mailouts to all of these users, but when they do, a whole bunch of them are not sent. I'm assuming that this is because of WHM's limit on the max number of e-mails that can be sent per hour.

    Begrudgingly I've raised the limit to 1000 / hour as I cannot find another solution. Does anyone have an idea of how I can get around this, or gain more control over what mail is counted in the limit and what mail isn't? Maybe a way to make Mailman only send out a certain amount per hour? I'm willing to try anything at this point.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Faldran

    Faldran Well-Known Member

    Joined:
    May 28, 2002
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    316
    I would really like to see that to be added... it has my vote.
     
  4. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    I'll post a link as soon as I figure out bugzilla :cool:
     
  5. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
  6. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    I send 20,000 to 60,000 an hour without any problems, all full verp and full personalization.

    A slower server can do it a little less - (I have dual xeon) but got 10,000 -25,000 on a Celeron 1.1 before I upgraded.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #6 lloyd_tennison, Feb 1, 2005
    Last edited: Feb 1, 2005
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Lloyd, the issue here isn't the volume of email that the server can handle with Mailman - it's about limiting the amount of outgoing email while allowing Mailman to bypass the restriction available under WHM > Tweak Settings in order to prevent spamming etc :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    166
    does exim can limit number of recepient? for example i want to limit 10 recepient in From: Cc: and Bcc:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    168
    Hi Lloyd:

    Can you share what configurations you made to get this performance in your exim.conf, mm_cfg.py, and Defaults.py files? It would be a help to the community.

    Thanks,
    Brian
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. KonokoHost

    KonokoHost Member

    Joined:
    Mar 25, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Chino Hills, CA
    perhaps instead of just mailman, but also exempt a domain specifically from these limitations?

    -randyc
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I was looking into something else and spotted this code in exim.pl:
    Code:
          open(CF,"/var/cpanel/cpanel.config");
          while(<CF>) {
             next if (/^#/);
             s/\n//g;
             my($var,$value) = split(/=/, $_);
             if ($var eq "maxemailsperhour") {
                $maxmails = int($value);
             }
          }
          close(CF);
    
          open(CPM,"/var/cpanel/maxemails");
          while(<CPM>) {
             s/\n//g;
             my($mdomain,$mmax) = split(/=/);
             if ($mdomain eq $domain) {
                $maxmails = int($mmax);
             }
          }
          close(CPM);
    
    The first open is getting the maxemailsperhour that you have set in WHM. The second open is the interesting one. It's opening a file /var/cpanel/maxemails and reading in domain=number pairs. If the domain for the email matches then the number overrides the WHM one.

    So, if you want to exempt a domain from maxemailsperhour, create that file and put in it:
    domain.com=0

    If you just want to set a higher limit for a domain (or different domains), use:

    domain.com=1000
    otherdomain=20

    Not tried it, but the code is there to use it :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Just tested it - works great. Thanks Chirpy.
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Excellent :cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Rooter

    Rooter Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    146
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    Root Administrator
    I must say Chirpy, excellent find indeed! This will finally save my client's legitimate mailing list receiving the notorious "unrouteable mail domain" error hundreds of time unless I increase the server-wide limit. Per-domain limits are awesome!

    Thank you, so very, very much. :D

    Nice touch with the Moderator status too. :cool: I remember seeing you on the ServerMatrix forums; my alias is "Root" on there. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Hi,

    I think it would be even better if cPanel developed it into the UI feature too, but it is certainly handy for just the situation you describe :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. katz_global

    katz_global Well-Known Member
    PartnerNOC

    Joined:
    Oct 18, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Hosting from: Panama, Hong Kong, Singapore, Malays
    Thank you for that trick. You just saved my butt.

    Gordon
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. BuffaloWeb

    BuffaloWeb Well-Known Member

    Joined:
    Jul 1, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    156
    Very cool - the reason I love these forums...

    I just had a client ask if we'd have a problem with him sending out emails to a list he purchased... I decided to add a 100email/hour limit to his domain to make sure he didn't decide to blow my advice off.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #17 BuffaloWeb, Jun 28, 2006
    Last edited: Aug 5, 2007
  18. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    225
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Just discovered this thread because I have run up against the same issue. I want to chime in that "chirpy" aka Jonathan is always a big help in these forums. His services are excellent as wll.

    I would also like to encourage people to vote for this bug on bugzilla. It hasn't gotten much action. I was only vote 11 and this is an old thread.

    http://bugzilla.cpanel.net/show_bug.cgi?id=2020
     
  19. netoec84

    netoec84 Registered

    Joined:
    Oct 17, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    the solution works with php mail function, perl mail function, pop/smtp adn webmail???
     
  20. amex

    amex Member

    Joined:
    Jul 31, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    51
    Guys, sorry I'm new with cpanel.

    Can chirpy or someone else describe in more detail how I implement what chirpy said, I create a file, where? What has to be in that file?

    thanks
     
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