Error: File size exceeds the 2mb limit (Webmail Roundcube)

Supriya Aher

Member
Jan 18, 2012
9
0
51
cPanel Access Level
Root Administrator
I get this Error: File size exceeds the 2mb limit , when trying to attach an attachment to the mail in roundcube.
Files less than 2Mb get attached easily.

NOTE: more than 2mb files get attached in Horde & Squirrelmail easily.

Any workaround here? Please help.

FYI:
1. message_size_limit has been increased in server main php.ini as well as roundcube php.ini
2. Tried to increase it in /etc/exim.conf even but in vain.
 

pwhjenny

Well-Known Member
Aug 31, 2012
138
0
91
cPanel Access Level
Root Administrator
You've to change the php parameters "upload_max_filesize" & "post_max_size" either in your global php.ini
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Could you confirm if there are any third-party email applications such as "ASSP" or "Mail Scanner" installed on this server? If there are no third-party email applications installed, please let us know which version of Roundcube is installed on your server:

Code:
# cat /var/cpanel/roundcube/version
Thank you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Could you also check in /usr/local/cpanel/3rdparty/etc/php.ini.dist file what is listed for those directives for PHP? If it isn't the size you need, please increase those values in that specific file, then restart cPanel:

Code:
/etc/init.d/cpanel restart
After that, check that /usr/local/cpanel/3rdparty/etc/php.ini shows the new values. If it does, check Roundcube again to see if it is working for the large file sizes you are mentioning for attachments.