1

Topic: How to limit rate sent mail from another server to Iredmail

==== Required information ====
- iRedMail version (check /etc/iredmail-release): newest
- Linux/BSD distribution name and version: Linux
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I want to setup Iredmail as relay server and i need to limit rate sent mail from my server mail to Iredmail (relay)

Server A >>>> Iredmail (relay) >>>> internet

Server A sent 1000 email to Iredmail by trust IP (or authentication)
Iredmail will limit rate 200 email/hour

I know throtte can do it, throtte apply from global to user. But i'm sending mail form another server to Iredmail by relaying , can throtte do it ?

----

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 limit rate sent mail from another server to Iredmail

Yes, throttle can do that, but you have to set it with mysql command line. For example (change the numbers to match your need):

  INSERT INTO throttle (account, kind, priority, period, msg_size, max_msgs, max_quota)
                VALUES ('<IP-of-server-A>',
                        'external',
                        10,
                        360,
                        10240000,
                        100,
                        4096000000);

3

Re: How to limit rate sent mail from another server to Iredmail

Thanks so much. I'll test right now.

4

Re: How to limit rate sent mail from another server to Iredmail

hi @thevan88, does it work for you?

5

Re: How to limit rate sent mail from another server to Iredmail

Thanks Zhang,

It's working perfect smile