unable to open Berkeley db /etc/sasldb2
I am trying to run a Cyrus IMAP mail server with MySQL database,
all is set up, execept when I try to connect to the imap server I get this error:
imap[4714]: unable to open Berkeley db /etc/sasldb2: No such file or directory
I am (trying) to use pam_mysql and I cant see why this is happening
I have a imapd.conf file in both /etc and /usr/lib/sasl2 with:
pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: PLAIN LOGIN
sql_hostnames: localhost
sql_user: postfix
sql_passwd: postfix
sql_database: postfix
sql_select: SELECT password FROM mailbox WHERE username = '%u' AND active = '1'
(not sure which directory that file is meant to be in)
is this right?
also have
#%PAM-1.0
auth sufficient pam_mysql.so user=postfix passwd=postfix host=localhost db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1
in /etc/pam.d/imap
and
MECH=pam
in /etc/sysconfig/saslauthd
what is wrong? please help
|