bug: usersfile very weird behaviour regarding path to mbox

Mikel Pérez io at mikelpr.com
Mon Mar 13 06:52:35 UTC 2023


dovecot --version
2.3.20 (80a5ac675d)

having the following setup:

(1)
aioria:/srv/franper/mail # cat /etc/dovecot/users
***snip***
ventas-respaldo at franper.net:*snip*:1001:1000::/srv/franper/mail/ventas

(2)
aioria:/srv/franper/mail # ls -lha
total 0
drwxr-x---. 1 1001 1000 238 Mar 13 05:07 .
drwxr-sr-x. 1 1000 1001  62 Oct 24 21:29 ..
***snip***
drwxr-x---. 1 1001 1000 578 Mar  4 18:53 ventas
drwx------. 1 1001 1000 246 Mar 13 05:07 ventas-respaldo

(3)
aioria:/srv/franper/mail # date -u
Mon Mar 13 05:09:06 UTC 2023

where (1) I'm trying to expose the contents of the mbox ventas as
ventas-respaldo at franper.net,
well, for some reason it disregards that I'm pointing at
/srv/franper/mail/ventas BUT does take the directory path at
/srv/franper/mail and then constructs a
/srv/franper/mail/ventas-respaldo path, which you can confirm with (2)
showing ventas-respaldo modification date being today's date (3)
because a client (Thunderbird 103 if you're interested but I think
that it's not its fault at all) tried accessing
ventas-respaldo at franper.net which should have pointed to
/srv/franper/mail/ventas but instead did this very weird thing.

Nowhere in /etc/dovecot/users do I have a line pointing to
/srv/franper/mail/ventas-respaldo. dovecut just generates it somehow.

dovecot -n:
# 2.3.20 (80a5ac675d): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.20 (149edcf2)
# OS: Linux 6.2.1-1-default x86_64
## (OpenSUSE micro OS)
# Hostname: aioria
disable_plaintext_auth = no
mail_location = maildir:/srv/franper/mail/%n
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables b
ody enotify environment mailbox date index ihave duplicate mime
foreverypart extracttext
namespace inbox {
 inbox = yes
 location =
 mailbox Drafts {
   special_use = \Drafts
 }
 mailbox Junk {
   special_use = \Junk
 }
 mailbox Sent {
   special_use = \Sent
 }
 mailbox "Sent Messages" {
   special_use = \Sent
 }
 mailbox Trash {
   special_use = \Trash
 }
 prefix =
}
passdb {
 args = scheme=CRYPT username_format=%u /etc/dovecot/users
 driver = passwd-file
}
plugin {
 sieve = file:~/sieve;active=~/.dovecot.sieve
}
ssl = required
ssl_cert = <*snip*
ssl_cipher_list =
ALL:!DH:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW at STRENGTH
ssl_key = # hidden, use -P to show it
ssl_options = no_compression
ssl_prefer_server_ciphers = yes
userdb {
 args = username_format=%u /etc/dovecot/users
 driver = passwd-file
}

tell me if you need the sysreport tar and big thanks


More information about the dovecot mailing list