[Dovecot] (v1.1.6) Fatal: userdb didn't return a home directory, but mail location used it (%h)

Zhang Huangbin zhbmaillistonly at gmail.com
Thu Nov 6 11:24:53 EET 2008


Hi, all.

I upgrade to 1.1.6, but the same config didn't work now.

Error message while start dovecot:

----<----
Starting Dovecot Imap: Fatal: userdb didn't return a home directory, but 
mail location used it (%h): /%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/
Error: imap dump-capability process returned 89
Fatal: Invalid configuration in /etc/dovecot.conf
----<----

Here is my dovecot.conf file and dovecot-ldap.conf:
----<----
# dovecot -n
# 1.1.6: /etc/dovecot.conf
# OS: Linux 2.6.18-92.el5 x86_64 Red Hat Enterprise Linux Server release 
5.2 (Tikanga)
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps
listen: *
ssl_cert_file: /etc/pki/iRedMail/SSL_Cert.pem
ssl_key_file: /etc/pki/iRedMail/SSL_Key.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_uid: 2000
mail_gid: 2000
mail_location: maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  default_realm: a.cn
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/dovecot-auth
      mode: 438
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail
plugin:
  quota: maildir
  quota_rule: *:storage=10M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /var/www/sieve/%Ld/%Ln/.dovecot.sieve
dict:
  expire: db:/var/lib/dovecot/expire/expire.db
----<----

dovecot-ldap.conf
----<----
hosts           = 127.0.0.1:389
ldap_version    = 3
auth_bind       = yes
dn              = cn=vmail,dc=iredmail,dc=org
dnpass          = 2888$11175 at 27748!29315&29049*31446)15524
base            = domainName=%d,o=domains,dc=iredmail,dc=org
scope           = subtree
deref           = never
user_filter     = (&(mail=%u)(objectClass=mailUser)(accountStatus=active))
pass_filter     = (mail=%u)
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = 
homeDirectory=home,=sieve_dir=/var/www/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$
----<----


-- 
Best regards.

- Open Source Mail Server Solution for RHEL/CentOS 5.x:
  http://code.google.com/p/iredmail/



More information about the dovecot mailing list