Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread Viktor Dukhovni
On Wed, Dec 14, 2022 at 11:18:50AM +0800, luckydog xf wrote: > Please forgive my rush. It works. Here it is, use %[1-9]. Actually, your tests are incomplete. > server_host = ldap://172.16.232.201:389 > search_base = cn=users,cn=accounts,dc=ipa,dc=pthl,dc=hk > scope = sub > version = 3 > bind =

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread luckydog xf
Please forgive my rush. It works. Here it is, use %[1-9]. --- bind = no version = 3 server_host = ldap://172.16.232.201:389 start_tls = no search_base = cn=users,cn=accounts,dc=ipa,dc=pthl,dc=hk scope = sub query_filter = (uid=%u) result_attribute = uid result_format = %u@%2.%1 On Wed, Dec 14,

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread Viktor Dukhovni
> On 13 Dec 2022, at 10:01 pm, luckydog xf wrote: > > Hello, Thanks. > Please ignore LDAP here. Whatever attribute names they are, it's just a > sample here. > I read the link ldap_table-5. > > The problem is that there is no way to return one value of an attribute based > on the user's input

Re: Postfix ,ldap with multiple domains.

2022-12-13 Thread luckydog xf
Hello, Thanks. Please ignore LDAP here. Whatever attribute names they are, it's just a sample here. I read the link ldap_table-5. The problem is that there is no way to return one value of an attribute based on the user's input domain. Because of configuration item result_attribute = displayN

Re: Postfix LDAP with multiple domains

2018-10-16 Thread Viktor Dukhovni
> On Oct 16, 2018, at 4:50 AM, sercoinful wrote: > > server_host = ldap://ldap.xdomain.com:389 > search_base = cn=Users, dc=xdomain, dc=com > version = 3 > query_filter = (&(objectclass=person)(mail=%s)) > result_attribute = mail > result_format = %d/%u/ > bind = yes > bind_dn = ad...@xdomain.com

Postfix LDAP with multiple domains

2018-10-16 Thread sercoinful
Hi, I'm using Postfix/Dovecot. I have two different domain (xdomain.com and ydomain.com). I create two different Dovecot config file for authentication and it works fine. But I can't configure virtual_mailbox_maps for my domains. If I configure like below it works fine; server_host = ldap://lda