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
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
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
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
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
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
>>> >
>>> >
>>> > 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
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
> 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
%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,
>> >
>> >
>>
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
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
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
> >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] 寫道:
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
[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
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:
>>
>>
>>
>>
> 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
午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
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
> 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
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
22 matches
Mail list logo