PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Sendmail 8.13.4 und SASL2 ?



linuxhanz
16.04.05, 01:58
Hallo Hacker,

Ich versuche sendmail vom source her zu installieren:
gibt es irgendwo ein gutes HOWTO , um Sendmail 8.13.4 mit SASL2 zu kompilieren
und installieren?



,strings /usr/sbin/sendmail|grep sasl
[hier fehlt sasl_init usw...]
groupreadablesasldbfile
groupwritablesasldbfile
@(#)$Id: sasl.c,v 8.21 2004/11/22 23:09:00 gshapiro Exp $
@(#)$Id: sfsasl.c,v 8.101 2004/12/15 22:45:55 ca Exp $


COMPILE AUZUG:
-------------
cc -O2 -I. -I../../include -I/opt/nph/include -I/usr/local/ssl/include -DNEWDB
-DPH_MAP -UNIS -DSTARTTLS -DSASL=2 -c -o assert.o assert.c
cc -O2 -I. -I../../include -I/opt/nph/include -I/usr/local/ssl/include -DNEWDB
-DPH_MAP -UNIS -DSTARTTLS -DSASL=2 -c -o debug.o debug.c
[..]



PATH:
,echo $PATH
/usr/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:

Meine site.config.m4 (sasl2 abschnitt)
--------------------------------------------------

dnl #
dnl # SMTP-AUTH (a.k.a. SASL v2 support)
dnl#
APPENDDEF(`confENVDEF', `-DSASL=2')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl2')
dnl APPENDDEF(`confINCDIRS', `-Iwhereis sasl2

,whereis sasl2
sasl2: /usr/lib/sasl2 /usr/local/lib/sasl2
/usr/include/sasl')

,head -15 Makefile
# $Id: Makefile.dist,v 8.15 2001/08/23 20:44:39 ca Exp $
ENVDEV=-DPICKY_HELO_CHECK -DSASL=2
LDADD=-lsasl2
SHELL= /bin/sh
SUBDIRS= libsm libsmutil libsmdb sendmail editmap mail.local \
mailstats makemap praliases rmail smrsh vacation libmilter
# libmilter: requires pthread
BUILD= ./Build

,cat /etc/ld.so.conf
#/usr/lib/mysql
/usr/local/lib/sasl2
/usr/local/lib
/usr/lib/sasl2

sendmail.h:

#if SASL /* include the sasl include files if we have them */


# if SASL == 2 || SASL >= 20000
# include <sasl/sasl.h>
# include <sasl/saslutil.h>
# else /* SASL == 2 || SASL >= 20000 */
# include <sasl.h/sasl.h>
# include <sasl.h/saslutil.h>
# endif /* SASL == 2 || SASL >= 20000 */
# if defined(SASL_VERSION_MAJOR) && defined(SASL_VERSION_MINOR) && defined(SASL_
VERSION_STEP)
# define SASL_VERSION (SASL_VERSION_MAJOR * 10000) + (SASL_VERSION_MINOR * 100
) + SASL_VERSION_STEP
# if SASL == 1 || SASL == 2
# undef SASL
# define SASL SASL_VERSION
# else /* SASL == 1 || SASL == 2 */
# if SASL != SASL_VERSION
ERROR README: -DSASL (SASL) does not agree with the version of the CYRUS_SASL
library (SASL_VERSION)
ERROR README: see README!
[..]

cyrus-sasl-2.1.19 Command Line:
---------------------------

$ ./configure --enable-anon --enable-plain --enable-login --disable-krb4 --wit
h-saslauthd=/var/run/saslauthd --with-openssl=/usr/include/openssl --with-plugin
dir=/usr/local/lib/sasl --enable-cram --enable-digest --enable-otp
[..]
configure: exit 0




Bitte keine "Nimm Postfix o.ae. Antworten. Es geht um SENDMAIL!"
Vielen Dank fuer den kleinsten Hinweis.


gruss L.H.


UPDATE
-------
Hm mit ./Build -c habe ich jetzt erstmal SASL1