On 04/11/2024 00:32, Wietse Venema via Postfix-users wrote:
Guntis Bumburs via Postfix-users:
Hello,

Is there a way to convert ldap lookup result to lowercase?
There has been no need for this in the past 26 years, so, no.

I am using this config:

# cat ldap_relay_recipient_maps.cf
server_host = 192.168.1.1
search_base = OU=Users,OU=Domain,DC=abc,DC=local

bind_dn = abc\abc
bind_pw = abc
query_filter = (proxyAddresses=smtp:%s)
result_attribute = mail

# cat main.cf
...
local_recipient_maps =
ldap:/usr/local/etc/postfix/ldap_relay_recipient_maps.cf
...

Testing with postmap
# postmap -q supp...@abc.com
ldap:/usr/local/etc/postfix/ldap_relay_recipient_maps.cf
supp...@abc.com

# postmap -q suppo...@abc.com
ldap:/usr/local/etc/postfix/ldap_relay_recipient_maps.cf
suppo...@abc.com

Response is not converted to lowercase. It is returned in exact form as
it is in directory resulting in lookup mismatch.
What technology is rejecting upper-case recipients? Is this a
commercial product?

No it was just my mistake, It was first time i configured ldap lookups in postfix, looked at the wrong log file, and found a non existing problem.

tested with postmap and it happened that response was with capital letter, so i figured out that is the problem :)


By the way very nice job, i use postfix since ~2005.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

--
Guntis Bumburs
+371 29251044

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to