Postfix + LDAP + Recipient Delimiter
- by Coops
I'm trying to get my Postfix and LDAP-backend to accept recipent delimiters (aka address extensions).
The rest of the mail system is working fine, but when an email is received with an extension (e.g. [email protected]), it tries to look up "coops+test" against the LDAP service and fails. Obviously this is wrong, and it should strip out the "+test" part.
In my postfix config the string being passed to the LDAP service is "%s", per an example line below:
accounts_query_filter = (&(objectClass=MailAccount)(mail=%s)(accountActive=TRUE)(delete=FALSE))
Is there a postfix variable which represents the email account minus the extension? I've found a similar post here, but no actual solution.