Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to set maximum email attachment size in exim email server  (Read 14854 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
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 10MB.

Code: [Select]
message_size_limit = 10M
Save and exit the file and restart the exim service.

Code: [Select]
/etc/init.d/exim restart
On cPanel servers, this can be done from WHM

Code: [Select]
=> Go to WHM >> Main >> Service Configuration >> Exim Configuration Editor

=> At the bottom, click on "Advanced Editor"

=> put the line : message_size_limit = 10M on the first text box

=> Click on save.

Verify the setting by following command

Code: [Select]
#exim -bP | grep message_size_limit

Output should be

Code: [Select]
message_size_limit = 10M
Note : The default email attachment size for exim email server in the cPanel / WHM is 50MB.