Re: Performance and cheap storage
Phil Pennock wrote: The easy fix is theoretically to configure up extra private addresses as aliases on the backend, and distribute the load over all of them. This avoids having multiple ports and multiple entries -- it's one cyrus.conf listening. The problem may be making sure that the front-end knows that several backends are tied together as being one real system, to avoid interesting failover effects. Why not have the extra IPs on the front-end? Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: can't find acap.h while building imapd-2.1.11
Matt Selsky wrote: I'm trying to build imapd-2.1.11 I unpacked the source tarball into a direction and then I build from another directory (since I have multiple architectures). I configured like this: $ ../../src/configure \ --prefix=/opt/cyrus-imapd-2.1.11 \ --with-cyrus-prefix=/opt/cyrus-imap-2.1.11 \ --with-cyrus-user=cyrusadm \ --with-cyrus-group=mailer \ --with-dbdir=/opt/BerkeleyDB.3.3 \ --with-auth=unix \ --enable-murder \ --disable-sieve \ --enable-fulldirhash \ --with-openssl \ --with-sasl=/opt/local $ make ### Making all in /src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap make[1]: Entering directory `/src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap' gcc -c -I/opt/BerkeleyDB.3.3/include -I/usr/local/include -I/opt/local/include -I. -I.. -I../lib -DHAVE_CONFIG_H -Wall -g -O2 \ ../../../src/acap/acapsieve.c ../../../src/acap/acapsieve.c:20: acap.h: No such file or directory make[1]: *** [acapsieve.o] Error 1 make[1]: Leaving directory `/src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap' make: *** [all] Error 1 acap.h does exist in ../../../src/acap/acap.h Should configure have added '$srcdir/.' to CPPFLAGS instead of '.' in the acap/Makefile? I had problems with the sieve and perl part too when trying to build out of the source directory. Acap and sieve were fixed with these patches, but I couldn't get the perl part to build. Seems I need to patch MakeMaker for this 8-( $ diff -u acap/Makefile.in.orig acap/Makefile.in --- acap/Makefile.in.orig Sat May 25 21:57:41 2002 +++ acap/Makefile.inSat Dec 7 20:40:04 2002 @@ -51,7 +51,7 @@ RANLIB = @RANLIB@ DEFS = @DEFS@ -CPPFLAGS = @CPPFLAGS@ @SASLFLAGS@ -I. -I.. -I../lib +CPPFLAGS = @CPPFLAGS@ @SASLFLAGS@ -I. -I.. -I$(srcdir) -I../lib LIBS = @LIBS@ CFLAGS = @CFLAGS@ diff -u sieve/Makefile.in.orig sieve/Makefile.in --- sieve/Makefile.in.orig Sat Dec 7 20:31:59 2002 +++ sieve/Makefile.in Sat Dec 7 20:32:47 2002 @@ -70,6 +70,8 @@ mv -f y.tab.h sieve.h addr-lex.c: addr-lex.l addr.h + $(LEX) $(srcdir)/addr-lex.l + mv -f lex.addr.c addr-lex.c addr.c addr.h: addr.y $(YACC) $(YFLAGS) -p addr $(srcdir)/addr.y -- Med venlig hilsen / Kind regards Hack Kampbjørn
Re: can't find acap.h while building imapd-2.1.11
Rob Siemborski wrote: On Tue, 10 Dec 2002, Hack Kampbjorn wrote: diff -u sieve/Makefile.in.orig sieve/Makefile.in --- sieve/Makefile.in.orig Sat Dec 7 20:31:59 2002 +++ sieve/Makefile.in Sat Dec 7 20:32:47 2002 @@ -70,6 +70,8 @@ mv -f y.tab.h sieve.h addr-lex.c: addr-lex.l addr.h + $(LEX) $(srcdir)/addr-lex.l + mv -f lex.addr.c addr-lex.c addr.c addr.h: addr.y $(YACC) $(YFLAGS) -p addr $(srcdir)/addr.y What make and lex are you using that requires this? I don't understand the need for the mv command at all. This is on a OpenBSD 3.2, so that would be bmake and flex: $ flex --version flex version 2.5.4 Without the explicit lex and mv I got this error as flex produced a lex.addr.c file and not lex.yy.c as make expected: $ make -f Makefile.orig flex ../../cyrus-imapd-2.1.11.orig/sieve/addr-lex.l mv lex.yy.c addr-lex.c mv: lex.yy.c: No such file or directory *** Error code 1 Stop in /usr/ports/mystuff/mail/cyrus-imapd/w-cyrus-imapd-2.1.11/build/sieve. What should I do instead? -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper -- Med venlig hilsen / Kind regards Hack Kampbjørn
Re: can't find acap.h while building imapd-2.1.11
Rob Siemborski wrote: On Tue, 10 Dec 2002, Hack Kampbjorn wrote: This is on a OpenBSD 3.2, so that would be bmake and flex: $ flex --version flex version 2.5.4 Okay, I'm guessing it's more bmake than flex, since the implicit rules supplied by gmake are creating this file like so: flex -t addr-lex.l addr-lex.c What should I do instead? Use gmake? ;) Seriously though, I highly doubt this is the only place in the code that there's problems with a non-GNU make. (Indeed, the same makefile has that problem with sieve-lex.c/sieve-lex.l). Or was this really the only problem? Yes, that's was the only make problem and only when builddir != srcdir. If you have a complete set of patches, I'm definately willing to look at them. Ok, my private OpenBSD port have these patches: patch-acap_Makefile_in patch-imap_duplicate_c patch-imap_sendmail-map_c patch-imtest_imtest_c patch-lib_auth_krb_c patch-lib_auth_krb_pts_c patch-lib_auth_krb_pts_h patch-lib_cyrusdb_db3_c patch-ptclient_ptloader_c patch-sieve_Makefile_in The acap and sieve are the ones I already sent. patch-imtest_imtest_c explicitly includes openssl/md5.h as OpenBSD 3.2 comes with OpenSSL 0.9.7-beta3 30 Jul 2002. I suppose this should check if OPENSSL_VERSION_NUMBER = 0x00907000L --- imtest/imtest.c.origMon Nov 4 17:10:32 2002 +++ imtest/imtest.c Sat Dec 7 15:39:54 2002 @@ -78,6 +78,7 @@ #ifdef HAVE_SSL #include openssl/ssl.h +#include openssl/md5.h static SSL_CTX *tls_ctx = NULL; static SSL *tls_conn = NULL; The rest changes db.h to db3.h as installed by the db3 port. OpenBSD has the original db1 as db.h. The configure script is smart enough to find db3 support with -ldb and db3.h but all the cyrus-imapd soruces has hardcoded db.h -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper -- Med venlig hilsen / Kind regards Hack Kampbjørn
Re: Cyrus SASL 2.1.10 Released
Hack Kampbjorn wrote: Rob Siemborski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to announce the release of Cyrus SASL 2.1.10 on ftp.andrew.cmu.edu. This version corrects a number of DIGEST-MD5 interoperability issues, as well as corrects some potential buffer overflows. It is recommended that all sites using a 2.x release upgrade to 2.1.10. Please send any feedback either to [EMAIL PROTECTED] (public list) or to [EMAIL PROTECTED] Download at: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.10.tar.gz or http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.10.tar.gz This includes two backup files which can be quite confusing: $ tar ztf ../../distfiles/cyrus-sasl-2.1.10.tar.gz cyrus-sasl-2.1.10/config/kerberos* cyrus-sasl-2.1.10/config/kerberos_v4.m4 cyrus-sasl-2.1.10/config/kerberos_v4.m4.orig cyrus-sasl-2.1.10/config/kerberos_v4.m4~ More problems: with cyrus-sasl version 2.1.9 plugins/otp.c only defined MD5_H for OpenSSL versions 0.9.7 but in version 2.1.10 the check is removed. OpenBSD 3.2 ships with OpenSSL 0.9.7-beta3 30 Jul 2000 (0x00907003L) and fails with this error: /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/plugins -I.. -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/include -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/lib -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/sasldb -I/usr/local/include -I/usr/include/kerberosIV -I/usr/include/kerberosV -I/usr/include -Wall -W -Wall -O2 -I/usr/include/kerberosV -c /usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/plugins/otp.c rm -f .libs/otp.lo cc -DHAVE_CONFIG_H -I. -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/plugins -I.. -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/include -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/lib -I/usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/sasldb -I/usr/local/include -I/usr/include/kerberosIV -I/usr/include/kerberosV -I/usr/include -Wall -W -Wall -O2 -I/usr/include/kerberosV -c /usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/plugins/otp.c -fPIC -DPIC -o .libs/otp.lo /usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/plugins/otp.c:59: invalid preprocessing directive name /usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/cyrus-sasl-2.1.10/plugins/otp.c:61: invalid preprocessing directive name *** Error code 1 Stop in /usr/ports/security/cyrus-sasl2/w-cyrus-sasl-2.1.10/build-i386/plugins. Adding the version check back fixes this problem. --- plugins/otp.c.orig Tue Dec 10 01:33:54 2002 +++ plugins/otp.c Tue Dec 10 01:39:44 2002 @@ -56,7 +56,9 @@ #include openssl/evp.h #include sasl.h +#if OPENSSL_VERSION_NUMBER 0x00907000L #define MD5_H /* suppress internal MD5 */ +#endif #include saslplug.h #include plugin_common.h - -Rob - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.76 iQA/AwUBPfTJjGes8cJc4y/MEQJkTACgrxUwOCBvIJ5uC8piWb89gMdPfJwAoJ37 uFcGZ9shhlkmhQ3aPSLYcUD9 =0UJK -END PGP SIGNATURE- -- Med venlig hilsen / Kind regards Hack Kampbjørn