I suspect it has to do with the sogo tool to expire sessions.
Mailcow has a cronjob for that, which seems to respect SOGO_EXPIRE_SESSION
mailcow/mailcow-dockerizedblob/1994b9895bc92cfc83caf0f25123efbb763f8635/docker-compose.yml#L239
I’m running a probably stupid test: I set manually the expire for sessions in the running Docker container to see if something changes:
$ docker exec -it mailcowdockerized-sogo-mailcow-1 bash
# usr/sbin/sogo-tool expire-sessions 14400
...
2025-05-30 11:41:24.308 sogo-tool[118464:118464] Remove all sessions older than 14400 min
(I’ll report if I see anything different)