LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 05-12-2005, 03:12 AM   #1
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Rep: Reputation: 0
Postfix with Ldap : how to


Hello all,

I want to setup one mailing server on Redhat Linux EL with
==<> Postfix 2.2
==<> Openldap
==<> JAMM
==<> Courier IMAP
==<> SPAM
==<> Claim AV
==<> Sqirrilmail

I successfully install and able to send the mail after configuring Postfix 2.2.
But i am not able to connect it with LDAP server.
I have done Ldap server but not for any mailing server.Now i want to connect Ldap with Postfix .
I used http://www.postfix.org/LDAP_README.html link for configuration but
== m not able to find the postfix-ldap package.. i found but for debian system.Please help in getting for Linux
== secondaly i dont know how to connect it with Postfix.
== If possible can you suggest how many servers i need to set up all this and which server.

Please help me in this.

Thanks to all
KeepsmilinG
 
Old 05-12-2005, 09:59 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
The readme you mentioned contains instructions on building the openldap client libraries from source, namely,
Code:
% ./configure  --without-kerberos --without-cyrus-sasl --without-tls \
    --without-threads --disable-slapd --disable-slurpd \
    --disable-debug --disable-shared
So, you can just get the source code from openldap.org and build your own, which is what I did. Works fine.

[edit: before compiling your own package, you should check your own distribution's package repositories to see if one is available. e.g. if you use Fedora, there is no need to compile your own, as there are RPMs available.]

Last edited by Berhanie; 05-12-2005 at 10:23 AM.
 
Old 05-12-2005, 11:16 PM   #3
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Original Poster
Rep: Reputation: 0
ill be thankful to you that you shows your interest but
The link i have given with my problem is talking about package "postfix-ldap" which m not able to find.
And if i run that configure command on simple ldap package then it will not create file in /etc/postfix/
thats why m stuck here.

M working on Redhat Linux EL version and there is Ldap package already with it but there is no postfix scema in that..somehow i downloaded that scema, but still its not working.

Please help me if you tell me from where i get "postfix-ldap" package for LINUX. I have this package but for DEBIAN system.

ThankS
KeepsmilinG
 
Old 05-13-2005, 09:18 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Postfix can be compiled to support various things: ldap, mysql, tls, etc.
postfix-ldap is simply a Debian package of postfix compiled with ldap support. Since you're using RedHat, you should probably not use the Debian package.

However, take a look at the output of the following command:
Code:
 postconf -m
If you see 'ldap' in the list, it means you already have support for ldap, so you're in business.

Once you have postfix with ldap support, you still need the ldap client libraries (so postfix can query an ldap server somewhere). For that you either find the appropriate rpm -- in Fedora, it's called openldap-clients, I think -- or compile them from source (that's what the ./configure... business in my previous post was about).

To summarize, there are two pieces of software that you need:
(1) postfix with ldap support (which you might already have)
(2) ldap client (which you might also already have -- check with 'rpm -q')

Last edited by Berhanie; 05-13-2005 at 06:02 PM.
 
Old 05-15-2005, 11:33 PM   #5
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Original Poster
Rep: Reputation: 0
Hello,

sir i tried your command

i have the following ldap RPM installed on my system
==openldap-2.0.27-11
==openldap-servers-2.0.27-11
==openldap-devel-2.0.27-11
==openldap-clients-2.0.27-11

Output of postconf -m is
------------------------------
[root@vipspark root]# postconf -m
btree
cidr
environ
hash
nis
pcre
proxy
regexp
static
unix
[root@vipspark root]#

And i am able to run ldap successfully for normal entries like sample record is
-----------------------------------------------------------------------------------------
dn: cn=vipi, ou=People, dc=vipspark,dc=com
telephoneNumber: 9891222221
description: se
objectClass: top
objectClass: person
sn: vipra
cn: vipi

BUT if i try to add mail attribute then it says cant add mail attrbute

i have also taken postfix.schema from internet, Still m nt able to do it.

Please pass your suggestion after all above report.

ThanU
----------
KeepsmilinG
 
Old 05-17-2005, 04:07 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
It looks like the postfix package you installed does not have support for ldap. You should look for the appropriate RPM at whatever official repository you use.

Your other question -- adding a mail attributes to ldap entries -- relates to the running an ldap server, something I don't know anything about. I do know how to query an ldap server using postfix, and the readme you mentioned has everything you need to know -- once you have a working ldap server. Sorry I can't be of any more help.
 
Old 05-17-2005, 11:03 PM   #7
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Original Poster
Rep: Reputation: 0
Thanku sir for your help.
But still if you able to help in in this ill be greatful to you.

ThankU
KeepsmilinG
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix and LDAP - Virtual User Question mephitic Linux - Software 0 10-04-2005 09:27 AM
Ldap for postfix jkmartha Linux - Software 1 05-14-2005 09:46 PM
postfix/ldap/monit : where does the problem lie topcat Linux - Software 1 11-23-2004 10:28 PM
Adding Postfix And LDAP to SUSE 9.0 Pro ombill Linux - Software 2 08-02-2004 04:39 AM
Cyrus, pam_ldap, ldap postfix installation mayankjohri Linux - Software 0 07-18-2002 06:09 AM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration