0

I am trying to setup some email forwards in Postfix using virutal_alias_maps and an LDAP looking.

My first attempt looked up the user part using:

query_filter = (&(objectClass=PostfixBookMailForward)(uid=%u))

But this failed spectacularly because it would not only re-write bob@example.com but also bob@other.tld and bob@ every domain.

So my question is fairly simple. Is there a way to limit an LDAP query, or limit postfix to only lookup addresses for a subset of domains?

Is my only option to add domain information to every user record in LDAP?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.