Networking Forums

Networking Forums > Computer Networking > Linux Networking > Postfix+LDAP

Reply
 
 
=?iso-8859-2?q?Micha=B3_Janiszewski?=
Guest
Posts: n/a

 
      11-18-2004, 05:37 AM
I have installed Postfix and LDAP from packages on Debian (Woody). In LDAP
database we hold information needed to authenticate users (uid, password,
directory where users mail are stored, etc.). Postfix serves two domains:
example1.com and example2.com. I have defined two users (E-Mail Removed)
and (E-Mail Removed). If e-mail have been addressed to one of them, both
users receive it, which is undesirable. How to configure Postfix with LDAP
support so that mail would reach only a user in appropriate domain? All of
users have unique "mailRoutingAddress". I tried to resolve the problem by
using "virtual_maps", but then Postfix as a result_attribute returned
mailRoutingAddress concatenated with the domain name defined as "mydomain"
in main.cf, and I would like to receive "clear" mailRoutingAddress.

Configuration of Postfix referred to LDAP:

alias_maps = hash:/etc/aliases, ldap:m_aliases
local_recipient_maps = hash:/etc/aliases, ldap:m_aliases
m_aliases_server_host = 127.0.0.1
m_aliases_server_port = 389
m_aliases_timeout = 5
m_aliases_bind = yes
m_aliases_bind_dn = cn=manager,o=baza_ldap,c=pl
m_aliases_bind_pw = ******
m_aliases_search_base = ou=Accounts,o=baza_ldap,c=pl
m_aliases_query_filter = (mail=%s\@*)
m_aliases_result_attribute = mailRoutingAddress
m_aliases_lookup_wildcards = no



 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to bind to LDAP server ldap://127.0.0.1: Confidentiality required Bjørn A. Linux Networking 0 02-05-2007 06:37 PM
MTA - postfix Rage Linux Networking 2 10-20-2005 12:25 AM
postfix pop-before-smtp hakim Linux Networking 3 08-29-2005 11:37 AM
Postfix troubles KiNgTuT99 Linux Networking 6 07-20-2005 11:21 AM
trying to use pine with postfix Sven-Thorsten Fahrbach Linux Networking 2 06-19-2005 12:03 AM



1 2 3 4 5 6 7 8 9 10 11