Hello, I was using imap_id_log to log user-agent in 2.3, but this seems to be replaced in 2.4 by imap_id_received, however I am unable to find any example how this is supposed to be configured. Please help me clarify this.
Hello, I was using imap_id_log to log user-agent in 2.3, but this seems to be replaced in 2.4 by imap_id_received, however I am unable to find any example how this is supposed to be configured. Please help me clarify this.
On 25/11/2025 15:24 EET Adrian M via dovecot <dovecot@dovecot.org> wrote:
Hello, I was using imap_id_log to log user-agent in 2.3, but this seems to be replaced in 2.4 by imap_id_received, however I am unable to find any example how this is supposed to be configured. Please help me clarify this. Hello, I was using imap_id_log to log user-agent in 2.3, but this seems to be replaced in 2.4 by imap_id_received, however I am unable to find any example how this is supposed to be configured. Please help me clarify this.
event_exporter log { format = tab-text time_format = rfc3339 }
metric imap_id_received { filter = event=imap_id_received exporter = log }
Aki
Thank you. I tested this and a new log line "mail dovecot: stats:" was created. Any chance to append the user-agent info to "mail dovecot: imap-login:" log line ?
On Tue, Nov 25, 2025 at 3:28 PM Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 25/11/2025 15:24 EET Adrian M via dovecot <dovecot@dovecot.org> wrote:
Hello, I was using imap_id_log to log user-agent in 2.3, but this seems to be replaced in 2.4 by imap_id_received, however I am unable to find any example how this is supposed to be configured. Please help me clarify this. Hello, I was using imap_id_log to log user-agent in 2.3, but this seems to be replaced in 2.4 by imap_id_received, however I am unable to find any example how this is supposed to be configured. Please help me clarify this.
event_exporter log { format = tab-text time_format = rfc3339 }
metric imap_id_received { filter = event=imap_id_received exporter = log }
Aki
Thank you. I tested this and a new log line "mail dovecot: stats:" was created. Any chance to append the user-agent info to "mail dovecot: imap-login:" log line ? On Tue, Nov 25, 2025 at 3:28PM Aki Tuomi <[1]aki.tuomi@open-xchange.com> wrote:
> On 25/11/2025 15:24 EET Adrian M via dovecot <[2]dovecot@dovecot.org>
wrote:
>
>
> Hello,
> I was using imap_id_log to log user-agent in 2.3, but this seems to be
> replaced in 2.4 by imap_id_received, however I am unable to find any
> example how this is supposed to be configured.
> Please help me clarify this.
> Hello,
> I was using imap_id_log to log user-agent in 2.3, but this seems to
be
> replaced in 2.4 by imap_id_received, however I am unable to find
any
> example how this is supposed to be configured.
> Please help me clarify this.
event_exporter log {
format = tab-text
time_format = rfc3339
}
metric imap_id_received {
filter = event=imap_id_received
exporter = log
}
Aki
References
Visible links
- mailto:aki.tuomi@open-xchange.com
- mailto:dovecot@dovecot.org
Hello, I have the same issue. In Dovecot 2.3 I used
protocol imap { ........ imap_id_log = * .......... }
and the logs looked like this: Nov 26 07:40:19 mail dovecot: imap(test@test.com)<1015><PcLT1HhSDvDVaRPa>: ID sent: name=Microsoft Outlook, version=16.0.4266.1001
In 2.4 I don't know how to get the user-agent logged in the same imap log line anymore.
participants (3)
-
Adrian M
-
Aki Tuomi
-
Aurel