Change Email Attachment size or limit message size

Operating System & Version
centos 7

Usif Nasirov

Active Member
Jun 11, 2016
28
4
3
Baku
cPanel Access Level
Reseller Owner
hello!
I would like to know how can set limit email attachment or message size that domen that get messages over 25MB. I want to set that for one domain/user.
I don't want to do it for everyone on my server only for one user that get message with big size.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,255
313
Houston
Hello,

You can limit the message_size_limit which is by default set to 50MB by going to WHM>>Service Configuration>>Exim Configuration Manager -> Advanced Editor -> Add additional configuration (in the first section) - though this will limit the size for all accounts on the server. The only alternative would be making use of a filter. The thread here might be helpful: limit email size?