Re: Could not open DB

From: Dirk Tamme (tamme at unicon-gmbh dot com)
Date: Fri Mar 26 2004 - 04:14:41 EST

  • Next message: Andreas Winkelmann: "Re: Could not open DB"

    Andreas Winkelmann wrote:

    >Am Freitag, 26. März 2004 08:51 schrieb Dirk Tamme:
    >
    >
    >
    >>The program call
    >>saslauthd -a shadow
    >>works, after I had created the directories /var/state and
    >>/var/state/saslauthd
    >>Then I changed the contents of Sendmail.conf into
    >>pwcheck_method: shadow
    >>The passwords are "shadowed" so it should work.
    >>After rebuildind and restart sendmail, I tried to send an mail using
    >>authentication and got
    >>the same error , giving in logall:
    >>
    >> Could not open db
    >>
    >>I also changed the contents of Sendmail.conf into
    >>pwcheck_method: saslauthd
    >>It gives the same error.
    >>
    >>What I already found out is that I don't have /etc/sasldb2.
    >>Should I create this DB, and what I have to do in this case?
    >>
    >>
    >
    >Hmm, if you use Suse8.1, please check against which version of Cyrus-SASL
    >sendmail is linked. I know only Postfix, it is linked against sasl1 but the
    >saslauthd which is installed on 8.1 is from sasl2.
    >
    ># ldd /path/to/sendmail
    >
    >
    Here is what I get:
         ldd /usr/sbin/sendmail
            libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4001a000)
            libdb-4.0.so => /usr/lib/libdb-4.0.so (0x4002e000)
            libresolv.so.2 => /lib/libresolv.so.2 (0x400d4000)
            libcrypt.so.1 => /lib/libcrypt.so.1 (0x400e6000)
            libnsl.so.1 => /lib/libnsl.so.1 (0x40117000)
            libdl.so.2 => /lib/libdl.so.2 (0x4012c000)
            libc.so.6 => /lib/libc.so.6 (0x40130000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
    This means, libsasl2.so.2 is linked.
    Is it necessary to start saslauthd after compiling cyrus-sasl?
    What I have done to install cyrus-sasl is

    cd /usr/local/src
    wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.18.tar.gz
    tar -xzf cyrus-sasl-2.1.18.tar.gz
    cd cyrus-sasl-2.1.18
    ./configure --prefix=/usr/local --enable-plain --enable-login --disable-krb4
    make
    make install
    ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
    cp /usr/local/lib/libsasl2.so.2.0.18 /usr/lib/libsasl2.so.2.0.18
    cd /usr/lib
    ln -s libsasl2.so.2.0.18 libsasl2.so.2
    ldconfig -f /usr/local/lib/sasl2

    Yours,
                Dirk Tamme


  • Next message: Andreas Winkelmann: "Re: Could not open DB"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD