<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — policyd]]></title>
		<link>https://forum.iredmail.org/topic1202-policyd.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic1202.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in policyd.]]></description>
		<lastBuildDate>Sun, 05 Sep 2010 15:27:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5437.html#p5437</link>
			<description><![CDATA[<p>here is a sample from my log file. It seems like the email is looping on localhost. look at &quot;host&quot;.<br />i made an ln -s postfix-policyd-sf policyd-sender-throttle for cleaner logs. debug is 2 in /usr/local/etc/policyd_sender_throttle.conf</p><br /><p>Sep&nbsp; 5 18:11:59 mail postfix-policyd-sf: rcpt=12, greylist=new, host=98.136.44.50 (n66.bullet.mail.sp1.yahoo.com), from=mailuser@yahoo.com, to=mailuser@mydomain.com, size=0<br />Sep&nbsp; 5 18:11:59 mail postfix/smtpd[5193]: NOQUEUE: reject: RCPT from n66.bullet.mail.sp1.yahoo.com[98.136.44.50]: 450 4.7.1 &lt;mailuser@mydomain.com&gt;: Recipient address rejected: Policy Rejection- Please try later.; from=&lt;mailuser@yahoo.com&gt; to=&lt;mailuser@mydomain.com&gt; proto=SMTP helo=&lt;n66.bullet.mail.sp1.yahoo.com&gt;<br />Sep&nbsp; 5 18:15:11 mail postfix-policyd-sf: rcpt=13, greylist=abuse, host=98.136.44.50 (n66.bullet.mail.sp1.yahoo.com), from=mailuser@yahoo.com, to=mailuser@mydomain.com, size=0<br />Sep&nbsp; 5 18:15:11 mail postfix/smtpd[5945]: NOQUEUE: reject: RCPT from n66.bullet.mail.sp1.yahoo.com[98.136.44.50]: 450 4.7.1 &lt;mailuser@mydomain.com&gt;: Recipient address rejected: Policy Rejection- Please try later.; from=&lt;mailuser@yahoo.com&gt; to=&lt;mailuser@mydomain.com&gt; proto=SMTP helo=&lt;n66.bullet.mail.sp1.yahoo.com&gt;<br />Sep&nbsp; 5 18:18:41 mail postfix-policyd-sf: rcpt=14, greylist=update, host=98.136.44.50 (n66.bullet.mail.sp1.yahoo.com), from=mailuser@yahoo.com, to=mailuser@mydomain.com, size=0</p><p>Sep&nbsp; 5 18:18:41 mail policyd-sender-throttle: DEBUG: fd: 8 policy_array[8][7]:sender=mailuser@yahoo.com<br />Sep&nbsp; 5 18:18:41 mail policyd-sender-throttle: DEBUG: fd: 8 triplet_array[8][1]: mailuser@yahoo.com<br />Sep&nbsp; 5 18:18:41 mail policyd-sender-throttle: DEBUG: fd: 8 db_charquery(): SELECT _from,_count_max,_count_cur,_date,_quota_cur,_quota_max, _time_limit,_mail_size,_count_tot,_rcpt_max,_rcpt_cur,_rcpt_tot, _log_warn, _log_panic, _abuse_tot FROM throttle WHERE _from=&#039;mailuser@yahoo.com&#039; OR _from=&#039;@yahoo.com&#039; ORDER BY _priority DESC LIMIT 1<br />Sep&nbsp; 5 18:18:41 mail policyd-sender-throttle: rcpt=23, throttle=new(a), host=98.136.44.50, from=mailuser@yahoo.com, to=mailuser@mydomain.com, size=2367/15728640, quota=2367/250000000, count=1/100(1), rcpt=1/3600(1), threshold=0|0|0<br />Sep&nbsp; 5 18:18:41 mail policyd-sender-throttle: DEBUG: fd: 8 db_doquery(): INSERT DELAYED INTO throttle (_date,_from,_quota_cur,_quota_max,_rcpt_max,_mail_size,_count_max,_time_limit) VALUES (1283699921, &#039;mailuser@yahoo.com&#039;, 2367, 250000000, 3600, 15728640, 100, 3600)<br />Sep&nbsp; 5 18:18:41 mail postfix/qmgr[4498]: 4E28C4D0A81C: from=&lt;mailuser@yahoo.com&gt;, size=2678, nrcpt=1 (queue active)<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 policy_array[12][7]:sender=mailuser@yahoo.com<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 triplet_array[12][1]: mailuser@yahoo.com<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 db_charquery(): SELECT _from,_count_max,_count_cur,_date,_quota_cur,_quota_max, _time_limit,_mail_size,_count_tot,_rcpt_max,_rcpt_cur,_rcpt_tot, _log_warn, _log_panic, _abuse_tot FROM throttle WHERE _from=&#039;mailuser@yahoo.com&#039; OR _from=&#039;@yahoo.com&#039; ORDER BY _priority DESC LIMIT 1<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 row: 0 data: mailuser@yahoo.com (recieved)<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 row: 0 data: mailuser@yahoo.com (extracted)<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: rcpt=25, throttle=update(a), host=127.0.0.1, from=mailuser@yahoo.com, to=mailuser@mydomain.com, size=3125/15728640, quota=5492/250000000, count=2/100(2), rcpt=2/3600(2), threshold=0|1|0<br />Sep&nbsp; 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 db_doquery(): UPDATE throttle SET _rcpt_cur=_rcpt_cur+1, _rcpt_tot=_rcpt_tot+1, _quota_cur=_quota_cur+3125, _count_cur=_count_cur+1, _count_tot=_count_tot+1, _abuse_cur=0 WHERE _from=&#039;mailuser@yahoo.com&#039;<br />Sep&nbsp; 5 18:18:44 mail postfix/qmgr[4498]: 486644D0A82F: from=&lt;mailuser@yahoo.com&gt;, size=3305, nrcpt=1 (queue active)<br />Sep&nbsp; 5 18:18:44 mail amavis[5399]: (05399-12) Passed CLEAN, LOCAL [98.136.44.50] [89.41.134.88] &lt;mailuser@yahoo.com&gt; -&gt; &lt;mailuser@mydomain.com&gt;, Message-ID: &lt;55313.54459.qm@web43515.mail.sp1.yahoo.com&gt;, mail_id: NB9JkuPvf+Kl, Hits: -2.009, size: 2676, queued_as: 486644D0A82F, dkim_id=@yahoo.com,mailuser@yahoo.com, 2363 ms</p><p>regards</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Sun, 05 Sep 2010 15:27:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5437.html#p5437</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5421.html#p5421</link>
			<description><![CDATA[<p>i checked all settings, double checked all config files ... nothing <img src="https://forum.iredmail.org/img/smilies/sad.png" width="15" height="15" alt="sad" />, no ideea.</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Fri, 03 Sep 2010 14:19:00 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5421.html#p5421</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5419.html#p5419</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>How about &quot;RECIPIENTTHROTTLE&quot;?</p></blockquote></div><p>mail# cat postfix-policyd-sf.conf | grep RECIPIENTTHROTTLE<br />RECIPIENTTHROTTLE=0<br />mail# cat policyd_sender_throttle.conf | grep RECIPIENTTHROTTLE<br />RECIPIENTTHROTTLE=0<br />mail#</p><p>i don&#039;t want RECIPIENTTHROTTLE activated.</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Fri, 03 Sep 2010 10:02:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5419.html#p5419</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5418.html#p5418</link>
			<description><![CDATA[<p>How about &quot;RECIPIENTTHROTTLE&quot;?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 03 Sep 2010 09:27:23 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5418.html#p5418</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5417.html#p5417</link>
			<description><![CDATA[<p>diff postfix-policyd-sf.conf policyd_sender_throttle.conf</p><p>609c609<br />&lt; SENDERTHROTTLE=0<br />---<br />&gt; SENDERTHROTTLE=1<br />624c624<br />&lt; SENDER_THROTTLE_SASL=0<br />---<br />&gt; SENDER_THROTTLE_SASL=1</p><br /><p>it is already disabled in postfix-policyd-sf.conf <img src="https://forum.iredmail.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Fri, 03 Sep 2010 09:09:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5417.html#p5417</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5415.html#p5415</link>
			<description><![CDATA[<p>Not remove them from postfix setting, but disable throttle related setting in policyd config files, so that there&#039;s only one throttling in 2 policyd instances.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 03 Sep 2010 09:01:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5415.html#p5415</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5411.html#p5411</link>
			<description><![CDATA[<p>i have:<br />smtpd_recipient_restrictions = [...], check_policy_service inet:127.0.0.1:10031 {/usr/local/etc/postfix-policyd-sf.conf}<br />smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10032 {/usr/local/etc/policyd_sender_throttle.conf}</p><br /><p>you are telling me to remove check_policy_service inet:127.0.0.1:10031 from smtpd_recipient_restrictions? how i will make<br />greylisting, whitelist, blacklist, etc? Can i enable those features in policyd_sender_throttle.conf? In an older post you said:</p><p>&quot;Policyd with port 10032 should ONLY provides sender throttle feature.&quot;</p><br /><p>Please advice.<br />Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Fri, 03 Sep 2010 05:54:51 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5411.html#p5411</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5408.html#p5408</link>
			<description><![CDATA[<div class="quotebox"><cite>icedevil wrote:</cite><blockquote><p>BUT why that +2 increment? is this normal? _count_cur incremented by 2 from 1 email?</p></blockquote></div><p>That means this email goes through both port 10031 and 10032. Try to disable it in port 10031.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 02 Sep 2010 17:35:21 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5408.html#p5408</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5407.html#p5407</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Reference: <a href="http://iredmail.googlecode.com/hg/iRedMail/functions/policy_service.sh">http://iredmail.googlecode.com/hg/iRedM … service.sh</a></p><p>Search &#039;POLICYD_SENDER_THROTTLE_CONF&#039; in this file.</p></blockquote></div><p>thanks</p><p># ---- SENDER THROTTLE ----<br />&nbsp; &nbsp; # Disable recipient throttle here, it should be used in postfix <br />&nbsp; &nbsp; # &#039;smtpd_end_of_data_restrictions&#039;.<br />&nbsp; &nbsp; perl -pi -e &#039;s#^(SENDERTHROTTLE=)(.*)#${1}0#&#039; ${POLICYD_CONF} </p><br /><p>it was 0, i have the same value.<br />BUT why that +2 increment? is this normal? _count_cur incremented by 2 from 1 email?</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Thu, 02 Sep 2010 16:57:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5407.html#p5407</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5402.html#p5402</link>
			<description><![CDATA[<p>Reference: <a href="http://iredmail.googlecode.com/hg/iRedMail/functions/policy_service.sh">http://iredmail.googlecode.com/hg/iRedM … service.sh</a></p><p>Search &#039;POLICYD_SENDER_THROTTLE_CONF&#039; in this file.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 02 Sep 2010 16:34:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5402.html#p5402</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5401.html#p5401</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Well done. <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Please tell me what are the original settings for postfix-policyd-sf.conf.<br />I don&#039;t remember if i made the backup before or after editing postfix-policyd-sf.conf.</p><p>mail[/backup-configs/usr-local-etc]# diff postfix-policyd-sf.conf /usr/local/etc/postfix-policyd-sf.conf<br />190c190<br />&lt; WHITELISTSENDER=0<br />---<br />&gt; WHITELISTSENDER=1<br />635c635<br />&lt; SENDER_THROTTLE_HOST=1<br />---<br />&gt; SENDER_THROTTLE_HOST=0<br />771c771<br />&lt; RECIPIENTTHROTTLE=1<br />---<br />&gt; RECIPIENTTHROTTLE=0</p><p>i&#039;m interested about THROTTLE settings.<br />i ask this because it seems like in the throttle._count_tot the values are not incremented by 1, the value is incremented by 2. i send 1 email and the count value is 2, send another count value updates to 4 <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> and this is not ok.</p><p>thanks again Zhang</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Thu, 02 Sep 2010 16:24:02 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5401.html#p5401</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5377.html#p5377</link>
			<description><![CDATA[<p>Well done. <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 31 Aug 2010 20:06:32 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5377.html#p5377</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5376.html#p5376</link>
			<description><![CDATA[<p>i made it already, and i made some test until nou.<br />cd /usr/local/etc/rc.d/<br />cp policyd policyd-sender-throttle<br /># replace postfix_policyd_sf with policyd_sender_throttle<br /># replace /usr/local/etc/postfix-policyd-sf.conf with /usr/local/etc/policyd_sender_throttle.conf</p><p>echo &#039;policyd_sender_throttle_enable=&quot;YES&quot;&#039; &gt;&gt; /etc/rc.conf</p><p>/usr/local/etc/rc.d/policyd restart<br />/usr/local/etc/rc.d/policyd-sender-throttle start</p><br /><p>until now is ok ... please tell me if i made any mistake.</p><br /><p>regards</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Tue, 31 Aug 2010 20:03:37 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5376.html#p5376</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5375.html#p5375</link>
			<description><![CDATA[<p>I will write a short tutorial about &quot;how to enable sender throttling&quot; in wiki size. please be patient.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 31 Aug 2010 19:47:28 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5375.html#p5375</guid>
		</item>
		<item>
			<title><![CDATA[Re: policyd]]></title>
			<link>https://forum.iredmail.org/post5371.html#p5371</link>
			<description><![CDATA[<p>anyone did this on freeBSD?<br />From the tutorials i got this: ENABLE_SENDER_THROTTLE=&quot;YES&quot;<br />{http://www.iredmail.org/forum/topic608-questions-about-policyd-sender-throttle.html}<br />but i think this works just on linux, not on unix systems.</p>]]></description>
			<author><![CDATA[null@example.com (icedevil)]]></author>
			<pubDate>Tue, 31 Aug 2010 19:11:34 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5371.html#p5371</guid>
		</item>
	</channel>
</rss>
