Re: Changed location of index files

Lafiel Elentari via dovecot <[email protected]> Mon, 11 May 2026 15:55:40 +0300
Newsgroups gmane.mail.imap.dovecot
Message-ID <[email protected]>
Hello.

Thanks! This variant working:
```
  userdb__mail_index_path = /var/data/mail/vmail/%{user | domain }/%{user | username}
```

For other parameters, do I also need to add `userdb_`? Example:
```
userdb declarative {
  userdb_driver = passwd-file
  userdb_passwd_file_path = /var/data/mail/dovecot/passdb
  userdb_fields {
    userdb_gid = 5000
    userdb_home = /var/data/mail/vmail/%{user | domain}/%{user | username}
    userdb_uid = 5000
    userdb_mail_index_path = /var/data/mail/vmail/%{user | domain }/%{user | username}
  }
}
```

How to move location of the `.dovecot.lda-dupes` files to the `mail`
subdirectory?


You wrote on 2026.05.11, at 14:58:48:
> Hi!

> Try adding userdb_ to mail_index_path. Home is special.

> Keys which begin with a userdb_ prefix are used for userdb, others
> are used for passdb.
> https://doc.dovecot.org/2.4.3/core/config/auth/databases/passwd_file.html#configuration

> Aki


-- 
Best regards,
Lafiel Elentari
mailto:[email protected]

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
signature.asc (application/pgp-signature, 261 B)
-----BEGIN PGP MESSAGE-----

iJEEARYKADkWIQQm5KEuZKlL4cwx7RWBvsAy+rDD0gUCagHRzBsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwyLDEACgkQgb7AMvqww9Ku/wEAquOiErHgvDSFAPIapb6K
20/1pqC96oze9cR7WL5+rugBALE7353bXMhUVr+C/aMNGfyuwWo/yL8iH9LZU2gt
wrsN
=m8sx
-----END PGP MESSAGE-----