File tree Expand file tree Collapse file tree 2 files changed +36
-23
lines changed
Expand file tree Collapse file tree 2 files changed +36
-23
lines changed Original file line number Diff line number Diff line change @@ -2385,17 +2385,20 @@ plugin {
23852385
23862386 /* last-login plugin */
23872387
2388- last_login_dict : {
2388+ last_login : {
23892389 plugin : 'last-login' ,
2390- values : setting_types . STRING ,
2390+ values : setting_types . NAMED_FILTER ,
23912391 text : `
2392- The dictionary where last login information is updated .
2392+ Named filter for initializing dictionary used to store last login information.
23932393
23942394Example:
23952395
2396- \`\`\`
2397- plugin {
2398- last_login_dict = redis:host=127.0.0.1:port=6379
2396+ \`\`\`[dovecot.conf]
2397+ dict_redis_host = 127.0.0.1
2398+ dict_redis_port = 6379
2399+ last_login {
2400+ dict redis {
2401+ }
23992402}
24002403\`\`\``
24012404 } ,
@@ -2405,8 +2408,7 @@ plugin {
24052408 plugin : 'last-login' ,
24062409 values : setting_types . STRING ,
24072410 text : `
2408- The key that is updated in the dictionary (defined by
2409- [[setting,last_login_dict]]) with the last login information.`
2411+ The key that is updated in the dictionary with the last login information.`
24102412 } ,
24112413
24122414 last_login_precision : {
Original file line number Diff line number Diff line change @@ -39,9 +39,12 @@ protocol pop3 {
3939 }
4040}
4141
42- plugin {
43- last_login_dict = redis:host=127.0.0.1:port=6379
44- #last_login_key = last-login/%u # default
42+ dict_redis_host = 127.0.0.1
43+ dict_redis_port = 6379
44+ last_login {
45+ dict redis {
46+ }
47+ #key = last-login/%u # default
4548}
4649```
4750
@@ -62,10 +65,12 @@ This includes the service and remote IP address as well.
6265::: code-group
6366
6467``` [dovecot.conf]
65- plugin {
66- last_login_dict = proxy::sql
67- last_login_key = last-login/%{service}/%{user}/%{remote_ip}
68- last_login_precision = ms
68+ last_login {
69+ dict proxy {
70+ name = sql
71+ }
72+ key = last-login/%{service}/%{user}/%{remote_ip}
73+ precision = ms
6974}
7075
7176dict_server {
@@ -115,10 +120,13 @@ This includes the service and remote IP address as well.
115120::: code-group
116121
117122``` [dovecot.conf]
118- plugin {
119- last_login_dict = proxy:dict-async:cassandra
120- last_login_key = last-login/%{service}/%{user}/%{remote_ip}
121- last_login_precision = ms
123+ last_login {
124+ dict proxy {
125+ name = cassandra
126+ socket_path = dict-async
127+ }
128+ key = last-login/%{service}/%{user}/%{remote_ip}
129+ precision = ms
122130}
123131
124132dict_server {
@@ -171,10 +179,13 @@ separate fields to the main users table.
171179::: code-group
172180
173181``` [dovecot.conf]
174- plugin {
175- last_login_dict = proxy:dict-async:cassandra
176- last_login_key = last-login/%{service}/%{user}/%{remote_ip}
177- last_login_precision = ms
182+ last_login {
183+ dict proxy {
184+ name = cassandra
185+ socket_path = dict-async
186+ }
187+ key = last-login/%{service}/%{user}/%{remote_ip}
188+ precision = ms
178189}
179190
180191dict_server {
You can’t perform that action at this time.
0 commit comments