Topic: Can't increase mail attachment size in iRedMail
======== Required information ====
- iRedMail version 0.9.6 openldap ed
- Linux/BSD distribution name and version: centos 7.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, everyone
I'm trying to enlarge mail attachment max_size up to 30mb using this article: http://www.iredmail.org/docs/change.mai … .size.html
I changed postfix config:
postconf | egrep 'message_size|mailbox_size'
mailbox_size_limit = 35000000
message_size_limit = 35000000
changed php.ini :
egrep 'memory_limit|upload_max_filesize|post_max_size' /etc/php.ini
memory_limit = 200M;
post_max_size = 40M;
upload_max_filesize = 40M;
and .htaccess file:
egrep 'memory_limit|upload_max_filesize|post_max_size' /var/www/roundcubemail/.htaccess
php_value upload_max_filesize 40M
php_value post_max_size 40M
php_value memory_limit 200M
though i don't use apache:
netstat -ntlp | egrep '80|443'
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1718/nginx: master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1718/nginx: master
i changed nginx config too:
grep client_max_body_size /etc/nginx/nginx.conf
client_max_body_size 40m;
I restarted all related services, dovecott including; i restarted even server and rechecked config files - everything is on its place, but when i try to send e-mail with 29mb-attachment I get error: SMTP Error: Message size exceeds server limit
So where can I change this limit?
kindly ask to point me where i'm wrong or not enough attentive
PS: I've forgotten to say I don't use SoGO, Roudcube only and Outlook (which i failed to tweak yet too, but that's another question)
regards,
Nick
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.