last login plugins

Aki Tuomi aki.tuomi at open-xchange.com
Thu Feb 18 09:04:05 EET 2021


> On 18/02/2021 08:57 Henry <hl1723 at yahoo.com.hk> wrote:
> 
> 
> 
> 
> Anyone kwon the last-login plugins can using Authentication variables such as %m mechanism, %a local_port .
> we want to record this in DB, thanks

You can use this syntax to add further fields for last_login plugin.

 map {
    pattern = shared/last-login/$user/$domain
    table = last_login
    value_field = last_login
    value_type = uint

    fields {
        username = $user
        domain = $domain
       rip = $rip
    }
} 

Aki


More information about the dovecot mailing list