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.

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

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

  1. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  3. Faldran

    Faldran Well-Known Member

    Joined:
    May 28, 2002
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    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:
    6
    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:
    6
  6. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
    #6 lloyd_tennison, Feb 1, 2005
    Last edited: Feb 1, 2005
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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 :)
     
  8. markhard

    markhard Well-Known Member

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

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  10. KonokoHost

    KonokoHost Member

    Joined:
    Mar 25, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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:
     
  12. sawbuck

    sawbuck Well-Known Member

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

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Excellent :cool:
     
  14. Rooter

    Rooter Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    146
    Likes Received:
    1
    Trophy Points:
    18
    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. ;)
     
  15. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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 :)
     
  16. katz_global

    katz_global Well-Known Member
    PartnerNOC

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

    Gordon
     
  17. BuffaloWeb

    BuffaloWeb Well-Known Member

    Joined:
    Jul 1, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
    #17 BuffaloWeb, Jun 28, 2006
    Last edited: Aug 5, 2007
  18. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    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:
    1
    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:
    1
    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