Yes /etc/sasldb is created owned by cyrus.mail and the
sasldblistuser command correctly lists users ....

Any other ideas ?

----- Original Message -----
From: "The Hermit Hacker" <[EMAIL PROTECTED]>
To: "Phil Ellett" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 6:21 PM
Subject: Re: Cyrus IMAP 2.0.12/SASL/DB3 problems ...


> On Fri, 2 Mar 2001, Phil Ellett wrote:
>
> > Hi All,
> >
> > I've been struggling for several weeks now to make any progress at all
in getting Cyrus IMAP running on my system. I had used Cyrus 2.07, 2.09
2.0.11and 2.0.12 and still have not succeed in getting a normal banner
response from port 110 or 143 during this time.
> >
> > I am almost certain that the problem relates to DB3.
> >
> > On telneting to either port 110 or 143 the session connects and the
effectively hangs displaying nothing indefinately ...
> >
> > What on earth is wrong .... Please help ....
> >
> > Regards,
> >
> > Phil Ellett,
> >
> > Technimode Ltd
> > Sheffield
> > UK
> >
> > /var/log/messages displays ..
> >
> > Mar  2 18:02:47 mx1 master[20922]: process started
> > Mar  2 18:02:47 mx1 ctl_mboxlist[20923]: running mboxlist recovery
> > Mar  2 18:02:47 mx1 ctl_mboxlist[20923]: done running mboxlist recovery
> > Mar  2 18:02:47 mx1 master[20922]: ready for work
> > Mar  2 18:02:47 mx1 ctl_mboxlist[20925]: checkpointing mboxlist
> > Mar  2 18:03:36 mx1 pop3d[20938]: unable to open Berkeley db
/etc/sasldb: Invalid argument
>
> have you tried doing a 'saslpasswd -c' to create the /etc/sasldb file?
>
>
> >
> >
> > Installation procedure is detailed below (Running on Redhat 6.2)
> >
> > Install OpenSSL 0.9.6
> > *********************
> > ./configure
> > make
> > make test
> > make install
> >
> > Install MySQL RPMs
> > ******************
> > rpm --install MySQL-3.23.33-1.i386.rpm
> > rpm --install MySQL-client-3.23.32-1.i386.rpm
> > rpm --install MySQL-devel-3.23.32-1.i386.rpm
> >
> > Install Librc4-1.1 (RC 4 Library)
> > *********************************
> > ./configure
> > make
> > make install
> >
> > Install Berkeley DB3 3.2.9
> > *************************
> > cd build_unix
> > ../dist/configure
> > make
> > make install
> >
> > Install Cyrus SASL 1.5.24 (with MySQL patch)
> > *******************************************
> > patch -p1 < sasl_ldap_mysql.patch
> > env CPPFLAGS="-I/usr/local/BerkeleyDB.3.2/include" \
> > LDFLAGS="-L/usr/local/BerkeleyDB.3.2/lib" ./configure --with-mysql
> > make
> > make install
> > ln -s /usr/local/lib/sasl /usr/lib/sasl
> >
> >
> > Install OpenLDAP 2.0.7
> > **********************
> > env CPPFLAGS="-I/usr/local/ssl/include" \
> > LDFLAGS="-L/usr/local/ssl/lib" ./configure
> > make depend
> > make
> >
> > edit ld.so.conf (add /usr/local/lib so sasl lib can be found)
> >
> > make test
> > make install
> >
> > Install Postfix
> > ***************
> > make makefiles CCARGS="-I/usr/include/mysql -DHAS_MYSQL" \
> >      AUXLIBS="/usr/lib/mysql/libmysqlclient.a -lm -lz"
> > make
> >
> > Add "postfix:*:102:102:postfix:/no/where:/no/shell" to /etc/passwd
> > Add "postfix:x:102:" to /etc/group
> > Add "postfix:        root" to /etc/aliases
> >
> > make install
> >
> > Configure /etc/postfix/main.cf & mysql_client.cf
> >
> > Install Cyrus IMAP 2.0.12
> > *************************
> >
> > cp /usr/kerberos/include/com_err.h /usr/include
> >
> > cd makedepend
> > ./configure
> > make
> > ./install_sh makedepend /usr/bin
> >
> > env
CPPFLAGS="-I/usr/local/BerkeleyDB.3.2/include -I/usr/local/ssl/include" \
> > LDFLAGS="-L/usr/local/BerkeleyDB.3.2/lib -L/usr/local/ssl/lib"
./configure \
> > --with-dblib=berkeley \
> > --with-dbdir=/usr/local/BerkeleyDB.3.2
> >
> > /usr/sbin/useradd -g mail cyrus
> > passwd cyrus
> >
> > make depend
> > make all CFLAGS=-O
> > make install
> >
> > Add to /etc/syslog.conf
> >
> > **
> > # Cyrus IMAP Additions
> > local6.debug
/var/log/imapd.log
> > auth.debug
/var/log/auth.log
> > **
> >
> > Create /etc/imapd.conf
> >
> > **
> > configdirectory: /var/imap
> > partition-default: /var/spool/imap
> > admins: cyrus root
> > srvtab: /var/imap/srvtab
> > allowanonymouslogin: no
> > sasl_passwd_check: sasldb
> > **
> >
> > IMAPD Setup
> > ***********
> >
> >    cd /var
> >    mkdir imap
> >    chown cyrus imap
> >    chgrp mail imap
> >    chmod 750 imap
> >
> >    cd /var/spool
> >    mkdir imap
> >    chown cyrus imap
> >    chgrp mail imap
> >    chmod 750 imap
> >
> >    cd /var/imap
> >    /(imapdir)/tools/mkimap
> >    chown -R cyrus *
> >    chgrp -R mail *
> >    chattr +S user quota user/* quota/*
> >
> >    cd /var/spool/imap
> >    chown -R cyrus *
> >    chgrp -R mail *
> >    chattr +S /var/spool/imap /var/spool/imap/*
> >
> >    add /etc/services entries
> >
> >
> >
>
> Marc G. Fournier                   ICQ#7615664               IRC Nick:
Scrappy
> Systems Administrator @ hub.org
> primary: [EMAIL PROTECTED]           secondary:
scrappy@{freebsd|postgresql}.org
>

Reply via email to