Cyrus SASL 2.1.19 on Solaris 9

From: Gerard Braad (spotlight media) (g_braad@spotlightmedia.nl)
Date: Wed Jul 09 2003 - 14:33:55 EDT


Hello,

i'm trying to get Cyrus SASL and IMAPd working on my Solaris Sparc. I
have it working with DIGEST-MD5 and CRAMMD5... but since some people
also use outlook express, i want to also enable LOGIN and PLAIN. For
some reason this does not work.

I'm using Solaris 9 on a Netra T1, using packages from sunfreeware (like
gcc, make, ssl, etc).

I would like to get the authentication methods LOGIN and PLAIN to work,
besides DIGEST-MD5 and CRAMMD5. My configure script for SASL is:
./configure --prefix=/usr/local/cyrus/ --exec-prefix=/usr/local/cyrus
--with-openssl=/usr/local/ssl/ --with-sasl=/usr/local/cyrus/
--with-perl=/usr/local/bin/perl
--with-bdb-libdir=/usr/local/BerkeleyDB.3.3/lib/
--with-bdb-incdir=/usr/local/BerkeleyDB.3.3/include/ --enable-plain
--enable-login --disable-krb4 --disable-gssapi

and for IMAPd it is:
./configure --prefix=/usr/local/cyrus/ --exec-prefix=/usr/local/cyrus
--with-cyrus-prefix=/usr/local/cyrus --with-cyrus-user=cyrus
--with-openssl=/usr/local/ssl/ --with-sasl=/usr/local/cyrus/
--with-perl=/usr/local/bin/perl
--with-bdb-libdir=/usr/local/BerkeleyDB.3.3/lib/
--with-bdb-incdir=/usr/local/BerkeleyDB.3.3/include/

Cyrus works only for clients with some form of security, since imtest
responds with:
S: * OK dageraad Cyrus IMAP4 v2.1.14 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=DIGEST-MD5
AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE DIGEST-MD5
<snip>

I start the Cyrus daemon with a init script, containing the following
fragment:
<!-- bgn -->
PREFIX=/usr/local/cyrus
EXEC=master
SASL_PATH=$PREFIX/lib/sasl2
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib:$PREFIX/lib/:$LD_LIBRARY_PATH
PATH=$PREFIX/bin:$PREFIX/sbin:$PATH
export PROG PREFIX EXEC LD_LIBRARY_PATH PATH SASL_PATH
 
case "$1" in
        start)
                $PREFIX/bin/$EXEC & #$@
                ;;
        stop)
                pkill $EXEC
                ;;
        restart)
                $0 stop
                $0 start
                ;;
        test)
                $PREFIX/bin/imtest -a cyrus localhost
                ;;
        cyradm)
                $PREFIX/bin/cyradm --user cyrus localhost
                ;;
        *)
                echo $"Usage: $0 (start|stop|restart|test|cyradm)"
                exit 1
esac
<!-- end -->

Take note: Cyrus works for simple mail delivery and reading using for
example with Ximian's Evolution. I would also appreciate it if someone
knew a way to get SSL working usingthe sunfreeware packages. I tried
compiling SASL with 'env CPPFLAGS="-I/usr/local/ssl/include"
LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib"' but that didn't
work.

greetings,

Gerard Braad
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:44 EDT