Code: Select all
server_host = ldap://localhost:5757
query_filter = mail=%s
bind = no
result_attribute = scalixInstanceMailHost
result_format = smtp:[%s]:10025
size_limit = 1
domain = sx.domain.com
However, I wish to check for multiple domains, and this configuration does not work that way. I know that a static file can be used within Postfix to accomplish this goal, but my goal is to create a dynamic lookup. Simply removing the "domain" key/value pair does not work.
I have attempted to connect to the real ldap service on port 389 using the following config:
Code: Select all
server_host = ldap://sx.domain.com
query_filter = mail=%s
bind = yes
bind_dn = admin
bind_pwd = password
terminal_result_attribute = mail
result_format = smtp:[%s]:10025
But this results in an error:
Mar 13 16:47:17 sx postfix/trivial-rewrite[15734]: warning: dict_ldap_connect: Unable to bind to server ldap://sx.domain.com as admin: 64 (Naming violation)
I've played with the configuration to generate authentication errors, so I believe my current bind information is correct. I am not sure why a naming violation is being thrown, but I do believe it should be possible to query that ldap server for valid recipients.
Has anyone been able to configure Postfix to query Scalix for valid recipients among multiple domains in a dynamic manner?