Hi, Thank you Marco, I apply the configuration using group and policy with quota limiting 3 sends by 60 s to check if policyd is blocking the sender but it doesn't work
Have you other details about applying quota? the quota-tracking is working fine in DataBase : mysql> select * from quotas_tracking; +----------------+---------------------------+------------+---------+ | QuotasLimitsID | TrackKey | LastUpdate | Counter | +----------------+---------------------------+------------+---------+ | | 3 | SenderIP:172.30.22.83/32 | 1495616331 | 3.4122 | +----------------+---------------------------+------------+---------+ mysql> select * from quotas; +----+----------+-------------------+-----------------------+--------+---------+------+---------+----------+ | ID | PolicyID | Name | Track | Period | Verdict | Data | Comment | Disabled | +----+----------+-------------------+-----------------------+--------+---------+------+---------+----------+ | | 2 | 5 | Quota on all /24s | SenderIP:/32 | 60 | REJECT | NULL | NULL | 0 | +----+----------+-------------------+-----------------------+--------+---------+------+---------+----------+ May 24 SMTP cbpolicyd[6204]: module=Quotas, mode=update, host=172.30.22.83, helo=wafaPC, [email protected], [email protected], reason=quota_update, policy=5, quota=2, limit=3, track=SenderIP: 172.30.22.83/32, counter=MessageCount, quota=3.41/3 (113.7%) May 24 SMTP postfix/qmgr[5965]: E51D917A435: from=<[email protected]>, size=8189, nrcpt=1 (queue active) May 24 SMTP postfix/smtp[6235]: E51D917A435: to=<[email protected]>, relay=ok:25, delay=1.8, delays=1.8/0/0/0.01, dsn=2.0.0, status=sent Thank you, Best regards. Wafa Ben Khoud 2017-05-24 7:44 GMT+01:00 Marco Giunta via Users <[email protected]>: > Hi, > in my policyd configuration I have: > > - a group 'internal_ips' with my whole network : > > 10.10.0.0/16 > > - a group 'unlimited_users' with my 'privileged networks' : > > 10.10.1.0/24 > 10.10.2.0/24 > > - a policy with 'source' field like this: > > %internal_ips,!%unlimited_users > > to match all my network except my 'privileged networks'. > > > Cheers, > Marco > > > > > On 2017-05-23 19:29, Wafa BEN KHOUD via Users wrote: > >> Hello, >> >> Can you please advise how to apply quota for all trafic except some IP >> ranges ? >> >> I am using cluebringer-2.0.12-3.2 with Postfix (OS : SLES) >> >> Thank you, >> >> Wafa Ben Khoud >> Email Administrator >> [email protected] <mailto:[email protected]> >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org >> >> > -- > > _______________________________________________ > Users mailing list > [email protected] > http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org >
_______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
