How to increase the maximum attachment size in webmail through the WHM panel?

Introduction:

If you need to change the maximum attachment size allowed in webmail, you need to make two specific changes. First, you need to change cPanel's internal PHP settings. This will allow PHP to handle larger file uploads. Next, you need to increase the maximum message size of Exim, to accommodate larger attachments.

Steps to increase the maximum attachment size in webmail through the WHM panel:

Step 1: Start by logging into WHM (Web Host Manager) as the 'root' user. This gives you administrative access to the server.

Step 2: Once logged in, navigate to "Home => Server Configuration => Tweak Settings" in the WHM menu.

Step 3: In the "Tweak Settings" interface, locate and select the "PHP" tab.

Step 4: Within the "PHP" tab, you'll find the option labeled "cPanel PHP max POST size (Minimum: 55; Maximum: 2,047)." By default, it is set to "55 MB." Replace this value by entering your desired maximum attachment size in megabytes (MB) into the provided textbox.

Step 5: Similarly, locate the option "cPanel PHP max upload size (Minimum: 50; Maximum: 2,047)" and modify it accordingly by entering your desired value in MB into the textbox.

Step 6: After making the changes, click on the "Save" button to save the modified PHP settings.

Step 7: Go to "Home => Service Configuration => Exim Configuration Manager" in the WHM menu.

Step 8: Within the "Exim Configuration Manager," select the "Advanced Editor" tab to access the advanced configuration options for Exim.

Step 9: Scroll down the page until you find the "Add additional configuration settings" button.

Step 10: Click on the "Add additional configuration settings" button to create a new empty configuration option.

Step 11: From the dropdown menu of the newly added configuration option, choose "message_size_limit." This option controls the maximum message size for Exim.

Step 12: Enter your desired value for the maximum message size in the textbox provided. This value represents the maximum attachment size that can be sent via email.

Step 13: Once you've entered the desired value, click the "Save" button to save the changes made to the Exim configuration.

By following these steps, you will have successfully adjusted the PHP settings in cPanel and increased the maximum message size in Exim, allowing for larger attachment sizes in Webmail.


Was this answer helpful?

« Back

chat

/* */