The box is a RedHat 7.0 Server install running kernel 2.2.18. I've got sasl
(CRAM, DIGEST, and PLAIN), login, and ssl working. I haven't tested sieve
yet. I'm not using any other auth methods, so this won't be much help if you
want to use shadow passwords or Kerberos. There may be steps here that are
not required, but hey, they worked so I'm not complaining. Yet. YMMV, but
here are the steps that finally worked for me.

1) Drink a beer (restores inner peace after innumerable failed attempts)
2) Install (or upgrade to) the following rpms:
        db3-3.1.17-5
        db3-devel-3.1.17-5
3) Build cyrus-sasl-1.5.24 as follows:
        ./configure --disable-krb4 --disable-gssapi
        make
        (drink a beer)
        make install
4) If you have an rpm of sasl installed already like I did, move the
following files to a backup location:
        /usr/sbin/sasldblistusers
        /usr/sbin/saslpasswd
        /usr/lib/sasl/*
        /usr/lib/libsasl*
5) Link the new files to the old locations:
        ln -s /usr/local/sbin/saslbdlistusers /usr/sbin/sasldblistusers
        ln -s /usr/local/sbin/saslpasswd /usr/sbin/saslpasswd
        ln -s /usr/local/lib/libsasl* /usr/lib/libsasl*
        ln -s /usr/local/lib/sasl/ /usr/lib/sasl/
6) Set up some links for the imapd build
        ln -s /usr/local/share/bison.simple /usr/lib/bison.simple
        ln -s /usr/include/et/com_err.h /usr/include/com_err.h
7) Build cyrus-imapd-2.0.12 as follows:
        ./configure --prefix=/usr --with-auth=unix --with-sasl=/usr/lib/sasl
        make depend
        (drink another beer)
        make all CFLAGS=-O
        (drink another beer)
        make install
8) Follow the rest of the instructions in the docs for installing and
configuring cyrus. (Creating the cyrus user, imapd.conf, cyrus.conf, etc.)

Cheers
Jim

Reply via email to