Re: [Nolug] More Email Questions

From: Craig Jackson <craig.jackson_at_wild.net>
Date: Thu, 31 Jul 2003 09:56:32 -0500
Message-ID: <3F292E20.5000701@wild.net>

Mark A. Hershberger wrote:

>Craig Jackson <craig.jackson@wild.net> writes:
>
>
>
>> Yes, I agree with you but am having a heck of a time setting up the
>>exim+courier+ldap beast. I have read a few how tos but do not see
>>exactly how this is done.
>>
>>
>
>First: How is your directory set up?
>
>Do you have exim delivering messages?
>
>
>
>>I think this would make an excellent two or three part
>>presentation.
>>
>>
>
> Part 1. Directory Structure for Email server with Virtual Domains.
> Part 2. Exim Configuration for Delivering Email to Virtual
> Domains Using an LDAP back end.
> Part 3. Courier Configuration, Webmail
> Part 4. Server Side Filtering with Preferences in LDAP.
> Part 5. Administration tools for managing virtual domains.
>
>(I don't have part 4 complete yet. Haven't really gotten past cli
>tools for part 5 yet -- but I have a good idea for an Emacs LDAP admin
>interface.)
>
>
>
>>The first error I get is a courier: login NO Error using plain port
>>143 login. Can't get past that.
>>
>>
>
>So, I assume you have delivery working, right? For LDAP, Courier
>really needs authdaemon. For the record, I'm using Debian's 0.39.1-1
>package for this.
>
>Relevent line from authdaemonrc is
>
> authmodulelist="authldap"
>
>authldaprc has this:
>
> LDAP_SERVER = name
> LDAP_PORT = 389
> LDAP_BASEDN = o=top # You almost certainly need to change this
> LDAP_AUTHBIND = 1 # So it authenticates by binding as the user
> LDAP_MAIL = mail
> LDAP_DOMAIN = everybody.org # Change this
> LDAP_HOMEDIR = homeDirectory
> LDAP_MAILDIR = mailMessageStore
> LDAP_UID = uidNumber
> LDAP_GID = gidNumber
> LDAP_TLS = 1
>
>
>Note, that for this to work, you have to have anonymous browsing
>enabled at least for the mail attribute. That is,
>
> $ ldapsearch -x mail=test@example.com dn
>
>should return the dn of the object containing the
>mail=test@example.com. Authldap will use the dn to rebind with the dn
>and password. Of course, this means that you have to have simple
>(non-SASL) authentication enabled as well. (That's why I use TLS
>there.)
>
>Let me know how I can help,
>
>Mark.
>
>
>
Hey Mark,
Thanks for your response. I believe the problem is very basic. I have
compiled Exim4 from source
and it delivers fine. I have compiled Courier from source with a
straight forward
./configure, make, make install. No issues.

I am using Debian which I think is presenting the problem (for me that
is). I think the Debian libraries
are not where Courier is expecting to find them. So when I compile I
need to set CPPFLAGS and LDFLAGS.
The problem is getting this right. To start I want pam, userdb, and ldap
modules. I think setting the
configure options to the library locations will solve this, i.e

--with-db=/usr/lib/libdb-4.so

Hints?

Thanks,
Craig

-- 
Craig Jackson
__________________________
Wildnet Group LLC
103 North Park, Suite 110
Covington, Lousiana 70433
Office 985-875-9453
__________________________
___________________
Nolug mailing list
nolug@nolug.org
Received on 07/31/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST