From: Murray T. <mtr...@ce...> - 2004-12-20 06:45:44
|
> On Sun, 2004-12-19 at 23:40, Murray Trainer wrote: > > Hi Jamie, > > > > I noticed that the LDAP mail attribute of users created by the LDAP > > Users and Groups module is of the form firstname.surname@domain while > > the Cyrus mailbox uses the uid as its name. This makes it difficult to > > deliver mail to the Cyrus mailbox with Postfix using LDAP alias tables > > as the mail attribute does not match the mailbox name or uid. The > > edited entry below from the file test.ldif included with the module is > > the sort of format I think should be created. The mail attribute is > > uid@domain and alias is firstname.surname@domain. It looks like the > > modules behaviour was changed at some stage - deliberately or > > accidentally? I have the module configured with the "Show fields for > > given name and surname" set to "No" as I get duplicate sn attribute > > errors with the schemas I am using if it is set to yes. The format of > > the mail attribute may be different if it is set to yes but I can't test > > that. > > Thanks for pointing this out - I don't use LDAP for email much myself, > so didn't notice how odd it was to use the firstname and surname in the > email address! I will add an option on the Module Config page in future > versions to use the user@domain format for the mail attribute instead .. > > - Jamie I just managed to get my Postfix LDAP aliases working with the current setup so the fix isn't urgent but I will use the new option when it is available. I have included a working query filter and result_attribute below for anyone trying to get Postfix working with LDAP aliases because it took me a fair while to get it right. Murray query_filter =(|(mail=%s...@my...)(alias=%s...@my...)(mail=%s) (alias=%s)) result_attribute = uid |