On 2/29/24 15:54, Andreas via dovecot wrote:
Thanks! Can you say where the mapping from the user part in "From" addresses to
actual mail(sub)dir goes after switching to LMTP?
Currently, I've got a `virtual_mailbox_maps` in Postfix main.cf for this
purpose. Is there something similar in Dovecot?
It looks similar to this:
# If you don't have any user-specific settings, you can avoid the user_query
# by using userdb static instead of userdb sql, for example:
# <doc/wiki/UserDatabase.Static.txt>
userdb {
driver = static
args = uid=vmail gid=vmail home=/var/vmail/%u
}
And then:
mail_location = maildir:~/.maildir
Alternatively, SQL database can be used to resolve maildir on a per account
basis:
user_query = \
SELECT \
'/var/vmail/%d/%n' as home, \
'maildir:/var/vmail/%d/%n' as mail, \
5000 AS uid, 5000 AS gid, \
concat('dirsize:storage=', quota) AS quota \
FROM mailbox \
WHERE username = '%u' AND active = '1'
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org