Hi, I have Postfix 2.5.6 on a server and having a problem with using an LDAP lookup as a transport map. In my main.cf file I have: transport_maps = ldap:/etc/postfix/ldap-groupwise1.conf My ldap-groupwise1.conf file looks like: version = 3 domain = irdtest.govt.nz query_filter = (mail=%s) scope = sub timeout = 5 search_base = o=IRDtest server_host = 10.40.40.60 server_port = 389 result_attribute = mail size_limit = 1 result_format = relay:10.40.40.61 This works great if an email address exists for only one user in the LDAP directory: postmap -q kevin.sartore...@ird.govt.nz ldap:/etc/postfix/ldap-groupwise1.conf relay:10.40.40.61 However, when there is more than one account with the same email address I get: postmap -q kevin.sartore...@ird.govt.nz ldap:/etc/postfix/ldap-groupwise1.conf postmap: warning: dict_ldap_lookup: Search error 4: Size limit exceeded Leaving out the 'size_limit' parameter from the file gives me: postmap -q kevin.sartore...@ird.govt.nz ldap:/etc/postfix/ldap-groupwise1.conf relay:10.40.40.61,relay:10.40.40.61 Which doesn't work too well ;-( My reading of the ldap_table man page indicates that this will happen for the 'expansion_limit' parameter, but not the 'size_limit' parameter.
Anyone have an idea how I can get my LDAP lookup to return only one record regardless of the number of accounts with the same email address? Cheers Kevin