last login plugins

Henry hl1723 at yahoo.com.hk
Sat Feb 27 07:29:10 EET 2021


 
Anyone know then last_login plugins do support standard auth variables in var-expand?like %k %a  variables.
I need logging other fields such as port 143 or 993, and tls 1.1 or tls 1.3, client hostname,
any patch for this? thanks

https://doc.dovecot.org/configuration_manual/config_file/config_variables/
    Henry (<hl1723 at yahoo.com.hk>) 在 2021年2月19日星期五 下午12:15:10 [GMT+8] 寫道:  
 
  but I need logging other fields such as port 143 or 993, and tls 1.1 or tls 1.3, client hostname, what should I do it ?
https://doc.dovecot.org/configuration_manual/config_file/config_variables/

    Aki Tuomi (<aki.tuomi at open-xchange.com>) 在 2021年2月18日星期四 下午03:04:10 [GMT+8] 寫道:  
 
 
> 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
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210227/cbc92f95/attachment-0001.html>


More information about the dovecot mailing list