[Dovecot] dovecot-auth requires userdb, but already configured

Carl Vondrick carl at vondrick.com
Tue Aug 5 01:11:35 EEST 2008


On Mon, Aug 4, 2008 at 4:19 AM, Eduardo M KALINOWSKI
<eduardo at kalinowski.com.br> wrote:
> Carl Vondrick wrote:
> > I believe I have narrowed down the problem to dovecot-auth not finding my
> > userdb.  But, I am able to connect to dovecot via IMAP in my MUA and preform
> > operations (read, delete mail, create folders).  This leads me to believe my
> > userdb is setup correctly.
> >
> > Does anyone have any idea as to why dovecot-auth would not find my userdb?
> > (Configuration is below).
>
> Are you using virtual users?

Yes, from a simple passwd-like file that contains something like:

vondrick:{SSHA}foobar:1000:1000::/home/carl/mail/vondrick

> In this case, Dovecot's deliver needs a
> master socket to get user information from. See instructions at
> http://wiki.dovecot.org/LDA .

I have adjusted my configuration so that a master auth socket is
created.  I confirmed it's created, but the problem still persists.

carl at cvondrick:~$ dovecot -n
# 1.0.10: /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot.log
ssl_disable: yes
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_location: mbox:/home/carl/mail/%u
mail_debug: yes
dotlock_use_excl: yes
auth default:
  verbose: yes
  debug: yes
  passdb:
    driver: passwd-file
    args: /etc/dovecot/passwd
  userdb:
    driver: passwd-file
    args: username_format=%u /etc/dovecot/passwd
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 511
      user: carl

carl at cvondrick:~$ ls /var/run/dovecot/
auth-master  auth-worker.25156  dict-server  login  master.pid

carl at cvondrick:~$ /usr/lib/dovecot/dovecot-auth
dovecot-auth: Fatal: You'll need to add at least one userdb

Any ideas?  I configured deliver to log, but nothing is written to the
log when the permissions are 0666.

Carl


More information about the dovecot mailing list