On 15 Aug 2001 15:34:52 +0100, Catherine Roantree wrote:
> Installation details and error messages are listed below. Any ideas on what
> I am doing wrong or missing?
> (Apologies for the long message).
>
> (Using: RedHat 7.1; Berkeley 3.3.11; Cyrus-SASL 1.5.24; Cyrus-IMAP 2.0.16;
> Sendmail 8.11.2)
>
Does this RedHat system have all applicable updates from RedHat
installed? In particular, the as shipped copy of 7.1 has a number of
fairly serious flaws with the compiler, glibc, and several other things.
> 1. Re-installed RedHat 7.1. Installed Berkeley to usr/local/BerkeleyDB.3.3/
> # export LIBRARY_PATH=/usr/local/BerkeleyDB.3.3/lib/
> # export C_INCLUDE_PATH=/usr/local/BerkeleyDB.3.3/include/
> # export LDFLAGS=-R//usr/local/BerkeleyDB.3.3/lib/
>
Hmm, I dunno is SASL & Cyrus are fully compatible with BerkeleyDB 3.3.
I've got several RedHat boxes running Cyrus+SASL against BerkeleyDB 3.2,
which I know to work properly. I'd recommend that you stay with the
latest 3.2 version.
> 2. Installed SASL with following configuration
> # ./configure --prefix=/usr --disable-gssapi --disable-krb4
> --with-dblib=berkeley
>
Hmmm, SASL is included in the RedHat 7.1 installation (sendmail depends
on it). Did you remove cyrus-sasl-1.5.24-17 & cyrus-sasl-devel-1.5.24-17
before installing the locally built copy? Doing that you'll also need to
remove RedHat's sendmail package and build your won from source.
I normally just user the RedHat copy of SASL it's 1.5.24, which is the
same version you installed.
> 3. IMAP
> #useradd -g mail cyrus
> Copied bison.simple to /usr/local/share/ and com_err.h to usr/include/ as
> these gave problems before.
>
You don't need to do either of the file 'fixes'. The bison fix isn't
needed, and there's a configure option for the com_err problem.
> # ./configure --ith-auth=unix --prefix=/usr --sysconfdir=/etc
> --localstatedir=/var \
> --with-sasl=/usr/lib/sasl/ --without-krb
> --with-dbdir=/usr/local/BerkeleyDB.3.3/
Well any incompatabilities with BerkeleyDB 3.3 are a moot point. If you
look at the configure output carefully I believe you'll find that
configure picked the DB3 libs that RedHat has installed for rpm
(actually BerkeleyDB 3.1). The problem there is that the search order in
configure has libdb.a last. The install of BerkeleyDB creates
/usr/local/BerkeleyDB-3.3/lib/libdb.a, so the RedHat DB3 libs are found
before configure looks in /usr/local/BerkeleyDB-3.3/lib. Fix that by
using BerkeleyDB-3.2 and copying or linking
/usr/BerkeleyDB-3.2/lib/libdb.a to /usr/BerkeleyDB-3.2/lib/libdb-3.2.a
The set of configure options that I use are:
./configure --with-auth=unix --without-krb --without-ucdsnmp \
> --with-perl=/usr --with-dbdir=/usr/local/BerkeleyDB-3.2 \
> --with-com_err=yes
The perl & com_err options fix the problem above and the failure of
cyradm to run shown below.
> # make depend
> # make all CFLAGS=-O
> # make install
> # cp master/conf/normal.conf /etc/cyrus.conf
>
> 4. Created directories /var/imap, /var/pwcheck, /var/spool/imap,
> /usr/sieve.
> Set owners cyrus, mail and changed permissions to 750.
> # su cyrus
> # tools/mkimap
> # exit
>
> # cd /var/imap
> # chattr +S . user quota user/* quota/*
> # chattr +S /var/spool/imap
> # chattr +S /var/spool/mqueue
>
> 5. Created file /etc/imapd.conf as follows:
> configdirectory: /var/imap
> partition-default: /var/spool/imap
> admins: cyrus
> sendmail: /usr/sbin/sendmail
> # chown cyrus:mail /etc/imapd.conf
>
> 6. Edited /etc/services file to include imap, sieve, etc. No references to
> imap in xinetd.
>
> 7. Started cyrus, error messages as follows:
>
Okay, all of that looks fine.
> [root@mail /]# tail /var/log/messages
> Aug 15 12:34:16 mail master[893]: process 897 exited, signaled to death by
> 11
> Aug 15 12:42:35 mail master: unable to change limit of file descriptors
> available
> Aug 15 12:42:35 mail master[928]: process started
> Aug 15 12:42:35 mail ctl_mboxlist[930]: running mboxlist recovery
> Aug 15 12:42:35 mail master[928]: process 930 exited, signaled to death by
> 11
> Aug 15 12:42:35 mail master[928]: process 933 exited, signaled to death by
> 11
> Aug 15 12:42:35 mail master[928]: ready for work
> Aug 15 12:42:35 mail ctl_mboxlist[935]: checkpointing mboxlist
> Aug 15 12:42:35 mail master[928]: process 937 exited, signaled to death by
> 11
> Aug 15 12:42:35 mail master[928]: process 935 exited, signaled to death by
> 11
>
Looks to be either the classic DB problem or possibly results from the
shipped version of the compiler. Given the liberties that it appears you
took with SASL vs the installed copy, there could be a problem there
also. I'm not sure if a locally built SASL will exactly overlay the
system copy or not. If it doesn't there could well be some "loadable
library confusion"
> [root@mail /]# cyradm localhost -u admin
> Can't load
> '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/Cyrus/IMAP/IMAP.so' for
> module Cyrus::IMAP: libdb-3.3.so:
> cannot load shared object file: No such file or directory at
> /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 200.
> at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 43
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 43.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 43.
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Shell.pm line 58.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Shell.pm line 58.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
>
--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Jim Levie email:
[EMAIL PROTECTED]
Dynetics Inc, Huntsville, Al Ph. 256.964.4337
The opinions expressed above are just that...