-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUm4gfF3r2wJMiz2NAQJavgf/SDZJD7iJd04zGhlQ5+Ac4DKKwnjpzWTf
Mk0KR7+3uqSIOyukWdciKvRK/Y0PZWblr53YTIQ3ibb7xQkAB0nZQewRfmymhn4F
jQRT/Wa1Vakga+kJQyXZOFntaieXyPycgbj7Z6iiO4w04QUqLOT42UCHzBQrtJ9R
z99gYpZNcyZ2Ha0GIEAHIEGJSquWZsVeEziP1cAbJBYJYEgPeYVtGWDWgvY9HKu1
T8MwerdUPxN1jKf8p/rX5jhyVRJPY1y4ofbhAZ/W4tMeeV5sPNj78/B3h0aQ+WIy
WxdY6hw8e8I0yO03KiBl+KJWVTmfU3Zm0DzQ+mptGZevPj+ajE7jSw==
=UY/5
-----END PGP SIGNATURE-----

Reply via email to