Re: last login plugins

2021-03-04 Thread Henry
Dear Aki, For a very busy server ,if using post login script for record last login ,what is the difference between post login script and last login plugins about performance and limitation ? thanks   https://wiki.dovecot.org/PostLoginScripting https://doc.dovecot.org/configuration_manual

Re: last login plugins

2021-03-03 Thread Henry
oh! cannot see the last_login_key at logging Mar  3 17:57:10 cnt8-testing dovecot[650754]: imap(em...@testing.com)<650774>: Debug: Added userdb setting: plugin/quota_rule=*:backend=19922944SMar  3 17:57:10 cnt8-testing dovecot[650754]: imap(em...@testing.com)<650774>: Debug: Effective uid=89

Re: last login plugins

2021-03-03 Thread Aki Tuomi
Can you enable `mail_debug=yes` and see what the last_login_key value is when imap session starts? It should show up on logs. Aki > On 03/03/2021 11:12 Henry wrote: > > > but when I remove the last_login_key at plugins, error log as below > > > > Error: last_login_dict: Failed to write val

Re: last login plugins

2021-03-03 Thread Henry
but when I remove the last_login_key at plugins, error log as below Error: last_login_dict: Failed to write value: dict-server returned failure: sql dict set: Invalid/unmapped key: shared/last-login/em...@testing.com (reply took 0.006 secs (0.000 in dict wait, 0.002 in other ioloops, 0.001 in

Re: last login plugins

2021-03-03 Thread Aki Tuomi
Looks promising, can you try removing "plugin { last_login_key=.. }" from your configuration file completely and see if it works then? Aki > On 03/03/2021 10:17 Henry wrote: > > > Dear Aki > > > Below for output, it is normal? > > [root@cnt8-testing dovecot]# doveadm user em...@testing.com

Re: last login plugins

2021-03-03 Thread Henry
on variables" >> > >> > below the error when I try to using "Login variables" and >"Authentication variables" >> > >> > Error: Failed to expand plugin setting last_login_key = >'last-login/%u/%d/%r/%l/%k': Unknown variable

Re: last login plugins

2021-03-02 Thread Aki Tuomi
>>> > >>> > >>> > Henry () 在 2021年2月27日星期六 下午10:57:27 [GMT+8] >>寫道: >>> > >>> > >>> > I already try using other variables , I found it only support >"Mail >>service user variables", no support &qu

Re: last login plugins

2021-03-02 Thread Henry
ot; >> > >> > below the error when I try to using "Login variables" and >"Authentication variables" >> > >> > Error: Failed to expand plugin setting last_login_key = >'last-login/%u/%d/%r/%l/%k': Unknown variable '%k&#x

Re: last login plugins

2021-02-28 Thread Aki Tuomi
> You can try export the auth variables as userdb variables and use >$variablename. >> > >> > Aki >> > >> > >> > On 27 February 2021 7.29.10 EET, Henry wrote: >> > > >> > >Anyone know then last_login plugins do s

Re: last login plugins

2021-02-28 Thread Henry
%l/%b': Unknown variable '%b' >> > Error: Failed to expand plugin setting last_login_key = >'last-login/%u/%d/%r/%l/%m': Unknown variable '%m' >> > >> > I using centos 8 and dovecot-2.3.13-2.x86_64, >> > >> > >>

Re: last login plugins

2021-02-28 Thread Henry
gins 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.d

Re: last login plugins

2021-02-27 Thread Aki Tuomi
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 > > > > > >http

Re: last login plugins

2021-02-27 Thread Henry
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 () 在 2021年2月19日星期五 下午12:15:10 [GMT+8] 寫道: > > > >but I need logging

Re: last login plugins

2021-02-27 Thread Aki Tuomi
> >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 () 在 2021年2月19日星期五 下午12:15:10 [GMT+8] 寫道:

Re: last login plugins

2021-02-27 Thread Henry
onfiguration_manual/config_file/config_variables/ > Henry () 在 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_fil

Re: last login plugins

2021-02-27 Thread Aki Tuomi
[GMT+8] 寫道: > > >> On 18/02/2021 08:57 Henry 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

Re: last login plugins

2021-02-27 Thread Henry
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 () 在 2021年2月18日星期四 下午03:04:10 >[GMT+8] 寫道:  > > >> On 18/02/2021 08:57 Henry wrote: >> >> >> >>

Re: last login plugins

2021-02-27 Thread Zhang Huangbin
> On Feb 27, 2021, at 7:32 PM, Aki Tuomi wrote: > > last_login supports some of the variables. Dear Aki, Does last_login plugin support PostgreSQL now? Old reports: - https://marc.info/?t=15541153161&r=1&w=2 - https://marc.info/?t=15582632791&r=1&w=2 Zhang Huangbin, founder o

Re: last login plugins

2021-02-26 Thread Henry
午03:04:10 [GMT+8] 寫道: > On 18/02/2021 08:57 Henry 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 fiel

Re: last login plugins

2021-02-18 Thread Henry
ote: > > > > > 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

Re: last login plugins

2021-02-17 Thread Aki Tuomi
> On 18/02/2021 08:57 Henry 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 plu

last login plugins

2021-02-17 Thread Henry
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