[Dovecot] dovecot-1.1.6 fatal error: userdb didn't return a home directory

JM coil93 at gmail.com
Tue Nov 4 14:18:40 EET 2008

dovecot version 1.1.6

>dovecot -n
# 1.1.6: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.27-gentoo-r1 i686 Gentoo Base System release 2.0.0 xfs
base_dir: /var/run/dovecot/
protocols: imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_disable: yes
disable_plaintext_auth: no
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
login_greeting: Server ready.
login_process_per_connection: no
login_processes_count: 6
mail_privileged_group: vmail
mail_uid: vmail
mail_gid: vmail
mail_location: maildir:/var/spool/postfix/virtual/%h
mail_debug: yes
fsync_disable: yes
maildir_copy_preserve_filename: 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): expire fts fts_squat
mail_plugins(imap): expire fts fts_squat
mail_plugins(pop3): expire
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  cache_size: 1024
  debug: yes
    driver: sql
    args: /etc/dovecot/dovecot-sql.conf
    driver: sql
    args: /etc/dovecot/dovecot-sql.conf
    type: listen
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
  expire: Trash 7 Spam 30
  expire_dict: proxy::expire
  fts: squat
  fts_squat: partial=4 full=10
  expire: db:/var/lib/dovecot/expire.db


driver = mysql
connect = host=localhost dbname=postfix user=postfix password=****
default_pass_scheme = PLAIN
password_query = SELECT username, password FROM mailbox WHERE username
= '%u' AND active = '1'
user_query = SELECT maildir AS home, 1030 AS uid, 1030 AS gid FROM
mailbox WHERE username = '%u'

After upgrade from version 1.1.4 to 1.1.6, got following error when
dovecot starts

 * Starting dovecot ...
 Fatal: userdb didn't return a home directory, but mail location used it
 (%h): /var/spool/postfix/virtual/%h
 Error: imap dump-capability process returned 89
 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

Mail locations should be
/var/spool/postfix/virtual/domain/user at domain/ where %h =
domain/user at domain/
Version 1.1.4 works fine with this settings.

More information about the dovecot mailing list