How to change size of emails in Hostgator Reseller Plan

Web Hosting

Resellers especially would like to restrict the size of emails their customers send as some of them send huge emails which consume space and also return with a failure delivery as the recipient server would not accept such large emails.

Unfortunately, Hostgator does not provide any option as the access to root is restricted and access to exim configuration is also restricted. 

For VPS or Dedicated Server Users

If you are a reseller using a VPS hosting or a Dedicated hosting, then you can easily change these settings.

The exim parameter “message_size_limit” defines the size of email attachment. 

This can be set in the exim’s main configuration file /etc/exim.conf (the path for exim.conf on cPanel server). Open the file and add following line in this file if you want to set the size 15MB.

message_size_limit = 15M

Save and exit the file and restart the exim service.

/etc/init.d/exim restart

On cPanel servers, this can be done using the WHM

  • Log into WHM >> Main >> Service Configuration >> Exim Configuration Editor
  • At the bottom, click on “Advanced Editor”
  • Paste the line : message_size_limit = 15M on the first text box
  • Click on save.

Verify the setting by entering the following command

#exim -bP | grep message_size_limit

If its all set fine, the output should be

message_size_limit = 15M