1

Topic: Increase email attachment size

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedMail-1.6.0
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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 to all,
following this link https://serverok.in/iredmail-increase-attachment-size, I've tried to increase email attachment size to 20M (20971520) and I added, among other things, in /etc/postfix/main.cf "message_size_limit=20971520" (not "mailbox_size_limit=20971520" - maybe mandatory?).
Now I have a lot of warning in /var/log/maillog.
Here is a portion of warning only

Jun 30 18:05:09 mail postfix/trivial-rewrite[75047]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:09 mail postfix/smtp[75048]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:09 mail postfix/smtp[75049]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:10 mail postfix/bounce[75050]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:10 mail postfix/bounce[75051]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:33 mail postfix/postscreen[75064]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:33 mail postfix/dnsblog[75065]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:33 mail postfix/dnsblog[75066]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:05:39 mail postfix/smtpd[75084]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:06:39 mail postfix/cleanup[75105]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:06:39 mail postfix/smtp[75106]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:06:40 mail postfix/smtpd[75109]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:06:40 mail postfix/pipe[75110]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:08:02 mail postfix/smtpd[75147]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:08:09 mail postfix/smtp[75148]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:08:09 mail postfix/smtp[75151]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640
Jun 30 18:08:10 mail postfix/smtp[75153]: warning: /etc/postfix/main.cf, line 371: overriding earlier entry: message_size_limit=15728640

What mistake did I make?
Thanks in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Increase email attachment size

overriding earlier entry

So you added a config setting instead of checking if it already exists and editing it

Aswell, instead of useing the own documented guide, you rely on external stuff

https://docs.iredmail.org/change.mail.a … .size.html

3

Re: Increase email attachment size

The settings specified in https://serverok.in/iredmail-increase-attachment-size are exactly the same of the official documentation.
I've set 20m in all file required:
/etc/postfix/main.cf
/etc/php/7.4/fpm/php.ini
/opt/www/roundcubemail/config/config.inc.php
/etc/nginx/conf-enabled/client_max_body_size.conf
and I've restart all services.

I don't understand why postfix warn me saying "overriding earlier entry: message_size_limit=15728640"
I don't know where is specified a size limit of15728640.

Someone can help me?
Thanks

4

Re: Increase email attachment size

essecitech wrote:

"overriding earlier entry:

- Isn't the english words clear enough? You have 2 or more same parameters defined in /etc/postfix/main.cf.
- Use our official tutorials please. We don't take responsibility of any other third-party documents.