If you’re running a VPS or dedicated server with WHM/cPanel, you may encounter limitations when sending large email attachments. By default, Exim, the mail transfer agent used by WHM/cPanel, restricts the maximum email size (including attachments) to 50 MB. For businesses that need to send large files via email, this default setting can be restrictive.
In this tutorial, we’ll walk you through how to check and increase the email attachment size limit in Exim using both the command line and the WHM interface.
Before changing the limit, it's a good idea to verify the current setting.
Use SSH to log into your server as the root user:
#ssh your_username@host_ip_address -p port_number
# exim -bP | grep message_size_limit
You’ll see an output similar to:
Ex. message_size_limit = 50M
This means the current maximum size allowed for an email (including attachments) is 50 MB.
To raise the email size limit without using the command line, you can make the change directly from WHM.
Access your WHM panel using your root credentials.
From the WHM dashboard, navigate to:
Home » Service Configuration » Exim Configuration Manager
Click the "Advanced Editor" tab. This section allows you to define advanced Exim configurations.
Scroll down and click on the "Add additional configuration setting" button.
message_size_limit
In the new configuration field, type or select message_size_limit.
In the value field, input the new size limit. For example, to increase the limit to 80MB, enter: 80M
💡 We recommend keeping the value below 100M to avoid mail delivery issues with certain mail servers.
Scroll to the bottom of the page and click “Save”. WHM will apply the new configuration and restart Exim if necessary.
Keep in mind that Exim doesn’t support setting a different email size limit for individual domains or email addresses. The limit you set applies server-wide.
Whether you're running a hosting business or managing corporate email services, ensuring that your server supports adequate email attachment sizes is essential. By increasing the message_size_limit in WHM, you can accommodate larger files and avoid frustrating email bounces due to size constraints.
COLO BIRD recommends regularly auditing your email server settings to align with your business needs and ensure smooth communication across your infrastructure.