[Dovecot] Override maildir for just a few users

Gedalya gedalya at gedalya.net
Wed Apr 9 20:03:14 UTC 2014


On 04/09/2014 03:57 PM, Charles Marcus wrote:
> Hi all,
>
> Currently, I have mail_location = maildir:~/Maildir set and all passdb 
> and userdb lookups are SQL based (doveconf -n pasted below).
>
> However, I want to override the users maildir location - and *only* 
> the maildir location - for just a few users.
>
> I was thinking the easiest way would be to add a simple flat file 
> based userdb that is checked before the SQL based one, where I can 
> define a different maildir for these users.
>
> So, basically, dovecot checks the flat file first, and if the user 
> isn't found, falls back to SQL.
>
> I still want all AUTH to go through SQL...
>
> It seems like  this should be fairly simple, but after reading the 
> wiki for a few days, I'm just not sure...
>
> This is on a production box, so I have to be careful (note to self - 
> MUST set up testing box for things like this)...
>
> Is anyone else doing anything like this, and if so would you be 
> willing to share sanitized configs?
>
> Thx,
>
Why would you want a text file for overrides, as opposed to just doing 
everything in SQL?



More information about the dovecot mailing list