Last Login example

Siarhei Chystsiakou brestows at gmail.com
Wed Oct 18 12:37:34 EEST 2017


My config:

config plugins:

# cat /etc/dovecot/conf.d/90-last_login.conf
> dict {
>     lastlogin = mysql:/etc/dovecot/dict.conf.d/90-lastlogin.conf
> }
> plugin {
>     last_login_dict = proxy::lastlogin
> }


config db connector:

# cat /etc/dovecot/dict.conf.d/90-lastlogin.conf
> connect=host=localhost dbname=mail_user user=userDB password=Pa$$w0rd
> map {
>    pattern = shared/last-login/$user
>    table = mailbox
>    username_field = username
>    value_field = lastlogin
>    value_type = uint
>    fields {
>       username = $user
>    }
> }


config imap and pop3

# cat /etc/dovecot/dict.conf.d/20-imap.conf
> protocol imap {
>   mail_plugins = $mail_plugins quota imap_quota imap_acl last_login
> }
> # cat /etc/dovecot/dict.conf.d/20-pop3.conf
> protocol imap {
>   mail_plugins = $mail_plugins last_login
> }


 In the database in the table with users to add a column.

If you have questions, I'll try to answer

2017-10-14 20:20 GMT+02:00 Jorge Bastos <mysql.jorge at decimal.pt>:

> Howdy,
>
>
>
> Where can i find a configuration example for the last login plugin, that
> fits for latest dovecot version?
>
> Thanks in advanced!
>
>
>
> Jorge,
>


More information about the dovecot mailing list