1 (edited by zeep 2019-06-27 18:52:40)

Topic: Throttle not working

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
- Linux/BSD distribution name and version: Ubuntu 16.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.
====

I setup throttling in the throttle table of iredapd database as follows

insert into throttle(account,kind,priority,period,max_msgs) values ('account@mydomain.com','outbound',100,86400,5)

I have the global outbound limit set to 200 with priority set as 0 as well.

I want to limit the outbound emails per user per day to 5. I restarted iredapd and postfix but it still allows the user to send more than 5 emails. Please let me know if something is missing.

----

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

2

Re: Throttle not working

Your insert is not following the example detailed in iredapd throttle plugin manual (missing some values).

https://bitbucket.org/zhb/iredapd/src/d … hrottle.py

This might help as well:

https://forum.iredmail.org/topic10950-i … rsion.html