[Dovecot] How to give system and virtual users their own mail_location?
Timo Sirainen
tss at iki.fi
Wed Nov 8 12:38:00 UTC 2006
On Wed, 2006-11-08 at 12:07 +0100, Egbert Jan wrote:
> Hi again.
>
> I hace Dovecot rc12 working on Mandriva 2007.0 now for system accounts and
> virtual accounts both imap and imaps can be used.
> Th problem now is that I cannot use both types of user at the same time. The
> 'mail_location = ' strings are very different:
> Real system users have their Maildir in /home/%u/Maildir/ but virtual users
> have their maildir in /home/virtual/%d/%n/.
> How can tell dovecot to use the first for pam clients and second for mysql
> authenticated clients?
mail_location = system users location
For virtual users change the dovecot-sql.conf to return "mail" in the
user_query. Like:
user_query = select 'maildir:/home/virtual/%d/%n' as mail, ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061108/3f9287d1/attachment.pgp
More information about the dovecot
mailing list