Re: last login plugins
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 () 在 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 () 在 2021年2月18日星期四 下午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 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
Re: sieve_after seems to not bring any effect to life in dovecot 2.3.13 dovecot-pigeonhole-0.5.13
On 16/02/2021 14:19, Bug Report wrote: It used to start executing a step titled "Opening script 2 of 2 from `/usr/local/etc/dovecot/sieve_after/movespam.sieve'". At this moment software seems to behave differently after server was updated. Now this step is not performed after attempt on sending e-mail in the 1st step. Here are (redacted) logs: Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Pigeonhole version 0.5.13 (cdd19fe3) initializing Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: include: sieve_global is not set; it is currently not possible to include `:global' scripts. Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: Using active Sieve script path: /usr/home/myuser/mail/mymail@mydomain/.dovecot.sieve Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: Using script storage path: /usr/home/myuser/mail/mymail@mydomain/sieve Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: Relative path to sieve storage in active link: sieve/ Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: Using Sieve script path: /usr/home/myuser/mail/mymail@mydomain/.dovecot.sieve Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: script `managesieve': Opened script `managesieve' from `/usr/home/myuser/mail/mymail@mydomain/.dovecot.sieve' Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Using the following location for user's Sieve script: /usr/home/myuser/mail/mymail@mydomain/.dovecot.sieve Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: Using script storage path: /usr/local/etc/dovecot/sieve_after Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: file storage: script: Opened script `movespam' from `/usr/local/etc/dovecot/sieve_after/movespam.sieve' Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: executed after user's Sieve script(2): /usr/local/etc/dovecot/sieve_after/movespam.sieve Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Opening script 1 of 2 from `/usr/home/myuser/mail/mymail@mydomain/.dovecot.sieve' Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Loading script /usr/home/myuser/mail/mymail@mydomain/.dovecot.sieve Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Script binary /usr/home/myuser/mail/mymail@mydomain/.dovecot.svbin successfully loaded Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: binary /usr/home/myuser/mail/mymail@mydomain/.dovecot.svbin: save: not saving binary, because it is already stored Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Executing script from `/usr/home/myuser/mail/mymail@mydomain/.dovecot.svbin' Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Started running script `/usr/home/myuser/mail/mymail@mydomain/.dovecot.svbin' Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: sieve: Finished running script `/usr/home/myuser/mail/mymail@mydomain/.dovecot.svbin' Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Connection created Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: transaction: Created Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: transaction: Add recipient Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: transaction: Send Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: transaction: Start Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Add transaction Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Disconnected Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Looking up IP address Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Connecting to 127.0.0.1:25 Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Connecting Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Waiting for connect (fd=13) to finish for max 0 msecs Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Client connected (fd=13) Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Connected to server (from 127.0.0.1:27631) Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Received greeting from server: 220 myserver ESMTP Exim 4.94 Tue, 16 Feb 2021 11:32:29 +0100 Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: Sending EHLO handshake Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: command EHLO: Submitted with priority Feb 16 11:32:29 lda(mymail@mydomain)<36105>: Debug: smtp-client: conn 127.0.0.1:25 [1]: