No, I have removed all per-user or per-domain throttling
Here is the wanted output:
mysql> SELECT * FROM policies;
+----+------------------+----------+-------------------------------------------------+----------+
| ID | Name | Priority | Description | Disabled |
+----+------------------+----------+-------------------------------------------------+----------+
| 1 | Default | 0 | Default System Policy | 0 |
| 2 | Default Outbound | 10 | Default Outbound System Policy | 0 |
| 3 | Default Inbound | 10 | Default Inbound System Policy | 0 |
| 4 | Default Internal | 20 | Default Internal System Policy | 0 |
| 5 | Test | 50 | Test policy | 0 |
| 6 | whitelists | 6 | Whitelisted sender, domain, IP | 0 |
| 7 | blacklists | 8 | Blacklisted sender, domain, IP | 0 |
| 8 | no_greylisting | 20 | Disable grelisting for certain domain and users | 0 |
+----+------------------+----------+-------------------------------------------------+----------+
mysql> SELECT * FROM policy_groups;
+----+-----------------------------+----------+---------+
| ID | Name | Disabled | Comment |
+----+-----------------------------+----------+---------+
| 1 | internal_ips | 0 | NULL |
| 2 | internal_domains | 0 | NULL |
| 3 | whitelists | 0 | NULL |
| 4 | blacklists | 0 | NULL |
| 7 | no_greylisting_for_internal | 0 | NULL |
| 8 | no_greylisting_for_external | 0 | NULL |
+----+-----------------------------+----------+---------+
mysql> SELECT * FROM policy_members;
+----+----------+-----------------------------------+------------------------------+---------+----------+
| ID | PolicyID | Source | Destination | Comment | Disabled |
+----+----------+-----------------------------------+------------------------------+---------+----------+
| 1 | 1 | NULL | NULL | NULL | 0 |
| 2 | 2 | %internal_ips,%internal_domains | !%internal_domains | NULL | 0 |
| 3 | 3 | !%internal_ips,!%internal_domains | %internal_domains | NULL | 0 |
| 4 | 4 | %internal_ips,%internal_domains | %internal_domains | NULL | 0 |
| 5 | 5 | @example.net | NULL | NULL | 0 |
| 6 | 6 | %whitelists | %internal_domains | NULL | 0 |
| 7 | 7 | %blacklists | %internal_domains | NULL | 0 |
| 10 | 8 | !%internal_ips,!%internal_domains | %no_greylisting_for_internal | NULL | 0 |
| 11 | 8 | %no_greylisting_for_external | %internal_domains | NULL | 0 |
+----+----------+-----------------------------------+------------------------------+---------+----------+
mysql> SELECT * FROM quotas;
+----+----------+-------------------+-----------------------+--------+---------+--------------------------------------------+---------+----------+
| ID | PolicyID | Name | Track | Period | Verdict | Data | Comment | Disabled |
+----+----------+-------------------+-----------------------+--------+---------+--------------------------------------------+---------+----------+
| 1 | 5 | Recipient quotas | Recipient:user@domain | 3600 | REJECT | NULL | NULL | 0 |
| 2 | 5 | Quota on all /24s | SenderIP:/24 | 3600 | REJECT | NULL | NULL | 0 |
| 8 | 2 | default_outbound | Sender:user@domain | 60 | reject | Quota exceeded (20 messages in 60 seconds) | NULL | 0 |
+----+----------+-------------------+-----------------------+--------+---------+--------------------------------------------+---------+----------+
mysql> SELECT * FROM quotas_limits;
+----+----------+-----------------------+--------------+---------+----------+
| ID | QuotasID | Type | CounterLimit | Comment | Disabled |
+----+----------+-----------------------+--------------+---------+----------+
| 1 | 1 | MessageCount | 10 | NULL | 0 |
| 2 | 1 | MessageCumulativeSize | 8000 | NULL | 0 |
| 3 | 2 | MessageCount | 12 | NULL | 0 |
| 9 | 8 | MessageCount | 20 | NULL | 0 |
+----+----------+-----------------------+--------------+---------+----------+
I think, this looks all fine, but in the TABLE quotas_tracking is no record with relating QuotasID