Can you enable `mail_debug=yes` and see what the last_login_key value is when imap session starts? It should show up on logs.
Aki > On 03/03/2021 11:12 Henry <hl1...@yahoo.com.hk> wrote: > > > but when I remove the last_login_key at plugins, error log as below > > > > Error: last_login_dict: Failed to write value: dict-server returned failure: > sql dict set: Invalid/unmapped key: shared/last-login/em...@testing.com > (reply took 0.006 secs (0.000 in dict wait, 0.002 in other ioloops, 0.001 in > locks, async-id reply 0.000 secs ago, started on dict-server 0.000 secs ago, > took 0.000 secs)) > > > > Aki Tuomi (<aki.tu...@open-xchange.com>) 在 2021年3月3日星期三 下午04:23:20 [GMT+8] 寫道: > > > Looks promising, can you try removing "plugin { last_login_key=.. }" from > your configuration file completely and see if it works then? > > Aki > > > > On 03/03/2021 10:17 Henry <hl1...@yahoo.com.hk> wrote: > > > > > > Dear Aki > > > > > > Below for output, it is normal? > > > > [root@cnt8-testing dovecot]# doveadm user em...@testing.com > > > > doveadm user em...@testing.com > > field value > > uid 89 > > gid 89 > > home /home/vpopmail/domains/2/6/x/testing.com/email > > mail maildir:~/Maildir:INDEX=/home/vpopmail/domains/2/6/x/testing.com/email > > quota_rule *:bytes=19922944 > > last_login_key last-login/em...@testing.com/testing.com///0 > > > > > > > > > > > > Aki Tuomi (<aki.tu...@open-xchange.com>) 在 2021年3月2日星期二 下午10:47:39 [GMT+8] > > 寫道: > > > > > > Did you try > > > > doveadm user account > > > > to see that last_login_key appears in output in correct form? > > > > Aki > > > > > > On March 2, 2021 2:44:43 PM UTC, Henry <hl1...@yahoo.com.hk> wrote: > > > Dear Aki, > > > > > > I try it as your recommend but still no luck, same error > > > > > > Error: Failed to expand plugin setting last_login_key = > > > 'last-login/%u/%d/%r/%l/%a': Unknown variable '%a' > > > > > > If I remark #last_login_key = last-login/%u/%d/%r/%l/%a at plugin , error > > > as below > > > > > > Error: last_login_dict: Failed to write value: dict-server returned > > > failure: sql dict set: Invalid/unmapped key: shared/last-login/ > > > > > >