dovecot and auth cache

Maciej Milaszewski maciej.milaszewski at iq.pl
Thu Jul 22 14:27:27 EEST 2021


Hi
In my lab I have tested auth cache in dovecot like:

1) test auth
doveadm auth login ala at domain.ltd pass
passdb: ala at domain.ltd auth succeeded
 
- user ala at domain.ltd is in mysql (klater galera)

2)I stop the galley cluster

3)test auth - via cache
doveadm auth login ala at domain.ltd pass
passdb: ala at domain.ltd auth succeeded

4)flush cache
root at msmtp3:~# doveadm auth cache flush
2 cache entries flushed

root at msmtp3:~# doveadm auth cache flush
0 cache entries flushed

- cache is emty

5)test auth
doveadm auth login ala at domain.ltd pass
passdb: ala at domain.ltd auth succeeded

Why 5 step give - successed ?

doveconf -n
# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 ()
# OS: Linux 4.19.0-12-amd64 x86_64 Debian 10.9
...
auth_cache_negative_ttl = 5 mins
auth_cache_ttl = 5 mins
...


If I restart dovecot works correctly  - I mean:
doveadm auth login ala at domain.ltd pass
not auth

I dont have any idea

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210722/39fc38eb/attachment.sig>


More information about the dovecot mailing list