Hi Wietse and others, We are using postfix in our University, and it works great. I have one question regarding relay_recipient_maps.
relay_recipient_maps is a list of users of relay_domains postfix should accept messages. And it just looks for users, return is not used anywhere. So you may return "OK", "x" or whatever. I have an example relay_recipient_maps = ldap:/home/nierka/ldap_ktu.cf case 1) /home/nierka/ldap_ktu.cf: ... query_filter = (&(objectClass=inetLocalMailRecipient)(|(mailLocalAddress=%s)(eduPersonPrincipalName=%s))) result_attribute = result_format = OK ... Search result: postmap: dict_ldap_lookup: /home/nierka/ldap_ktu.cf: Searching with filter (&(objectClass=inetLocalMailRecipient)(|(mailLocalAddress=nerijus.kislaus...@ktu.lt)(eduPersonPrincipalName=nerijus.kislaus...@ktu.lt))) postmap: dict_ldap_get_values[1]: Search found 1 match(es) postmap: dict_ldap_get_values[1]: Leaving dict_ldap_get_values postmap: dict_ldap_lookup: Search returned nothing case 2) /home/nierka/ldap_ktu.cf: ... query_filter = (&(objectClass=inetLocalMailRecipient)(|(mailLocalAddress=%s)(eduPersonPrincipalName=%s))) result_attribute = uid result_format = OK ... Search result: postmap: dict_ldap_lookup: /home/nierka/ldap_ktu.cf: Searching with filter (&(objectClass=inetLocalMailRecipient)(|(mailLocalAddress=nerijus.kislaus...@ktu.lt)(eduPersonPrincipalName=nerijus.kislaus...@ktu.lt))) postmap: dict_ldap_get_values[1]: Search found 1 match(es) postmap: dict_ldap_get_values[1]: search returned 1 value(s) for requested result attribute uid postmap: dict_ldap_get_values[1]: Leaving dict_ldap_get_values postmap: dict_ldap_lookup: Search returned OK So why it is important to return something from LDAP in order to be *sure* entry exists? Search without result_attribute responds with 1 match. Why it can't be a key for descision, that there is a entry and let message to pass through? Thanks for clearing things out. -- Pagarbiai, Nerijus Kislauskas KTU ITPI, Litnet valdymo centras Studentu g. 48a - 101, Kaunas tel.: (8~37) 30 06 45 mob. tel.: 8-614-93889 e-mail.: nerijus.kislaus...@ktu.lt