qmail+ldap+control patch

This is a discussion on qmail+ldap+control patch within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; I correctly patched the qmail 1.03 source with the qmail-ldap patch and then the resulting source with the ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-24-2005
websavages
 
Posts: n/a
Default qmail+ldap+control patch

I correctly patched the qmail 1.03 source with the qmail-ldap patch
and then the resulting source with the qmail-ldap-control patch.

I edited the Makefile (see below) and ran make setup clean

Subsequently i followed the instructions on lifewithqmail.com to the
letter, but alas my build does not read the control files from the
ldap directory.

Can anyone help?

Cheers ws

Makefile

# Edit this few lines to configure your ldap stuff

# to enable some additional for qmail-ldap stuff put it on the
LDAPFLAGS line
#
# -DALTQUEUE to use a diffrent qmail-queue programm on runtime
# -DBIGBROTHER to use the control/bigbrother file to forward all mails
comming
# from a specified account to another (swiss bigbrother law)
# -DBIGTODO to enable the big todo patch (this can be used together
with
# EXTERNAL_TODO). Useful for servers with very many
non-preprocessed mails
# -DBIND_8_COMPAT need if the compile fails building dns.c because of
# undeclared defines. This is necessary on MacOS X 10.3.
# -DCLEARTEXTPASSWD to use cleartext passwords (bad idea on production
systems)
# -DDASH_EXT to enable the dash_ext patch for extended mail addresses
# -DDATA_COMPRESS to use the smtp on the fly DATA compression
# -DEXTERNAL_TODO to use the external high-performance todo processing
(this
# avoids the silly qmail syndrome with high injection rates)
# -DIGNOREVERISIGN to disallow dns wildchar matches on gtlds, thanks
verisign.
# -DQLDAP_CLUSTER for enabling cluster support
# -DQMQP_COMPRESS to use the QMQP on the fly compression (for
clusters)
# -DQUOTATRASH to include the Trash in the quota calculation (normaly
it is not)
# -DSMTPEXECCHECK to enable smtp DOS/Windows executable detection
LDAPFLAGS=-DSMTPEXECCHECK

# * These are some options to securly connect to the LDAP server
# -DSECUREBIND_SASL Bind using SASL
# -DSECUREBIND_SSL Encrypt the channel with SSL
# -DSECUREBIND_TLS Encrypt the channel with TLS (SSL v3)
# -DSECUREBIND_ALL All of the above...
#SECUREBIND=-DSECUREBIND_ALL

# * Log authentication success/failures in auth_{pop,imap,smtp}
#SYSLOGAUTH=-DSYSLOGAUTH

# -DUSE_RFC2307 -> Follow the RFC2307
# -DUSE_RFC822 -> Follow the RFC822
# See the QLDAPINSTALL file for more about this.
RFCFLAGS=-DUSE_RFC2307 -DUSE_RFC822

# to enable having the configuration (~control/* in the LDAP database
# to, uncomment the following line and read QLDAPINSTALL.
# -DUSE_CONTROLDB Search LDAP for control files
# -DQLDAP_BAILOUT First search LDAP, then FS
CONTROLDB=-DUSE_CONTROLDB

# Perhaps you have different ldap libraries, change them here
#LDAPLIBS=-L/usr/local/lib -lldap -llber
# and change the location of the include files here
#LDAPINCLUDES=-I/usr/local/include
# on Slowaris you need -lresolv and probably a LD_RUN_PATH added like
this:
#LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber -lresolv
-R/opt/OpenLDAP/lib
# for example on my Linux box I use:
#LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber
# if you need a special include-directory for ldap headers enable this
#LDAPINCLUDES=-I/opt/OpenLDAP/include
LDAPLIBS=-L/home/software/ldap/lib -lldap -llber
LDAPINCLUDES=-I/home/software/ldap/include

# ZLIB needed for -DDATA_COMPRESS and -DQMQP_COMPRESS
#ZLIB=-lz
# or you installed zlib in a different path you can use something like
this
#ZLIB=-L/opt/zlib/lib -lz
#ZINCLUDES=-I/opt/zlib/include

# TLS (SMTP encryption) in qmail-smtpd and qmail-remote, see
TLS.readme
# You need OpenSSL for this
# use -DTLS_REMOTE to enable tls support in qmail-remote
# use -DTLS_SMTPD to enable tls support in qmail-smtpd
# use -DTLSDEBUG to enable additional tls debug information in
qmail-remote
#TLS=-DTLS_REMOTE -DTLS_SMTPD
# Path to OpenSSL includes
#TLSINCLUDES=-I/usr/local/include
# Path to OpenSSL libraries
#TLSLIBS=-L/usr/local/lib -lssl -lcrypto
# Path to OpenSSL binary
#OPENSSLBIN=/usr/local/bin/openssl
#OPENSSLBIN=openssl
TLSINCLUDES=-I/home/software/ssl/include
TLSLIBS=-L/home/software/ssl/lib -lssl -lcrypto
OPENSSLBIN=/home/software/ssl/bin/openssl

# to make the Netscape download progress bar work with qmail-pop3d
# uncomment the next line (allready done)
#MNW=-DMAKE_NETSCAPE_WORK

# to enable the auto-maildir-make feature uncomment the next line
MDIRMAKE=-DAUTOMAILDIRMAKE

# to enable the auto-homedir-make feature uncomment the next line
#HDIRMAKE=-DAUTOHOMEDIRMAKE

# on most systems we need this to make auth_pop and auth_imap
SHADOWLIBS=-lcrypt
# OpenBSD and other Systems do not have libcrypt, so comment the line
out
# if you get linking problems.
# To use shadow passwords under some Linux OS, uncomment the next two
lines.
#SHADOWLIBS=-lcrypt -lshadow
#SHADOWOPTS=-DPW_SHADOW
# To use shadow passwords under Solaris, uncomment the SHADOWOPTS
line.

# to enable the possibility to log and debug imap and pop uncoment the
# next line
#DEBUG=-DDEBUG
# WARNING: you need a NONE DEBUG auth_* to run with inetd

# for profiling ...
#INCTAI=../libtai-0.60
#LIBTAI=../libtai-0.60

# Just for me, make from time to time a backup
BACKUPPATH=/backup/qmail-backup/qmail-ldap.`date "+%Y%m%d-%H%M"`.tar
# STOP editing HERE !!!

ifdef DEBIAN
DEBUG=-DDEBUG

LDAPFLAGS=-DALTQUEUE -DBIGBROTHER -DQLDAP_CLUSTER -DEXTERNAL_TODO
-DBIGTODO -DDASH_EXT -DDATA_COMPRESS -DQMQP_COMPRESS -DIGNOREVERISIGN
-DQUOTATRASH

SECUREBIND=-DSECUREBIND_SSL -DSECUREBIND_TLS
RFCFLAGS=-DUSE_RFC2307
CONTROLDB=-DUSE_CONTROLDB -DQLDAP_BAILOUT
SYSLOGAUTH=-DSYSLOGAUTH

LDAPLIBS=-L/usr/lib -lldap -llber
LDAPINCLUDES=-I/usr/include

ZLIB=-L/usr/lib -lz
ZINCLUDES=-I/usr/include

TLS=-DTLS_REMOTE -DTLS_SMTPD
TLSINCLUDES=-I/usr/include
TLSLIBS=-L/usr/lib -lssl -lcrypto
OPENSSLBIN=/usr/bin/openssl

MDIRMAKE=-DAUTOMAILDIRMAKE
HDIRMAKE=-DAUTOHOMEDIRMAKE
SHADOWLIBS=-lcrypt
endif

# Don't edit Makefile! Use conf-* for configuration.

SHELL=/bin/sh

#ifdef LDAPFLAGS
QLDAPLIB=qldap.a
#else
#ifdef SECUREBIND
#QLDAPLIB=qldap.a
#endif
#endif

#ifdef SECUREBIND
#SECUREBINDLIBS=getopt.a substdio.a
#SECUREBINDLIB1=case_diffb.o constmap.o
#endif

#ifdef CONTROLDB
NEWLDAPPROGLIBS=control.o stralloc.a fs.a
#ifdef DEBUG
#CONTROLLIBS=read-ctrl.o case.a env.a
#else
CONTROLLIBS=read-ctrl.o case.a
#endif
#else
#AUTOBREAKLIB=auto_break.o
#endif

# This sums it up nice and correctly, I think!
#LDAPFLAGS := $(LDAPFLAGS) $(DEBUG) $(CONTROLDB) $(RFCFLAGS)
$(SECUREBIND)

default: it ldap

ldap: qmail-quotawarn qmail-reply auth_pop auth_imap auth_smtp digest
\
qmail-ldaplookup pbsadd pbscheck pbsdbd qmail-todo qmail-forward \
qmail-secretary qmail-group qmail-verify condwrite qmail-cdb \
qmail-imapd.run qmail-pbsdbd.run qmail-pop3d.run qmail-qmqpd.run \
qmail-smtpd.run qmail.run qmail-imapd-ssl.run qmail-pop3d-ssl.run \
Makefile.cdb-p
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0