mail_location in userdb inconsistent with imap and pigeonhole

Stephan Bosch stephan at rename-it.nl
Tue Jan 31 20:40:28 UTC 2017


Op 12/10/2016 om 7:11 PM schreef Ladislav Laska:
> Hi!
>
> I'm still fighting with lost mails and what I think is a locking
> problem.
>
> As I've lost some pretty important mails already, I decided to mitigate
> my troubles by moving to maildir format, which should not be susceptible
> to these problems.
>
> I read the docs and wanted to test on my account, before I mess with all
> the others and possibly break something. The way to do it seems to be to
> do an override via userdb. I already have a passwd-file authdb, so I
> uncommented those few lines in configuration, and added this to
> my passwd-file:
>
> krakonos:{SHA256}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=:1000:100::/home/krakonos:/bin/bash:userdb_mail=maildir:/home/krakonos/Mail
>
> Now, I'm not really sure why it has to be prefixed with userdb_, but the
> example in docs has it, and it seems to work.
>
> I've attached the relevant part of a logfile, with some debugging
> enabled, but in short:
>
> Dec 10 18:39:22 ibex dovecot: imap(krakonos): Debug: Added userdb
> setting: mail=maildir:/home/krakonos/Mail
> [...]
> Dec 10 18:39:22 ibex dovecot: imap(krakonos): Debug: maildir++:
> root=/home/krakonos/Mail, index=, indexpvt=, control=,
> inbox=/home/krakonos/Mail, alt=
> [...]
> Dec 10 18:39:52 ibex dovecot: lda(krakonos): Debug: mbox: INBOX
> defaulted to /home/krakonos/.mbox/inbox
>
>
> I'm confused why the last line chooses my old mbox over the new
> location.

LDA does  not perform a userdb lookup by default. That is probably what
is going on here:

http://wiki2.dovecot.org/LDA#Virtual_users

Regards,

Stephan.


More information about the dovecot mailing list