Bluehost.com Web Hosting $6.95

Re: postfix seems to be ignoring my ldap_query_filter

This is a discussion on Re: postfix seems to be ignoring my ldap_query_filter within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Wed, 7 Jul 2004, Mark Drummond wrote: > Well it's working now. An aweful lot of reading for ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-07-2004
Victor.Duchovni@MorganStanley.com
 
Posts: n/a
Default Re: postfix seems to be ignoring my ldap_query_filter

On Wed, 7 Jul 2004, Mark Drummond wrote:

> Well it's working now. An aweful lot of reading for just 5 simple lines in
> main.cf.
>
> local_recipient_maps = $alias_maps ldap:ldap_rcpt
> ldap_rcpt_search_base = dc=gangwarily,dc=ca
> ldap_rcpt_query_filter = mail=%s
> ldap_rcpt_result_attribute = uid
> ldap_rcpt_bind = no
>
> Just imagine how many questions like mine might be avoided on this list if
> this was better documented!
>


The query filter should be:

uid=%u

rather than mail=%s. This is because the local(8) delivery agent delivers
mail to aliases and *users* not email addresses.

What problem are you trying to solve? What's wrong with the default:

local_recipient_maps = $alias_maps unix:passwd.byname

With nsswitch.conf configured to find local users via LDAP, the
configuration is simpler, and the table is more accurate.

--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@postfix.org?body=unsubscribe%20p ostfix-users>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

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




All times are GMT +1. The time now is 05:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0