1

Topic: How to set max_message_size

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version:  Centos 6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi, I try to set a max mail size in Subscribable Mailing List via API by curl. I try use maxMailSize and max_message_size but without luck. Changes are not visible in iRedAdmin-PRO panel and curl GET. When i set size in panel, then changes are visible via curl GET

I use:
curl -kX PUT -i -b cookie.txt -d "max_message_size=4096000" https://127.0.0.1/iredadmin/api/ml/example@example.com

2

Re: How to set max_message_size

Confirmed it's bug of iRedAdmin-Pro. Patch attached:

diff -r b9d1cb680200 libs/form_utils.py
--- a/libs/form_utils.py        Fri May 10 08:01:39 2019 +0700
+++ b/libs/form_utils.py        Fri May 10 08:41:24 2019 +0700
@@ -770,8 +770,6 @@
             _size = abs(int(form.get('max_message_size', 0)))
             kvs['max_message_size'] = _size
         except:
-            pass
-
-        kvs.pop('max_message_size')
+            kvs.pop('max_message_size')
 
     return kvs

Also, please use parameter name "max_message_size" instead of "maxMailSize".

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee