1

Topic: How to enable outbound throttling (IredMail Free Version)

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

I have recently installed iredmail (free) 1.6.6 in Ubuntu 22.04, I want to implement outbound throttling, is there any guide/tutorial available through which I can make reference?

so far I have checked the plugins using "grep 'plugins' /opt/iredapd/settings.py" system shows that "throttle" is enabled.

Regards,

Majid

----

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

2

Re: How to enable outbound throttling (IredMail Free Version)

hi there,

you may refer to

/opt/iredapd/plugins/throttle.py

the example is well-documented in the python source.

Cheers

3

Re: How to enable outbound throttling (IredMail Free Version)

Thank you for your response,

i'm trying to apply global limits i.e., (global limit of 500 mails per day and a maximum single mail size of 55MB) using below query,

INSERT INTO throttle (account, kind, priority, period, msg_size, max_msgs, max_quota) VALUES (‘@.’,’outbound’,0,86400,57671680,500,0);

However I'm getting syntax error.

4 (edited by chris.23lo 2023-11-06 18:21:16)

Re: How to enable outbound throttling (IredMail Free Version)

#   *) Full email address: user@domain.com
#   *) Domain name (with a prefixed '@'): @domain.com
#   *) Sub-domain name (with a prefixed '@.'): @.domain.com
#   *) IP address:  192.168.1.1
#   *) IP network:  192.168.1.*
#   *) Catch-all for email address: '@.' (note, the dot is required)
#   *) Catch-all for IP address: '@ip' (applies to per ip address)

hv u select database iredapd?

5

Re: How to enable outbound throttling (IredMail Free Version)

Yes, I have selected the database and inserted it into its relevant table i.e., throttle but I'm still getting queries, I'm not a pro at MySQL and don't know where I'm getting them wrong, I have tried both but same issue.

I have also tried inserting the below with PHPMyAdmin

INSERT INTO throttle (account, kind, priority, period, msg_size, max_msgs, max_quota) VALUES (‘@rhzassociates.com’,’outbound’,0,86400,57671680,500,0);

INSERT INTO throttle (account, kind, priority, period, msg_size, max_msgs, max_quota) VALUES (‘@’,’outbound’,0,86400,57671680,500,0);

6

Re: How to enable outbound throttling (IredMail Free Version)

Have a look to attached image.

7

Re: How to enable outbound throttling (IredMail Free Version)

Update

I have successfully created the entry in the database.