On 30. Apr 2025, at 8.42, Kamil Jońca via dovecot <dovecot@dovecot.org> wrote:


     Recently in debian sid version 2.4 appeared and I tried to migrate.
     it (mostly working) but
     Neither dovecot-lda nor doveadm does not see current system user
     context i.e.

This was usually just causing confusion, so it's no longer used by default.

     --8<---------------cut here---------------start------------->8---
     %doveadm mailbox list
                                                                                
                                        
     Fatal: One of -u, -F, -A or --no-userdb-lookup must be provided

Using --no-userdb-lookup preserves the old behavior.

     from lda logs
     --8<---------------cut here---------------start------------->8---
     Fatal: Namespace root: mail_storage settings: Failed to parse
     configuration: Invalid setting mail_path=~/Mail/0/: mail_path setting
     used home directory (~/) but there is no mail_home and userdb didn't
     return it

Was dovecot-lda also used without -d parameter before? The intention was to use
$HOME environment here? I suppose that change was somewhat accidental, but I'm
not sure I want to add it back.

     for dovecot-lda
     setting "mail_home = /home/%{user|username}"
     helped but still ...

Alternative could have been to use dovecot-lda -o mail_home=$HOME

     Moreover I found that doveadm does not work when dovecot is stoped
     (but
     used to work in 2.3.x)

Probably now that you're using -u parameter, so it does a userdb lookup from
auth process? If you use --no-userdb-lookup it works as before.

     Another thing is:
     --8<---------------cut here---------------start------------->8---
     deliver_log_format = msgid=%m: %$
     --8<---------------cut here---------------end--------------->8---

     in 2.3.x configuration it created line like this:
     --8<---------------cut here---------------start------------->8---
     2025-04-27T02:08:31.925845+02:00 alfa dovecot: LDA(kjonca): sieve:
     msgid=<fd248603-b186-4ee2-9e76-b9b9c0fe7a87@alfa>: fileinto action:
     stored mail into mailbox 'RSS'
     --8<---------------cut here---------------end--------------->8---
     but now it does not work (what is strange I cannot find %$
     description
     and %m is described as "mechanism" not message id ...)

     So how can I have old loggin and authentication mechanisms?

https://doc.dovecot.org/main/core/summaries/
settings.html#deliver_log_format describes the available variables for this
setting. Looks like you're using the default value, so you could just comment
it out.

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to