Hi Zhang,
Sorry about the priorities. I modified the "iredapd.throttle" table as below
INSERT INTO throttle (account, kind, priority, period, msg_size, max_msgs, max_quota) VALUES ('adam@cluster.example.com.au','outbound',100,5,0,2,0);
For testing i put a limit of 2 mails per five minute for the user adam@cluster.example.com.au
I see following in iredapd with out debugging on
================================
2016-04-26 21:42:49 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> max_msgs (0/2)
2016-04-26 21:42:49 INFO [127.0.0.1] RCPT, => adam@cluster.example.com.au -> postmaster@example.com.au, DUNNO
2016-04-26 21:42:49 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> msg_size (364/0)
2016-04-26 21:42:49 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> max_quota (0/0)
2016-04-26 21:42:49 INFO [127.0.0.1] END-OF-MESSAGE, => adam@cluster.example.com.au -> postmaster@example.com.au, DUNNO
2016-04-26 21:43:09 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> max_msgs (0/2)
2016-04-26 21:43:09 INFO [127.0.0.1] RCPT, => adam@cluster.example.com.au -> postmaster@example.com.au, DUNNO
2016-04-26 21:43:09 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> msg_size (364/0)
2016-04-26 21:43:09 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> max_quota (0/0)
2016-04-26 21:43:09 INFO [127.0.0.1] END-OF-MESSAGE, => adam@cluster.example.com.au -> postmaster@example.com.au, DUNNO
2016-04-26 21:43:25 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> max_msgs (0/2)
2016-04-26 21:43:25 INFO [127.0.0.1] RCPT, => adam@cluster.example.com.au -> postmaster@example.com.au, DUNNO
2016-04-26 21:43:25 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> msg_size (365/0)
2016-04-26 21:43:25 INFO [127.0.0.1] sender throttle, adam@cluster.example.com.au -> max_quota (0/0)
================================
I have atteched the iredapd log with debug on. I can see that there is following entries
2016-04-26 22:22:02 DEBUG Period of max_msgs expired, reset
I think the tracking is reset on every new mail.
Here is the postfconf output requested.
# postconf smtpd_recipient_restrictions
smtpd_recipient_restrictions = reject_unknown_recipient_domain reject_non_fqdn_recipient reject_unlisted_recipient check_policy_service inet:127.0.0.1:7777 permit_mynetworks permit_sasl_authenticated reject_unauth_destination
# postconf smtpd_end_of_data_restrictions
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
Thanks
Abdul