LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2005, 12:16 AM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
postfix & openLDAP


hi there,

i'm trying to get postfix to get it's aliases from my OpenLDAP server. i've got O'Reilly's 'LDAP system administration' book infront of me and i've followed it to the letter.

in my /etc/postfix/main.cf i've added the following lines

alias_maps = ldap:ldapaliases

ldapalias_server_host = localhost
ldapalias_search_base = ou=people,dc=fedora,dc=directory,dc=server
ldapalias_scope = sub
ldapalias_query_filter = (uid=%s)
ldapalias_result_attribute = mail

and when i run the 'test command' it seams to work.

[root@fedora /]# postmap -q jack ldap:ldapalias
jack.law@fedora.directory.server

but i just don't understand how it's going to work, when i go to

http://fedora.directory.server/IlohaMail/

i can't login using my LDAP user/pass because it's authenticating against my unix accounts. so how can i send an e-mail from the user 'jack' and check if it came from the alias 'jack.law@fedora.directory.server'? how can i send an e-mail to 'jack.law@fedora.directory.server' and then check that it came?

also, i'm a webmin user and i love everything webmin.

when i go into the postfix module on webmin, then into the mail aliases section, it's empty?

and when i try and click on LDAP lookups it says.


It seems that LDAP is nonexistent in your Postfix system

any advice?
 
Old 10-27-2005, 11:33 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You can always telnet to port 25 and submit mail from 'jack' manually:

Code:
$ telnet localhost 25
EHLO localhost
MAIL FROM:<jack@domain>
RCPT TO:<me@domain>
DATA
test message
.
You might also see if you can make use of sendmail -bv.

As an aside, check out the LDAP README on the postfix site, since the grammar for ldap lookups through postfix has been streamlined.
 
  


Reply



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+OpenLDAP+Oracle+Security lynos Linux - Networking 0 08-29-2005 08:23 AM
OpenLDAP & samba PDC paul_mat Linux - Networking 5 08-26-2005 12:01 AM
Active Directory & OpenLDAP to synchronize paul_mat Linux - Networking 1 08-13-2005 06:32 AM
OpenLDAP & Paged_Results / RFC2696 bentz Linux - Networking 0 02-16-2004 09:21 AM
OpenLDAP schema for mail (postfix/sendmail/...) nielchiano Linux - Software 0 02-15-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration