blueoffice

Registered
Aug 1, 2018
2
1
1
Australia
cPanel Access Level
Website Owner
Is there a way to limit the size of email messages received/sent from a specific individual cPanel account or domain?

I know that I can go into WHM, Exim Configuration Editor: message_size_limit = ***M

however this applies the size limit across all cPanel accounts/domains on the server - I would like to limit just one specific cPanel account or domain, is this possible?

Essentially I need to restrict the size of attachments sent to a particular email address.

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello @blueoffice,

You will need to setup a custom Exim system filter rule that deletes or bounces messages that exceed a defined message_body_size
and also match a specific domain name. We document the process of setting up a custom Exim system filter rule at:

How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation

Here's an Exim document on the available filtering options:

3. Exim filter files

Additionally, there's a feature request I encourage you to vote and add feedback to at:

Email Filtering -ADD Rule -Attachment +Size +Kind

Thank you.