[Dovecot] auth default : passwd-file Can't open file: Permission denied
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@example.com:{PLAIN}pass adam@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
On 2/1/2008, Freese Notis (freesenotis@gmail.com) wrote:
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:
You really should go ahead and update to a release version... check the atrpm repository...
Make sure you follow the upgrade instructions here:
--
Best regards,
Charles
On Fri, 2008-02-01 at 15:07 -0600, Freese Notis wrote:
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:06 ns2 dovecot: auth(default): passwd-file /var/spool/virtual/passwd: Can't open file: Permission denied .. 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?
SELinux prevents accessing it.
Thanks Timo
For testing I tried: #echo 0 >/selinux/enforce and I got Feb 2 05:00:31 ns2 dovecot: Dovecot v1.0.rc15 starting up Feb 2 05:00:32 ns2 dovecot: auth(default): passwd-file /var/spool/virtual/passwd: Read 971 users
so it worked. The problem is identified but does anyone know how to permit dovecot to work with selinux turned on?
On Feb 2, 2008 3:40 AM, Timo Sirainen <tss@iki.fi> wrote:
On Fri, 2008-02-01 at 15:07 -0600, Freese Notis wrote:
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:06 ns2 dovecot: auth(default): passwd-file /var/spool/virtual/passwd: Can't open file: Permission denied .. 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?
SELinux prevents accessing it.
-- Adam
Send all work related requests to work@networkiowa.com or admin@weather.net
This is only a external mail test account, do not send me requests here.
On Sat, 2008-02-02 at 12:36 -0600, Freese Notis wrote:
so it worked. The problem is identified but does anyone know how to permit dovecot to work with selinux turned on?
This is a quite common problem. Would be nice if there was an URL I could just always give..
participants (3)
-
Charles Marcus
-
Freese Notis
-
Timo Sirainen