On 17/07/2024 12:28, Adam Miller via dovecot wrote:
OS: Ubuntu 22.04.1
Dovecot: 2.3.16 (7e2e900c1a)
Hello all! I have the last login plugin working with the IMAP service
however with LMTP, it errors. I do not necessarily need / want the
LMTP service and did not explicitly enable it but it is throwing an
error in my logs.
Jul 17 10:22:14 lmtp(184051):Error: last_login_dict: Failed to write
value: dict-server returned failure: sql dict set: Invalid/unmapped
key:shared/last-login/lmtp/usern...@domain.com/ (reply took 0.234 secs
(0.001 in dict wait, 0.033 in other ioloops, 0.030 in locks, as
ync-id reply 0.000 secs ago, started on dict-server 0.220 secs ago,
took 0.000 secs))
It would be nice to get rid of this error one or another: either
disable last login for LMTP or get it working.
Current Configuration from doveconf -n
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 6.5.0-1020-aws x86_64 Ubuntu 22.04.4 LTS nfs4
# Hostname: ec2-us-east-1a-arda-mail-001.ardaemail.com
....
mail_plugins = " quota mailbox_alias last_login"
....
protocol imap {
mail_plugins = " quota mailbox_alias last_login imap_sieve
imap_quota last_login"
}
protocol lmtp {
mail_plugins = " quota mailbox_alias last_login sieve"
}
In the configuration above, I do not have "last_login" in my actual
config for "protocol lmtp", something is adding it.
Hi Adam
maybe you do have last_login enabled for lmtp without realizing it. What
is your actual setting for mail_plugins in the protocol lmtp section?
If it something like:
mail_plugins = $mail_plugins sieve
then you are adding the following definition too from the general definition
mail_plugins = " quota mailbox_alias last_login"
So it would make sense to remove last_login from the general
mail_plugins setting and add it only to the protocol specific
mail_plugins section for the protocols where you want it be used.
John
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org