[Dovecot] auth default : passwd-file Can't open file: Permission denied

Freese Notis freesenotis at gmail.com
Fri Feb 1 23:07:45 EET 2008


Hello,

I'm attempting to migrate from an existing dovecot .99 install to dovecot
1.0.rc15 on a fresh up to date CentOs 5.1.  I'm not sure what's causing this
permissions error on startup - I've tried 777,644, and 600 chmods but it's
always this same error:

Feb  1 12:43:05 ns2 dovecot: Dovecot v1.0.rc15 starting up
Feb  1 12:43:06 ns2 dovecot: Auth process died too early - shutting down
Feb  1 12:43:06 ns2 dovecot: auth(default): passwd-file
/var/spool/virtual/passwd: Can't open file: Permission denied
Feb  1 12:43:06 ns2 dovecot: child 16411 (auth) returned error 89
Feb  1 12:43:06 ns2 dovecot: Temporary failure in creating login processes,
slowing down for now

Here's some more information from the shell:

# dovecot -n
# /etc/dovecot.conf
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_user: vmail
mail_location: maildir:/var/spool/virtual/%d/%n
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth default:
  mechanisms: plain login
  verbose: yes
  debug: yes
  passdb:
    driver: passwd-file
    args: /var/spool/virtual/passwd
  userdb:
    driver: static
    args: uid=vmail gid=vmail home=/var/spool/virtual/%d/%n



# ls -l /var/spool/virtual/passwd
-rw------- 1 vmail vmail 37639 Jan 31 14:27 /var/spool/virtual/passwd

#and the ls -l of /var/spool and /virtual:
drwxr-xr-x  23 root root  4096 Jan 31 17:26 var
drwxr-xr-x 16 root root   4096 Jan 31 18:56 spool
drwxrwxr-x 109 vmail  vmail  4096 Feb  1 00:33 virtual

the format of the file is similar to this:
fake at example.com:{PLAIN}pass
adam at example.com:{PLAIN}text


I tried searching first but couldn't find anything other than similar config
examples that seemed to confirm my config was setup right.  Any suggestions?



-- 
Adam


More information about the dovecot mailing list