Limit the number of same domain recipient

madnoob2

Active Member
Apr 18, 2017
35
0
6
Austria
cPanel Access Level
Root Administrator
Hi guys,

how would I go about creating a rule in exim which does not allow sending one e-mail that contains more than, say, 50 e-mails with the @gmail.com domain?
So a user can't send one e-mail to 50 gmail mailboxes at once.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,548
208
343
Chesapeake, VA
cPanel Access Level
DataCenter Provider
I don't know of a way to do that in limiting it to one destination domain, but in the exim settings you can set the max number of overall recipients for a single email.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,426
690
263
Houston
cPanel Access Level
DataCenter Provider
Hi @madnoob2

You can set the maximum message recipients in the exim configuration, as suggested by @GOT though this wouldn't be by domain. If you wanted to develop something that would do this you might want to contact a system administrator. If you don't have one you might find one here: System Administration Services | cPanel Forums

Thanks!
 

madnoob2

Active Member
Apr 18, 2017
35
0
6
Austria
cPanel Access Level
Root Administrator