Hi In my lab I have tested auth cache in dovecot like:
- test auth doveadm auth login ala@domain.ltd pass passdb: ala@domain.ltd auth succeeded
- user ala@domain.ltd is in mysql (klater galera)
2)I stop the galley cluster
3)test auth - via cache doveadm auth login ala@domain.ltd pass passdb: ala@domain.ltd auth succeeded
4)flush cache root@msmtp3:~# doveadm auth cache flush 2 cache entries flushed
root@msmtp3:~# doveadm auth cache flush 0 cache entries flushed
- cache is emty
5)test auth doveadm auth login ala@domain.ltd pass passdb: ala@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@domain.ltd pass not auth
I dont have any idea