On Tue, 2006-10-17 at 09:18 +1300, Fintec wrote:
On Mon, 2006-10-16 at 13:17 +0300, Timo Sirainen wrote:
On 16.10.2006, at 4.10, Fintec wrote:
Anyway, try setting debug=yes inside the protocol lda {} and see
what it writes to log.After adding debug=yes inside the protocol lda {} all I get in the deliver.log is: ---- snip ----- deliver(user@domain.com): Info: Loading modules from directory: /usr/lib64/dovecot/lda deliver(user@domain.com): Info: Module loaded: /usr/lib64/dovecot/lda/lib90_cmusieve_plugin.so deliver(user@domain.com): Info: maildir: data=/home/vmail/domains/domain.com/user deliver(user@domain.com): Info: maildir: root=/home/vmail/domains/domain.com/user, index=/home/vmail/domains/domain.com/user, control=, inbox= ---- snip ----
I added more debugging a while ago, so I guess you're using rc8 or
older? It would then show all the data that is received from userdb,
such as home directory.My guess is that your userdb is returning wrong home directory.
Yes, that's correct I was using RC8. I've update to RC10 now so the debug logging provides a lot more info. As expected dovecot is returning the wrong home directory for the user because of my virtual user LDAP setup.
In LDAP I have homeDirectory defined as "/home/vmail/domains" and mailbox defined as "domain.com/user". Hence be default_mail_env = maildir:/home/vmail/domains/%d/%n.
Deliver is working correctly, it is only the cmusieve plug-in that is not concatenating the homeDirectory and mailbox LDAP fields. Is there some way to correct this without changing my LDAP structure?
Gavin
The problem comes down to my dovecot-ldap.conf file. The home directory for a user can be defined in the user attributes, i.e: user_attrs = homeDirectory=home
Is there anyway to combine two ldap fields to define home? What I require is: user_attrs = homeDirectory/mailbox=home Where "homeDirectory" and "mailbox" are my LDAP field names.
I have tried using the homeDirectory/%d/%n but these variables only appear to work within user_filter.
Short of creating & defining a new combined field in my LDAP structure does anyone have any ideas as to how I could achieve the above?
Gavin