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