Skip to content

Commit

Permalink
quota-clone: Update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbettini-ox committed Nov 27, 2023
1 parent f31c1ad commit c4b099e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 26 deletions.
2 changes: 1 addition & 1 deletion source/admin_manual/obox/user_delete.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ After end user has ended contract with the service provider providing mailbox se
which wasn't cleaned. These metacaches should become cleaned when disk
space pressure pushes them out.
* Any other dict data that is not deleted automatically while folders or
mails are deleted (e.g. :dovecot_plugin:ref:`quota_clone_dict`,
mails are deleted (e.g. :dovecot_plugin:ref:`quota_clone`,
:dovecot_plugin:ref:`last_login_dict`)

#. After the user's data is deleted the user can be removed from userdb.
Expand Down
27 changes: 17 additions & 10 deletions source/configuration_manual/quota_clone_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,27 @@ Example

.. code-block:: none
mail_plugins = $mail_plugins quota quota_clone
plugin {
quota_clone_dict = redis:host=127.0.0.1:port=6379
}
mail_plugins {
quota = yes
quota_clone = yes
}
quota_clone {
dict_driver = redis
dict_redis_host = 127.0.0.1
dict_redis_port = 6379
dict_redis_password = testpass
}
More complex example using SQL:

.. code-block:: none
dict {
mysql = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
dict {
mysql = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
plugin {
quota_clone_dict = proxy::mysql
}
quota_clone {
dict_driver = proxy
dict_proxy_name = mysql
}
35 changes: 20 additions & 15 deletions source/settings/plugin/quota-clone-plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,33 @@ quota-clone plugin
Settings
========

.. dovecot_plugin:setting:: quota_clone_dict
.. dovecot_plugin:setting_filter:: quota_clone
:filter: quota_clone
:plugin: quota-clone
:values: @string
:setting: dict_driver
:values: @named_filter
:added: 2.4.0,3.0.0

The dictionary to update with quota clone information. This must be set for
the plugin to be active.
Named filter for initializing dictionary used to update with quota clone
information.

See :ref:`dict` for dictionary configuration.

Example:
Options:

.. code-block:: none
``unset``

plugin {
quota_clone_dict = redis:host=127.0.0.1:port=6379
}
Unset quota information before updating. This is needed with some dict
backends that do not support upserting, such as SQL with older SQLite.

Example:

.. dovecot_plugin:setting:: quota_clone_unset
:plugin: quota-clone
:values: @boolean
:added: 2.4.0,3.0.0
.. code-block:: none
Unset quota information before updating. This is needed with some dict backends
that do not support upserting, such as SQL with older SQLite.
quota_clone {
dict_driver = redis
dict_redis_host = 127.0.0.1
dict_redis_port = 6379
dict_redis_password = testpass
unset = yes
}

0 comments on commit c4b099e

Please sign in to comment.