How to limit recipient Exim but exclude Mailman ?

Operating System & Version
CENTOS 7.8
cPanel & WHM Version
v90.0.16

Phuoc Le Ba

Registered
Sep 21, 2019
1
0
1
Viet Nam
cPanel Access Level
DataCenter Provider
I want to limit recipient 10 email. I setting Exim --> Advance Mode :

recipients_max = 10
recipients_max_reject = true

but Mailman lists is blocked too:

2020-11-11 10:00:15 too many recipients: message rejected: sender=<[email protected]> H=localhost (xxxxxxxxxxxxx) [127.0.0.1]

I edit /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py

and add:

# Max recipients for each message
SMTP_MAX_RCPTS = 15

# Max messages sent in each SMTP connection
SMTP_MAX_SESSIONS_PER_CONNECTION = 30

but don't working.

Please help me fix it.
 

cPanelAxel

Team Lead Technical Analyst
Staff member
Jan 3, 2019
23
4
78
Houston
cPanel Access Level
Root Administrator
Hello,

There was a previous discussion of this same concern in a previous post:


In summary; there is no integration between Exim and Mailman that would allow for such an exclude rule to function. While it may be possible to write a custom exim rule to achieve this, there is no built-in feature that would allow this.

Thanks!