setup sdbox per user with userdb

Sami Ketola sami.ketola at dovecot.fi
Sat Apr 18 12:58:02 EEST 2020



> On 17. Apr 2020, at 20.05, Maciek Jackowski <niksfirefly at gmail.com> wrote:
> 
> Hi welcome
> 
> I want to set some virtual users with sdbox mail_location
> so I return in
> password_query and user_query extra field mail
> which contains
> sdbox:/var/mail/example.com/user:INDEX=/var/mail_indexes/example.com/user:ALT=/var/mail_altstorage/example.com/user
> 
> and then when i send email to user at example.com
> I see all sdbox dirs created but
> when i login with thunderbird IMAP - Maildir structure is always
> created with an empty INBOX
> 
> I tried to override namespace inbox with
> mail AS "namespace/inbox/location" with content
> sdbox:/var/mail/example.com/user:INDEX=/var/mail_indexes/example.com/user:ALT=/var/mail_altstorage/example.com/user
> 
> but nothin change
> what am I doing wrong?

Not sure without seeing your doveconf -n, but you probably should return userdb_mail  in your password_query instead of mail.

Sami



More information about the dovecot mailing list