Hi,
I'm trying to determine the last login time for my IMAP users.
There is already a built in plugin that does this without needing to use scripting. You can use it to save a timestamp to a database.
https://doc.dovecot.org/settings/plugin/last-login-plugin/ https://doc.dovecot.org/configuration_manual/lastlogin_plugin/
That's very helpful, thanks. The only trouble I had was that my password had a pound sign in it and apparently it was parsed as a comment:
Jan 18 18:53:28 xavier dovecot[3549186]: dict(3552926): Warning: Configuration file /etc/dovecot/dovecot-dict-sql.conf.ext line 1: Ambiguous '#' character in line, treating it as comment. Add a space before it to remove this warning.
I also wanted to ask if it's possible to add the local server name so I can use one database for all systems?
I suppose there's a chance there could be issues with namespace conflicts, but this would make it much easier for me.
Thanks so much.
Hi,
> I'm trying to determine the last login time for my IMAP
users.
There is already a built in plugin that does this without
needing to use scripting.
You can use it to save a timestamp to a database.
https://doc.dovecot.org/settings/plugin/last-login-
plugin/
https://doc.dovecot.org/configuration_manual/
lastlogin_plugin/
That's very helpful, thanks. The only trouble I had was that my
password had a pound sign in it and apparently it was parsed as a
comment:
Jan 18 18:53:28 xavier dovecot[3549186]: dict(3552926): Warning:
Configuration file /etc/dovecot/dovecot-dict-sql.conf.ext line 1:
Ambiguous '#' character in line, treating it as comment. Add a space
before it to remove this warning.
I also wanted to ask if it's possible to add the local server name so I can use one database for all systems?
I suppose there's a chance there could be issues with namespace conflicts, but this would make it much easier for me.
Thanks so much.