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

nothsa

Well-Known Member
Nov 30, 2004
69
0
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.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
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.
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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 :)
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
does exim can limit number of recepient? for example i want to limit 10 recepient in From: Cc: and Bcc:
 

brianc

Well-Known Member
May 16, 2003
191
7
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
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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:
 

Rooter

Well-Known Member
Apr 23, 2003
146
1
243
Houston, Texas, U.S.A.
cPanel Access Level
Root Administrator
chirpy said:
Excellent :cool:
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. ;)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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 :)
 

BuffaloWeb

Well-Known Member
Jul 1, 2003
83
0
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.
 
Last edited:

ramorse

Well-Known Member
Sep 6, 2003
256
5
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
 

netoec84

Registered
Oct 17, 2006
2
0
151
the solution works with php mail function, perl mail function, pop/smtp adn webmail???
 

amex

Member
Jul 31, 2007
20
0
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