<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Throttle is not working]]></title>
	<link rel="self" href="https://forum.iredmail.org/feed-atom-topic21161.xml" />
	<updated>2026-06-17T14:06:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.iredmail.org/topic21161-throttle-is-not-working.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92039.html#p92039" />
			<content type="html"><![CDATA[<p>Cannot help more if you insist in your own config.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-06-17T14:06:15Z</updated>
			<id>https://forum.iredmail.org/post92039.html#p92039</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92038.html#p92038" />
			<content type="html"><![CDATA[<p>Dear Zhang,</p><p>smtpd_sender_restrictions =<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:7777 - ***this i deleted already***<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; permit_mynetworks<br />&nbsp; &nbsp; permit_sasl_authenticated<br />&nbsp; &nbsp; #ADDED JUNE 15, 2026 FOR THROTTLE<br />&nbsp; &nbsp; reject_unauth_destination<br />&nbsp; &nbsp; #check_policy_service inet:127.0.0.1:7777<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; check_sender_access pcre:/etc/postfix/sender_access.pcre<br />&nbsp; &nbsp; # To check outgoing messages<br />&nbsp; &nbsp; #Added August 28, 2023<br />&nbsp; &nbsp; # add entry in /etc/postfix/internal_clients_filter - check<br />&nbsp; &nbsp; #check_client_access cidr:/etc/postfix/internal_clients_filter<br />&nbsp; &nbsp; ##<br />&nbsp; &nbsp; reject_non_fqdn_sender<br />&nbsp; &nbsp; reject_unlisted_sender<br />&nbsp; &nbsp; #Added August 28, 2023<br />&nbsp; &nbsp; reject_unknown_sender_domain<br />&nbsp; &nbsp; reject_sender_login_mismatch<br />&nbsp; &nbsp; reject_unknown_reverse_client_hostname<br />&nbsp; &nbsp; reject_unknown_client_hostname</p><p># Recipient restrictions<br />smtpd_recipient_restrictions =<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:7777<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; #orig entry (when disabled and enable the permit_mynetworks and permit_sasl_authenticated below - i am not able to send email)<br />&nbsp; &nbsp; permit_mynetworks<br />&nbsp; &nbsp; permit_sasl_authenticated<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; reject_non_fqdn_recipient<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; reject_unknown_recipient_domain<br />&nbsp; &nbsp; check_recipient_access pcre:/etc/postfix/recipient_access.pcre<br />&nbsp; &nbsp; check_recipient_access pcre:/opt/iredmail/custom/postfix/recipient_access.pcre<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; reject_unlisted_recipient<br />&nbsp; &nbsp; reject_unauth_destination<br />&nbsp; &nbsp; #Added August 28, 2023<br />&nbsp; &nbsp; reject_invalid_hostname<br />&nbsp; &nbsp; #reject_unknown_recipient_domain<br />&nbsp; &nbsp; reject_unauth_pipelining<br />&nbsp; &nbsp; #Added Augst 29, 2023<br />&nbsp; &nbsp; reject_non_fqdn_recipient<br />&nbsp; &nbsp; reject_non_fqdn_sender<br />&nbsp; &nbsp; #reject_unKown_sender_domain<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; #permit_mynetworks&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ***&nbsp; &nbsp;if it is enabled, i cannot sent message***<br />&nbsp; &nbsp; #permit_sasl_authenticated&nbsp; &nbsp; &nbsp; ***if it is enabled, i cannot send message***<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:12340<br />&nbsp; &nbsp; #Added December 1, 2024<br />&nbsp; &nbsp; reject_rbl_client zen.spamhaus.org=127.0.0.[2..11]<br />&nbsp; &nbsp; reject_rbl_client b.barracudacentral.org=127.0.0.2</p><p># END-OF-MESSAGE restrictions<br />smtpd_end_of_data_restrictions =<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:7777</p><br /><p>note: if the permit_mynetworks and permit_sasl_authentication is enabled in the middle part of the configuration located in the &quot;ADDED JUNE 16, 2026&quot;. I am not able to send email</p>]]></content>
			<author>
				<name><![CDATA[jung]]></name>
				<uri>https://forum.iredmail.org/user56489.html</uri>
			</author>
			<updated>2026-06-17T12:30:42Z</updated>
			<id>https://forum.iredmail.org/post92038.html#p92038</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92037.html#p92037" />
			<content type="html"><![CDATA[<p>WARNING: The order of restriction rules matter a lot, you cannot simply add rule 1 / 2 / 3 randomly. Postfix applies the rule one by one, you should understand what the rule is used for and when you should apply it.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-06-17T10:00:03Z</updated>
			<id>https://forum.iredmail.org/post92037.html#p92037</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92036.html#p92036" />
			<content type="html"><![CDATA[<p>1: Your setting is a mess.<br />2: Do not add it in smtpd_sender_restrictions.<br />3: I suggest restore smtpd_recipient_restrictions to the one in my first reply. If your server was not deployed with iRedMail Easy or iRedMail Enterprise Edition, please remove the rules with &quot;/opt/iredmail/custom/...&quot; path.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-06-17T09:59:05Z</updated>
			<id>https://forum.iredmail.org/post92036.html#p92036</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92035.html#p92035" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>You should enable iredapd in smtpd_end_of_data_restrictions and smtpd_recipient_restrictions. For example:<br /></p><div class="codebox"><pre><code>smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
smtpd_recipient_restrictions = reject_unknown_recipient_domain reject_non_fqdn_recipient reject_unlisted_recipient check_recipient_access pcre:/etc/postfix/recipient_access.pcre check_recipient_access pcre:/opt/iredmail/custom/postfix/recipient_access.pcre check_policy_service inet:127.0.0.1:7777 permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_policy_service inet:127.0.0.1:12340</code></pre></div></blockquote></div><br /><p>Dear Zhang,</p><p>- smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777 -&nbsp; is already in main.cf by default.</p><p>i added the below entry under (smtpd_recipient_restrictions)<br />-reject_unlisted_recipient check_recipient_access&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; pcre:/etc/postfix/recipient_access.pcre <br />-check_recipient_access pcre:/opt/iredmail/custom/postfix/recipient_access.pcre<br />-reject_unauth_destination check_policy_service inet:127.0.0.1:12340</p><p>after restarting the iredapd, nginx, mysql and postfix then login and start sending 4 messages in 1 minute and throttle let me sent 4 message within a minute</p><p>please see below /etc/postfix/main.cf<br />smtpd_sender_restrictions =<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:7777<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; permit_mynetworks<br />&nbsp; &nbsp; permit_sasl_authenticated<br />&nbsp; &nbsp; #ADDED JUNE 15, 2026 FOR THROTTLE<br />&nbsp; &nbsp; reject_unauth_destination<br />&nbsp; &nbsp; #check_policy_service inet:127.0.0.1:7777<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; check_sender_access pcre:/etc/postfix/sender_access.pcre<br />&nbsp; &nbsp; # To check outgoing messages<br />&nbsp; &nbsp; #Added August 28, 2023<br />&nbsp; &nbsp; # add entry in /etc/postfix/internal_clients_filter - check<br />&nbsp; &nbsp; #check_client_access cidr:/etc/postfix/internal_clients_filter<br />&nbsp; &nbsp; ##<br />&nbsp; &nbsp; reject_non_fqdn_sender<br />&nbsp; &nbsp; reject_unlisted_sender<br />&nbsp; &nbsp; #Added August 28, 2023<br />&nbsp; &nbsp; reject_unknown_sender_domain<br />&nbsp; &nbsp; reject_sender_login_mismatch<br />&nbsp; &nbsp; reject_unknown_reverse_client_hostname<br />&nbsp; &nbsp; reject_unknown_client_hostname</p><p># Recipient restrictions<br />smtpd_recipient_restrictions =<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:7777<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; #orig entry (when disabled and enable the permit_mynetworks and permit_sasl_authenticated below - i am not able to send email)<br />&nbsp; &nbsp; permit_mynetworks<br />&nbsp; &nbsp; permit_sasl_authenticated<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; reject_non_fqdn_recipient<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; reject_unknown_recipient_domain<br />&nbsp; &nbsp; check_recipient_access pcre:/etc/postfix/recipient_access.pcre<br />&nbsp; &nbsp; check_recipient_access pcre:/opt/iredmail/custom/postfix/recipient_access.pcre<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; reject_unlisted_recipient<br />&nbsp; &nbsp; reject_unauth_destination<br />&nbsp; &nbsp; #Added August 28, 2023<br />&nbsp; &nbsp; reject_invalid_hostname<br />&nbsp; &nbsp; #reject_unknown_recipient_domain<br />&nbsp; &nbsp; reject_unauth_pipelining<br />&nbsp; &nbsp; #Added Augst 29, 2023<br />&nbsp; &nbsp; reject_non_fqdn_recipient<br />&nbsp; &nbsp; reject_non_fqdn_sender<br />&nbsp; &nbsp; #reject_unKown_sender_domain<br />&nbsp; &nbsp; #ADDED JUNE 16, 2026<br />&nbsp; &nbsp; #permit_mynetworks<br />&nbsp; &nbsp; #permit_sasl_authenticated<br />&nbsp; &nbsp; #TILL HERE<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:12340<br />&nbsp; &nbsp; #Added December 1, 2024<br />&nbsp; &nbsp; reject_rbl_client zen.spamhaus.org=127.0.0.[2..11]<br />&nbsp; &nbsp; reject_rbl_client b.barracudacentral.org=127.0.0.2</p><p># END-OF-MESSAGE restrictions<br />smtpd_end_of_data_restrictions =<br />&nbsp; &nbsp; check_policy_service inet:127.0.0.1:7777</p>]]></content>
			<author>
				<name><![CDATA[jung]]></name>
				<uri>https://forum.iredmail.org/user56489.html</uri>
			</author>
			<updated>2026-06-16T12:42:25Z</updated>
			<id>https://forum.iredmail.org/post92035.html#p92035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92034.html#p92034" />
			<content type="html"><![CDATA[<p>You should enable iredapd in smtpd_end_of_data_restrictions and smtpd_recipient_restrictions. For example:<br /></p><div class="codebox"><pre><code>smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
smtpd_recipient_restrictions = reject_unknown_recipient_domain reject_non_fqdn_recipient reject_unlisted_recipient check_recipient_access pcre:/etc/postfix/recipient_access.pcre check_recipient_access pcre:/opt/iredmail/custom/postfix/recipient_access.pcre check_policy_service inet:127.0.0.1:7777 permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_policy_service inet:127.0.0.1:12340</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-06-16T11:10:26Z</updated>
			<id>https://forum.iredmail.org/post92034.html#p92034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Throttle is not working]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92033.html#p92033" />
			<content type="html"><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.4<br />- Deployed with iRedMail Easy or the downloadable installer?<br />- Linux/BSD distribution name and version: ubuntu 22.04<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql<br />- Web server (Apache or Nginx):nginx<br />- Manage mail accounts with iRedAdmin-Pro? free<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>Dear iRedmail community, </p><p>I configured throttle to limit 1 user from sending 3 messages within 1 minute, what i did was :<br />-enabled throttle in iredapd (iredapd version 5.3)<br />-insert into throttle (account, kind, period, priority, max_msgs, msg_size) values (&#039;emailaddress@domain.com&#039;, outbound, 60, 255, 3, 0);<br />-check_policy_service inet:127.0.0.1:7777&nbsp; was added just after smtpd_sender_restrictions and smtpd_recipient_restrictions<br />-restarted mysql, iredapd, nginx and postfix</p><p>throttle did not stop me from sending 5 messages or more within 1 minute.</p><p>your advice is highly appreciated. Thanks</p>]]></content>
			<author>
				<name><![CDATA[jung]]></name>
				<uri>https://forum.iredmail.org/user56489.html</uri>
			</author>
			<updated>2026-06-16T09:48:52Z</updated>
			<id>https://forum.iredmail.org/post92033.html#p92033</id>
		</entry>
</feed>
