[Dovecot] multiple userdb/passdb

Thomas Balsfulland tbals at ctrl-c.de
Wed Jul 4 16:19:29 EEST 2007


hi all,

i am using debian etch with dovecot imap (version 1.0.rc15-2) and
mysql-database for the virtual mailuser. all informations (username,
password, mailbox format, mailbox location, quota) are find in the sql.
the maildir are locates at /home/vmail/, every is working fine.
now i want to use imap for the system user as well - at the moment 
they cant user imap because they are not find in the sql db.
so i set a second userdb/passwd in the dovecot.conf for the local
system-user. now the config says:

auth default {
  passdb passwd-file {
    args = /etc/dovecot/localuser
  }
  passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }

  userdb passwd-file {
    args = /etc/dovecot/localuser
  }
  userdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }
}

and /etc/dovecot/localuser looks:

localuser1:password:1000:1000::/home/localuser1::userdb_mail=mbox:~/Mail:INBOX=~/Mail/incoming


now the local user is able to authenticate, but cant acces his mailboxes
the logfile says:

host dovecot: imap-login: Login: user=<localuser1>,method=PLAIN, rip=195.xxx.xxx.xxx, lip=193.yyy.yyy.yyy, TLS
host dovecot: IMAP(tbals): lstat(/home/vmail//localuser1/cur) failed: Permission denied
host dovecot: IMAP(tbals): lstat(/home/vmail/shared) failed: Permission denied

it seems dovevot ignore the settings in /etc/dovecot/localuser.

could someone help?

regards
  thomas

-- 
thomas balsfulland                               tbals at ctrl-c.de
                    zwischen mut und dummheit liegt nur ein grat
                der sich durch das vorbereitetsein unterscheidet


More information about the dovecot mailing list