1

Topic: Attach send/receive limit size

==== Required information ====
- iRedMail version (check /etc/iredmail-release): v0.9.5-1
- Linux/BSD distribution name and version: ubuntu 16.04.01
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

hi all!
i want to setup Attach send/receive limit size? Can you teach me, please!
Attach software by web or not, differently?

----

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

2

Re: Attach send/receive limit size

It's implemented with iRedAPD plugin "throttle", restricted by 'msg_size'.  Please read the comment lines in plugin file to understand how it works, and how to set the limit:
https://bitbucket.org/zhb/iredapd/src/3 … ew-default

3

Re: Attach send/receive limit size

ZhangHuangbin wrote:

It's implemented with iRedAPD plugin "throttle", restricted by 'msg_size'.  Please read the comment lines in plugin file to understand how it works, and how to set the limit:
https://bitbucket.org/zhb/iredapd/src/3 … ew-default

hi you!
I want to send and receive 20MB, how should I install? could you guide more detail?

4

Re: Attach send/receive limit size

*) If you have a working iRedMail server, then you must have iRedAPD installed under /opt directory.
*) Make sure plugin "throttle" is enabled in /opt/iredapd/settings.py.
*) Read the comment lines in the plugin file, follow the SQL command to add a "msg_size" limit.

By the way, this is manageable with iRedAdmin-Pro:

http://www.iredmail.org/images/iredadmin/system_throttling.png

5

Re: Attach send/receive limit size

i did mysql:
----+-----------------+----------+----------+--------+----------+----------+------------+
| id | account         | kind     | priority | period | msg_size | max_msgs | max_quota  |
+----+-----------------+----------+----------+--------+----------+----------+------------+
|  1 | user@domain.com | outbound |       10 |    360 | 40960000 |      100 | 4096000000 |
|  3 | user@domain.com | inbound  |       10 |    360 | 40960000 |      100 | 4096000000 |

i see file: /opt/iredapd/settings.py
# Enabled plugins.
plugins = ["reject_null_sender", "reject_sender_login_mismatch", "greylisting", "throttle", "amavisd_wblist", "sql_alias_access_policy"]
why send 15MB still error?
please teach me, thanks

6

Re: Attach send/receive limit size

*) You set msg=40960000, that's 40MB. So sending 15MB is fine.
*) You still need to increase message size limit in Postfix, otherwise although iRedAPD allows the size, Postfix still rejects it.

If it doesn't work, please turn on debug mode in iRedAPD, sending one more testing email to trigger the limit, extract debug log in /var/log/iredapd/iredapd.log and paste here, so that we can help troubleshoot.

Reference: http://www.iredmail.org/docs/debug.iredapd.html

7

Re: Attach send/receive limit size

*) You set msg=40960000, that's 40MB. So sending 15MB is fine.
*) You still need to increase message size limit in Postfix, otherwise although iRedAPD allows the size, Postfix still rejects it.

If it doesn't work, please turn on debug mode in iRedAPD, sending one more testing email to trigger the limit, extract debug log in /var/log/iredapd/iredapd.log and paste here, so that we can help troubleshoot.

Reference: http://www.iredmail.org/docs/debug.iredapd.html

8

Re: Attach send/receive limit size

I know, i config message size limit in Postfix  finished, i  can send.
I want to manage each individual user
example: limit user "abc@domain.com" sent/receive: 10MB.
limit user "xyz@domain.com" sent/receive: 20MB
limit user "ghi@domain.com" sent/receive: 15MB
depending on needs work
thanks!

9

Re: Attach send/receive limit size

I'm confused with your last post. Do you get throttle working or not?