[Dovecot] Static home while using LDAP
David Bosque
dbosque at cica.es
Mon Oct 29 16:20:09 EET 2007
Timo Sirainen escribió:
> On Fri, 2007-10-26 at 09:51 +0200, David Bosque wrote:
>
>> Is there any other way of using a static home (not stored in LDAP) but
>> being able to use LDAP for quotas and other stuff?
>>
>
> With v1.0 you can kludge it:
>
> plugin {
> home = /home/%d/%n
> }
>
> If you use deliver you'll probably need new enough (1.0.5?) version for
> this to work.
>
> With v1.1 it's possible to add "=home=/home/%d/%n" (IIRC) to user_attrs.
>
I'm using 1.0.5 and don't want to upgrade to 1.1 until it is released as
stable. I've tried your suggestion, but it is not working even for a
plain imap login. My configuration:
userdb ldap {
args = /etc/dovecot/dovecot-ldap.conf
}
passdb ldap {
args = /etc/dovecot/dovecot-ldap.conf
}
plugin {
home = /var/mail/buzones/%n
...
}
In dovecot-ldap.conf I have:
user_attrs = gidNumber=gid
pass_attrs = uid=user
and the neccessary user and pass filters.
However, when I try to read my mail, I get this:
dovecot: Oct 29 14:48:37 Info: auth(default): ldap(dbosque,X.X.X.X):
bind: dn=uid=dbosque,dc=cica,dc=cuentas,dc=cica,dc=es
dovecot: Oct 29 14:48:37 Info: auth(default): client out: OK 1
user=dbosque
dovecot: Oct 29 14:48:37 Info: auth(default): master in: REQUEST
7 24813 1
dovecot: Oct 29 14:48:37 Info: auth(default): ldap(dbosque,X.X.X.X):
user search: base=dc=cuentas, dc=cica, dc=es scope=subtree
filter=(&(objectClass=posixAccount)(uid=dbosque)(pop=TRUE)) fields=gidNumber
dovecot: Oct 29 14:48:37 Info: auth(default): master out: USER 7
dbosque gid=6 uid=501
dovecot: Oct 29 14:48:37 Info: imap-login: Login: user=<dbosque>,
method=PLAIN, rip=X.X.X.X, lip=X.X.X.X, TLS
dovecot: Oct 29 14:48:37 Error: IMAP(dbosque):
mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/mail/cur) failed:
Permission denied
dovecot: Oct 29 14:48:37 Error: IMAP(dbosque):
mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/mail/cur) failed:
Permission denied
So, it's not picking up the home directory supposedly set in the plugin
section. Is there any plugin to enable somewhere? I tried setting
mail_plugins = home and it gave me an error ;-). Any ideas?
Thanks a lot for your help.
David Bosque
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3861 bytes
Desc: S/MIME Cryptographic Signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20071029/c74fdf4d/attachment.bin
More information about the dovecot
mailing list