For some reason, this got posted to the wrong topic back on Jan 31, so here it is again:
I've set the "cleanup" routine to run hourly via cron, but with the expiration set such that records from the DB for the "sendertimelimit" expire if over 4h but are retained in the DB until over 8h: # sender time limit: default: 24 hours # # after how long does all quota last before counters # are reset back to to zero. # # SENDERTIMELIMIT=10m # SENDERTIMELIMIT=1h SENDERTIMELIMIT=4h # # inactive sender database record cleanup default: 31 days # # this allows you to specify how long the throttling # records of inactive senders kept in the database. # this allows to keep the database small. a setting # of 0 keeps all entries. # # # NOTE: Make sure this is _longer_ than the value set for # # SENDER_THROTTLE_AUTOBLACKLIST_EXPIRE if you use it # SENDER_INACTIVE_EXPIRE=31d # SENDER_INACTIVE_EXPIRE=4h SENDER_INACTIVE_EXPIRE=8h However, even though it seems to be doing the right thing, this is what clean reports back in the policyd log file: Jan 31 10:30:01 kilo cleanup: clean up process starting: policyd v1.82 Jan 31 10:30:01 kilo cleanup: connecting to mysql database: X.X.X.X Jan 31 10:30:01 kilo cleanup: connected.. Jan 31 10:30:01 kilo cleanup: expiring throttlesender records older than 0 days (1201771801) Jan 31 10:30:01 kilo cleanup: expired: 3598 records Jan 31 10:30:01 kilo cleanup: expiring throttlesender instances older than 1 hour (1201797001) Jan 31 10:30:02 kilo cleanup: expired: 10426 records Jan 31 11:30:01 kilo cleanup: clean up process starting: policyd v1.82 Jan 31 11:30:01 kilo cleanup: connecting to mysql database: X.X.X.X Jan 31 11:30:01 kilo cleanup: connected.. Jan 31 11:30:01 kilo cleanup: expiring throttlesender records older than 0 days (1201775401) Jan 31 11:30:02 kilo cleanup: expired: 5946 records Jan 31 11:30:02 kilo cleanup: expiring throttlesender instances older than 1 hour (1201800601) Why "0 days" and "1h"? These look like the default, rather than the actual values in the policyd.conf file. Is there a bug in "cleanup" or am I doing something incorrectly? --Tobias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ policyd-users mailing list policyd-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/policyd-users