https://github.com/lldap/lldap logo
loddili - Hi. I'm using [debug]: | response: ...
# troubleshooting
n
That is correct, we don't support substring on custom attributes. There's a potential long-term plan to fix it, but it might never get done. Don't count on it 🙂
Maybe we can figure out a workaround? What are you trying to do?
l
I have 2 domains. For one domain I use the mail attribute, for the other I use the "mailalias" attribute. I need to provide both to the filter, which I've mentioned above. Otherwise the emails, which go to the domain2 would be rejected.
n
What does the filter look like?
(sorry, I didn't see your new message)
Hmm, I see how it's used. Here's a workaround (not the best, but it will work): - create a
mailDomain
and
mailAliasDomain
attribute - populate them with just the respective domains - Set your filter to
(|(mailDomain=%s)(mailAliasDomain=%s))
l
Thanks for the help. I will try it tomorrow.
Ok, I tried it and it works. It's not the cleanest solution, but it is ok for now. Many thanks for your help.
n
Do you want to add that to the example config maybe? For the next person who hits this issue
l
It's this configuration, just with the mailalias addition and the change, which you suggested. https://github.com/lldap/lldap/blob/main/example_configs/mailserver.md