unable to open Berkeley db /etc/sasldb2: Permission denied

Alex Prinsier cyrus at aphexer.mailhaven.com
Tue Jan 9 04:06:10 EST 2007


Try:
chgrp mail /etc/sasldb2
chmod 660 /etc/sasldb2

You seem to have configured cyrus to access sasldb2. That means you
should give it access to the database too :) Currently it's set only
root can read/write it.

If you're not using sasldb2 you should probably better disable it in
your config.

Hope it helps.

Alex

Leon Kolchinsky wrote:
> Hello All,
> 
> 
> I have a working mail system Cyrus+Postfix+Web-cyradm+Amavisd-new(SA+ClamAV)
> with 2 virtual domains.
> 
> All is working, but I've noticed that I keep getting:
> --------------------------------------------------
> Jan  9 10:28:20 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
> Permission denied
> Jan  9 10:28:23 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
> Permission denied
> Jan  9 10:29:55 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
> Permission denied
> Jan  9 10:29:58 mail pop3[25728]: unable to open Berkeley db /etc/sasldb2:
> Permission denied
> 
> in my /var/log/warn file.
> 
> 
> I did a little googling and thought that this procedure would help (adding
> mail and postfix to the same group):
> # ls -l /etc/sasldb2
> -rw-r-----  1 root root 12288 Sep 15  2005 /etc/sasldb2
> 
> Now check the group of cyrus user:
> # cat /etc/passwd| grep cyrus
> cyrus:x:96:12:User for cyrus-imapd:/usr/lib/cyrus:/bin/bash
> 
> Now make sure that cyrus and postfix in the same group and restart cyrus and
> postfix:
> # cat /etc/group| grep 12
> mail:x:12:mail,postfix


More information about the Info-cyrus mailing list