quota_timestamp
Default | [None] |
---|---|
Value | string |
Connection string for the Redis service.
This string MUST begin with redis:
.
Appearance
quota-timestamp
) Plugin Note
The quota-timestamp plugin is not distributed as part of the base Dovecot Pro package. This plugin requires separate licensing to use. Contact Open-Xchange Support for further information.
Tracks quota updates in a Redis database.
Whenever a user's quota is updated, an entry is made in a Redis set using "ZADD". This occurs at most once every quota_timestamp_set_interval
interval, and contains the current UNIX timestamp as the score and the username as the value.
The sets are named by taking the UNIX timestamp and dividing by the quota_timestamp_set_interval
value. For example, if the current UNIX timestamp is 1344923124
and the interval is 15 mins
, the set name would be
The plugin updates user's quota a bit lazily within the same process. In the above example, the update would occur maximum every
quota_timestamp
Default | [None] |
---|---|
Value | string |
Connection string for the Redis service.
This string MUST begin with redis:
.
quota_timestamp_prefix
Default | [None] |
---|---|
Value | string |
A prefix to add to the key string when storing in Redis.
quota_timestamp_set_interval
Default | 15min |
---|---|
Value | time |
The interval between Redis updates for a user.
quota_timestamp_value_prefix
Default | [None] |
---|---|
Value | string |
A prefix to add to the value string when storing in Redis.
Note
This plugin requires the quota plugin plugin to be active.
mail_plugins = $mail_plugins quota quota_timestamp
plugin {
quota_timestamp = redis:127.0.0.1:6379
}