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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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> |