How to increase attachment size in mail?

Hello,
if we want to attach a file in Webmail, it doesn’t allow more than 2mb. I searched php.ini file, there are 3 php.ini files. I have increased the following paramters to 25mb.
Paramaters
post_max_size
upload_max_filesize

PHP.ini files
/usr/local/hestia/php/lib/php.ini
/etc/php/7.4/cli/php.ini
/etc/php/7.4/fpm/php.ini

The command “exim -bP | grep message_size_limit” shows “message_size_limit = 50M”, but if we send an attachment, it allows maximum 2mb.

Could you please help me solve this problem? Thanks.

Should be updated…

Thank you for your reply. The command “systemctl restart apache2” didn’t affected, so after server reboot it worked. Thank you for your help.

systemctl restart php7.4-fpm should do the trick

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.