Limit on email attachment


A client of mine asked me to leave the MB limit of the email attachment the same as that of gmail (25MB).

Does anyone know how I can change it? if not through the panel, someone direct me to the file I need to edit, please!

please spin up a google search for: exim4 set email attachment size

will guide you how to do it, we use a default mail stack.

If you’re using webmail, you’ll probably also need to set it in roundcube config. eg
nano /var/lib/roundcube/.user.ini

# Set some defaults
upload_max_filesize = 25M
post_max_size = 25M

If you are also running Nginx + Apache + PHP stacks like me, besides modifying /etc/php/[VERSION#]/apache2/php.ini, add the following lines to /etc/roundcube/

// This will make the sign look like "Maximum allowed file size is 50 MB" 
$config['max_message_size'] = '80M';