[Dovecot] Removing specific entry in user/auth cache
Hi,
We have dovecot configured with auth cache. Is there any way to remove
a specific entry (not all) from this cache?
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 868887590 Fax: 868888337
I dont known about Angel, but for me is useful because sometimes i need to deactivate smtp/imap/pop access from accounts, or change their home after storage migration, and removing a specific record i can use a long time cache.
On Wed, Jun 27, 2012 at 9:24 AM, Timo Sirainen <tss@iki.fi> wrote:
On 27.6.2012, at 14.10, Angel L. Mateo wrote:
We have dovecot configured with auth cache. Is there any way to
remove a specific entry (not all) from this cache?
Nope. What do you need it for?
El 27/06/12 14:24, Timo Sirainen escribió:
On 27.6.2012, at 14.10, Angel L. Mateo wrote:
We have dovecot configured with auth cache. Is there any way to remove a specific entry (not all) from this cache?
Nope. What do you need it for?
Because information for users sometimes changes. For example, when I
made the question, home directory's of one user changed and all mails to him was been discarted because of this and I had to flush all cache to solve this.
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337
Angel L. Mateo wrote:
El 27/06/12 14:24, Timo Sirainen escribió:
On 27.6.2012, at 14.10, Angel L. Mateo wrote:
We have dovecot configured with auth cache. Is there any way to remove a specific entry (not all) from this cache? Nope. What do you need it for? Because information for users sometimes changes.
We for example, define the per-user quota via mysql userdb and it needs to be updated in a timely manner, after it has been changed in the database via a web interface.
Since we are using a pre-fetch userdb from mysql (which uses the same mysql database as the passdb), we were required to reduce the auth cache ttl to one minute in order to ensure timely quota updates.
It would be good if there was some mechanism to detect or force such changes without having to reduce caching time to one minute.
Regards Daniel
participants (4)
-
Angel L. Mateo
-
Daniel Parthey
-
Francisco Wagner C. Freire
-
Timo Sirainen