[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plese HELP Zmailer not check USER for Ldap Server



Machine:
	DEC Alpha 2100    O/S Tru64 v5.0
	uname -a :
	OSF1 ace.elektra.ru V5.0 1094 alpha
	gcc --version :
	3.0
	
	

OpenLdap:
	OpenLdap  2.0.12
	configure --prefix=/usr/local --disable-shared
	make depend
	make 
	make install
	
	slapd.conf
		database        ldbm
		suffix          "dc=elektra,dc=ru"
		rootdn          "cn=root,dc=elektra,dc=ru"
		rootpw          12345
		directory       /var/lib/ldap/openldap-ldbm

	ldapadd -D "cn=root,dc=elektra,dc=ru" -W -f add.ldif
		dn: uid=javoroleg,ou=mail,o=gvce,dc=elektra,dc=ru
		uid: Javoroleg
		cn: Oleg
		sn: Javoronkov
		userPassword: 12345
		telephoneNumber: 2205756
		description: My test User
		objectclass: uidObject
		objectclass:
person                                                                                         
install complit ok !
----------------------------------------------------------------
Zmailer:
Version:  last CVS Tree

./configure \
--prefix=/usr/local/zmailer \
--with-mailbox=/var/spool/mail \
--with-postoffice=/var/spool/postoffice \
--with-system-malloc \
--with-mailshare=/etc/zmailer \
--with-mailvar=/etc/zmailer \
--with-logdir=/var/log/zmailer \
--with-zmailer-conf=/etc/zmailer/zmailer.conf \
--with-openssl \
--with-ldap-prefix=/usr/local \
--with-ldap-include-dir=/usr/local/include \
--with-ldap-library-dir=/usr/local/lib \
--with-mboxquotacheck \
--with-gcc                                                                                                  


make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Trouble
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../include -I../include -I..   -o
smtpserver smtpserver.o rfc821scn.o
debugreport.o fdstatfs.o policytest.o cfgread.o smtpdata.o smtpcmds.o
smtphelp.o smtprouter.o smtpchild.o mxverify.o contentpolicy.o
smtpauth.o zpwmatch.o smtptls.o zpwmatch-pipe.o smtpetrn.o wantconn.o
version.o -L../libs -lzm -lzc -lident -lta  -lc -ldb
/usr/bin/ld:
Unresolved:
_getaddrinfo_
collect2: ld returned 1 exit status
make[1]: *** [smtpserver] Error 1
make[1]: Leaving directory `/home/src/zm/smtpserver'
make: *** [all] Error
1                                                                                     
--with-openssl \
--with-ldap-prefix=/usr/local \
--with-ldap-include-dir=/usr/local/include \
--with-ldap-library-dir=/usr/local/lib \
--with-mboxquotacheck \
--with-gcc                                                                                                  

		edit config.h
		#define HAVE_GETADDRINFO 1
		cd smtpserver
		make clean
		make
		cd ..
make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Trouble
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
make[2]: Leaving directory `/home/src/zm/router'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../include -I../include -I..
-I./../libsh -I../libsh -I.  -c version.c
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../include -I../include -I..
-I./../libsh -I../libsh -I.  -o router.xrouter.o dateparse.o conf.o
functions.o db.o shliaise.o rfc822.o rfc822hdrs.o rfc822walk.o
daemonsub.o rtsys
log.o ../scheduler/pipes.o ../scheduler/resources.o version.o -L../libs
-lzmdb -lsh -lzm -lzc -lta  -lc -ldb
 -L/usr/local/lib/lib -lldap -llber
/usr/bin/ld:
Unresolved:
SSL_load_error_strings
SSL_library_init
X509V3_add_standard_extensions
SSLv23_method
SSL_CTX_new
SSL_CTX_set_cipher_list
................

		cd router
		edit Makefile
		add ROUTER_LIB= .... -lssl -lcrypto
		cd ..
make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Trouble
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
make[2]: Entering directory `/home/src/zm/transports/mailbox'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..  -DBIFF -DRBIFF -DRBIFF_ALWAYS
-c ./mailbox.c
In file included from mailbox.c:101:
dotlock.c: In function `dotlock':
dotlock.c:85: warning: implicit declaration of function `gethostid'
mailbox.c: In function `acquire_flocklock':
mailbox.c:1007: warning: implicit declaration of function `flock'
mailbox.c: In function `createfile':
mailbox.c:2700: `stat' undeclared (first use in this function)
mailbox.c:2700: (Each undeclared identifier is reported only once
mailbox.c:2700: for each function it appears in.)
make[2]: *** [mailbox.o] Error 1
make[2]: Leaving directory `/home/src/zm/transports/mailbox'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/src/zm/transports'
make: *** [all] Error 1
		cd transports/mailbox
		edit mailbox.c
		add #define lstat stat
		cd ../..
make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Trouble
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
make[2]: Entering directory `/home/src/zm/transports/mailbox'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..  -DBIFF -DRBIFF -DRBIFF_ALWAYS
-c ./fmtmbox.c
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..  -o mailbox mailbox.o version.o
lock.o sieve.o fmtmbox.o -L../../libs -lta -lzm -lzc -lsfio
/usr/bin/ld:
Unresolved:
checkmbsize
collect2: ld returned 1 exit status
make[2]: *** [mailbox] Error 1
make[2]: Leaving directory `/home/src/zm/transports/mailbox'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/src/zm/transports'
make: *** [all] Error 1
		edit config.h
		#undef CHECK_MB_SIZE

does CHECK_MB_SIZE work ????
make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Trouble
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
make[2]: Entering directory `/home/src/zm/transports/smtp'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..    -c -o smtp.o smtp.c
smtp.c: In function `smtpconn':
smtp.c:2133: warning: int format, different type arg (arg 3)
smtp.c: In function `vcsetup':
smtp.c:3117: `ENONET' undeclared (first use in this function)
smtp.c:3117: (Each undeclared identifier is reported only once
smtp.c:3117: for each function it appears in.)
make[2]: *** [smtp.o] Error 1
make[2]: Leaving directory `/home/src/zm/transports/smtp'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/src/zm/transports'
make: *** [all] Error 1
		edit smtp.c
		delete line 3117
make
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Trouble
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
make[2]: Entering directory `/home/src/zm/transports/smtp'
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..    -c -o smtp.o smtp.c
smtp.c: In function `smtpconn':
smtp.c:2133: warning: int format, different type arg (arg 3)
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..    -c -o appendlet.o appendlet.cgcc -Wall -g -O2 
-DHAVE_CONFIG_H -I./../../include -I../../include -I../..    -c -o
smtptls.o smtptls.c
gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../../include -I../../include
-I../..    -c -o getmxrr.o getmxrr.c
In file included from getmxrr.c:8:
../../include/libc.h:72: redefinition of `socklen_t'
../../include/libc.h:72: `socklen_t' previously declared here
getmxrr.c: In function `getmxrr':
getmxrr.c:239: warning: long int format, different type arg (arg 3)
make[2]: *** [getmxrr.o] Error 1
make[2]: Leaving directory `/home/src/zm/transports/smtp'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/src/zm/transports'
make: *** [all] Error 1
		edit libc.h
		delete line 72
make
done .....
make install
/usr/local/zmailer/bin/post-install -MD5
/usr/local/zmailer/bin/zmailer newdb
/usr/local/zmailer/bin/policy-builder.sh
1. create file /etc/zmailer/db/fullnames.ldap
	base            ou=mail,o=gvce,dc=elektra,dc=ru
	ldaphost        localhost
	filter          (&(objectclass=person)(mailAlternateAddress=%s))
	attr            uid

2. add string "relation -mt ldap -f $MAILSHARE/db/fullnames.ldap
fullnamemap"
in /etc/zmailer/router.cf file

3. run ldap server: /usr/local/libexec/slapd -d 256  (debug connection
and search)

4. zmailer newdb
newdb ( otherservers{otherservers_1} fqdnaliasesldap{fqdnaliasesldap_1}
expired{expired_1} userdb{userdb_1:NEW,userdb_2} newsgroup{newsgroup_1}
fqdnaliases{fqdnaliases_1:NEW,fqdnaliases_2} fullnamemap{fullnamemap_1}
aliases{aliases_1:NEW,aliases_2} routesdb{routesdb_1:NEW,routesdb_2}
iproutesdb{iproutesdb_1} thishost{thishost_1:NEW,thishost_2} )

5. zmailer start
Starting ZMailer mail server: router scheduler smtpserver

6. router -i
ZMailer router (2.99.55-patch1 #4: Fri Sep  7 14:45:57 MSD 2001)
  root@ace.elektra.ru:/home/src/zm/router
Copyright 1992 Rayan S. Zachariassen
Copyright 1992-2000 Matti Aarnio
Configured with command: 'CC='gcc -Wall' CFLAGS='-g -O2' ./configure
--prefix=/usr/local/zmailer --with-mailbox=/var/spool/mail
--with-postoffice=/var/spool/postoffice --with-mailvar=/var/zmailer
--with-logdir=/var/log/zmailer --with-zmailer-conf=/etc/zmailer.conf
--with-openssl --with-ldap-prefix=/usr/local
--with-ldap-include-dir=/usr/local/include
--with-ldap-library-dir=/usr/local/lib --with-mboxquotacheck --with-gcc'

z# router javoroleg
<root.interactive@>: address: javoroleg
(((error nosuchuser javoroleg@elektra.ru default_attributes)))

-----------------------------------------------------------------------
Resume:
zmailer not connect to ldap server an not search user javoroleg in ldap
databass

plese help me !
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi