[Dovecot] How can i override mail_location?

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Fri Mar 13 16:53:22 EET 2009


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

On Fri, 13 Mar 2009, Zhang Huangbin wrote:

> I use dovecot-1.1.11 with OpenLDAP backend. but i found the
> mail_location is not correct. How can i override mail_location setting
> in dovecot.conf?

> homeDirectory: /home/vmail
> mailMessageStore: a.cn/w/ww/www/
> user_attrs      = 
> homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$

"mailMessageStore=maildir:mail"

this looks odd. Try:

mailMessageStore=mail

Dovecot should detect Maildir vs. mbox itself by existance of cur subdir.
But if relative paths work?

As far as I know Dovecot cannot concat strings retrieved from a backend. A 
SQL-backend itself can do it and will pass the result back, but LDAP 
cannot.

Depending on your user management it should be easier to add another LDAP 
attribute, say "mailDovecotLocation" with the prebuilt string, so you can 
add :INDEX, too.

Bye,

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

iQEVAwUBSbpzanWSIuGy1ktrAQJWrgf/RK1FLtRil8kWqpax+RKk9goSTkJglapx
V91bAaUSDnVSIz1nlDJNkYmhBeFkz7yLllRlpar6+QSZS2SjBfIjJMaRIdJdBtM3
zYXlXimyFoYkoptd0sBXpJKz6e79CE1urJSMUht7JY8esxsFtevEsYgOcBzHxOgV
zW0OuB8oDDbZwgRv7/sraLY7enDx1cxFf0zq1WcCyexHxr+hZgyZEC+0s6jBSJMM
QHDixP9yNqrfC2n1MdgNmVZFyWq//rsQS8w7YHc0gfN5XNSsLtCe5nkHWGmx5HMF
Zi41LMYbzGvVaZ88tAj60guZzBSDhkHOCAaVEalXtBwt6gzbgwYthQ==
=b1Fu
-----END PGP SIGNATURE-----


More information about the dovecot mailing list