| Installing qmail-ldap on Ubuntu Server (64bit)|
Jimmy Brake Jul 04, 2008
This document is borrowing heavily from http://www.lifewithqmail.org/ldap/#Installation and http://www.qmail-ldap.org/wiki/INSTALL I am just adding specific directions for Ubuntu Server 6.10 (64bit) and consolidating.
First you should follow my other tutorial on installing tinydns, this document assumes you are right where we left off.
Install needed packages.
(don't forget the password for slapd) -- this also install exim4 ... so at the some point we need to remove it
run this command:
move back to your /usr/src dir
get qmail/unzip it:
get the qmail-ldap patch from: http://www.qmail-ldap.org/wiki/Releases move into the qmail dir
unzip it and apply the patch ...
At this point you should be good to follow directions from step 5 at:
Open the makefile in ..
we add a line like this: LDAPFLAGS=-DQLDAP_CLUSTER -DDASH_EXT -DALTQUEUE -DBIGBROTHER -DQUOTATRASH
and uncomment this line
We then edit qmail-ldap.h -- you may not need to do this ...
#define LDAP_UID "uid"
#define LDAP_UID "mail"
Add all the users ...
then... umm if your using sendmail ... maybe not a good idea to do the nest step..
for some reason .. exim4 was running
configure the qmail-ldap ...
... here i have a script that I run and pulls this servers config from the db ....
I don't however have env's scripted
NOTE: I have a line about qmail-scanner .... that may not apply to your installation ... so don't use it unless you plan on using qmail scanner ... using the default install instructions from qmail-scanner instructions worked fine for me
installing qmail-scanner ... if you need it ...
find it unzip it then
cd into the dir the ./configure --archive yes
for mailing list support ...
find(use Google) .. ezmlm and ezmlm-idx tar files ... then unzip and follow install in the idx make sure to apply the patchs ..
... make setup did not work for me .. so i moved the new binary files manually
make a file foo2
You need to configure slapd .... for me slapd is a big gray area another sys admin installed and configured it ... check the qmail-ldap website for configuring slapd.
Okee Dokee ... tired yet? Anyhow lets move on to getting pop / imap working ....
Then update /etc/courier/authdaemonrc
Then update /etc/courier/authldap
Then restart the authdaemon.....
then test .... I update our provisioning tools to create both a mailbox and a list serve on the new node .. then test sending / recieving email / distribution ...
Page 1 of 1