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
firstname.lastname@example.org but also
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?