Hi all,
I have a iredmail installation and I use 2 demons of policyd. For greylisting, whitelist, blacklist, blacklist HELO, etc my config is: /usr/local/etc/postfix-policyd-sf.conf (throtteling is disabled): port 10031 For throtteling: /usr/local/etc/policyd_sender_throttle.conf (all is disabled but throtteling is enabled): port 10032 Almost features works fine, but I have a little problem with throtteling incrementation count. WHEN AN EMAIL ARRIVES policyd.throttle. _count_cur, _count_tot, _rcpt_cur, _rcpt_tot INCREMENTS BY 2 NOT BY 1. diff postfix-policyd-sf.conf policyd_sender_throttle.conf 609c609 < SENDERTHROTTLE=0 --- > SENDERTHROTTLE=1 624c624 < SENDER_THROTTLE_SASL=0 --- > SENDER_THROTTLE_SASL=1 here is a sample from my log file. It seems like the email is looping on localhost. look at "host". 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 Sep 5 18:11:59 mail postfix-policyd-sf: rcpt=12, greylist=new, host=98.136.44.50 (n66.bullet.mail.sp1.yahoo.com), [email protected], [email protected], size=0 Sep 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 <[email protected]>: Recipient address rejected: Policy Rejection- Please try later.; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<n66.bullet.mail.sp1.yahoo.com> Sep 5 18:15:11 mail postfix-policyd-sf: rcpt=13, greylist=abuse, host=98.136.44.50 (n66.bullet.mail.sp1.yahoo.com), [email protected], [email protected], size=0 Sep 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 <[email protected]>: Recipient address rejected: Policy Rejection- Please try later.; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<n66.bullet.mail.sp1.yahoo.com> Sep 5 18:18:41 mail postfix-policyd-sf: rcpt=14, greylist=update, host=98.136.44.50 (n66.bullet.mail.sp1.yahoo.com), [email protected], [email protected], size=0 Sep 5 18:18:41 mail policyd-sender-throttle: DEBUG: fd: 8 policy_array[8][7]:[email protected] Sep 5 18:18:41 mail policyd-sender-throttle: DEBUG: fd: 8 triplet_array[8][1]: [email protected] Sep 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='[email protected]' OR _from='@yahoo.com' ORDER BY _priority DESC LIMIT 1 Sep 5 18:18:41 mail policyd-sender-throttle: rcpt=23, throttle=new(a), host=98.136.44.50, [email protected], [email protected], size=2367/15728640, quota=2367/250000000, count=1/100(1), rcpt=1/3600(1), threshold=0|0|0 Sep 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_lim it) VALUES (1283699921, '[email protected]', 2367, 250000000, 3600, 15728640, 100, 3600) Sep 5 18:18:41 mail postfix/qmgr[4498]: 4E28C4D0A81C: from=<[email protected]>, size=2678, nrcpt=1 (queue active) Sep 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 policy_array[12][7]:[email protected] Sep 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 triplet_array[12][1]: [email protected] Sep 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='[email protected]' OR _from='@yahoo.com' ORDER BY _priority DESC LIMIT 1 Sep 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 row: 0 data: [email protected] (recieved) Sep 5 18:18:44 mail policyd-sender-throttle: DEBUG: fd: 12 row: 0 data: [email protected] (extracted) Sep 5 18:18:44 mail policyd-sender-throttle: rcpt=25, throttle=update(a), host=127.0.0.1, [email protected], [email protected], size=3125/15728640, quota=5492/250000000, count=2/100(2), rcpt=2/3600(2), threshold=0|1|0 Sep 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='[email protected]' Sep 5 18:18:44 mail postfix/qmgr[4498]: 486644D0A82F: from=<[email protected]>, size=3305, nrcpt=1 (queue active) Sep 5 18:18:44 mail amavis[5399]: (05399-12) Passed CLEAN, LOCAL [98.136.44.50] [89.41.134.88] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: NB9JkuPvf+Kl, Hits: -2.009, size: 2676, queued_as: 486644D0A82F, [email protected],[email protected], 2363 ms PLEASE ADVICE! THANKS Alex
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users
