[Dovecot] separate mail_location for system and normal users
Andrzej A. Filip
andrzej.filip at gmail.com
Wed Oct 30 01:43:18 EET 2013
On 10/28/2013 09:29 AM, Steffen Kaiser wrote:
> On Fri, 25 Oct 2013, Andrzej A. Filip wrote:
>
>> How to configure dovecot to use different default mail_location for
>> system (uid<1_000) and normal users (uid>=1_000)?
>
>> I want to to use by default
>> * classic mailbox in standard location for system users
>> * maildir in $HOME subdirectory for normal users
>
> That depends :-)
>
> If you have just one userdb, configure the default mail_location for
> most users and return a mail extra field for the other ones.
>
> You use passwd? This probably will not work, see
> http://wiki2.dovecot.org/UserDatabase/ExtraFields about the syntax
>
> You could probably copy the set of users, that requires extra fields,
> from your /etc/passwd to somewhere else, adding the extra field. Then
> configure the copy as userdb { driver passwd-file } _before_ the userdb
> { passwd }. That way, the entries in the passwd-file override the ones
> in /etc/passwd, because they are found first.
I have used userdb/passwd fix for a system with a few "real user
mailboxes". I wanted something better fit for larger systems.
More information about the dovecot
mailing list