[Dovecot] Override maildir for just a few users

Charles Marcus CMarcus at Media-Brokers.com
Wed Apr 9 19:57:51 UTC 2014


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,

-- 

Best regards,

Charles



More information about the dovecot mailing list