Different Maildir Locations

Aki Tuomi aki.tuomi at open-xchange.com
Fri May 28 12:24:03 EEST 2021


> On 28/05/2021 12:21 Gabx <gabriel1 at tcpreset.net> wrote:
> 
>  
> Hi,
> on my vps (debian stable) I have an email system with postfix, dovecot, 
> virtual users and domains.
> I have 3 users with different mail_locations.
> 
> the first mail_location = maildir: ~ / Maildir
> the second mail_location = maildir: ~ / user1 / Maildir
> the third mail_location = maildir: ~ / user2 / mail
> 
> In postfix the above schema is represented in virtual_mailbox_maps.
> 
> In dovecot mail_location is set maildir:~/Maildir.
> 
> The first user receives regular mail, the other two none.
> I tried to see if in dovecot there was the possibility to configure the 
> mail_location specifically for each single user, but with namespaces and 
> userdb I am a bit confused and I have not found specific examples for my 
> case.
> 
> regards
> 
> Gab
> -- 
> GPG fingerprint: 5A6A F742 ACEA C9A7 93A8 8D5E 7AEF 5A02 D080 89F7
> 
> Contact: xmpp://gabx@jabber.tcpreset.net

You can return `mail` attribute from your userdb (or passdb) to override the default mail_location.

Ensure that `doveadm user targetuser` shows `mail` pointing to correct location. You can use ~/ with mail.

Aki


More information about the dovecot mailing list