Last Login example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Last Login example

Jorge Bastos
Howdy,

 

Where can i find a configuration example for the last login plugin, that
fits for latest dovecot version?

Thanks in advanced!

 

Jorge,
Reply | Threaded
Open this post in threaded view
|

Re: Last Login example

Aki Tuomi-2


On 14.10.2017 21:20, Jorge Bastos wrote:

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

https://wiki.dovecot.org/Plugins/LastLogin

Is there some problem you are experiencing?

Aki
Reply | Threaded
Open this post in threaded view
|

Re: Last Login example

Siarhei Chystsiakou
In reply to this post by Jorge Bastos
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 <[hidden email]>:

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