We query an LDAP for identifying aliases and users on a Postfix server.
Due to company-related reasons, some email adresses have the format "SMTP:email@example.com". To forward mail to this user, we would need to cut off the "SMTP:" in front of it.
One solution could be using regex, but we already use the ldap module and I could not find out how to use both together, e.g. querying an ldap and modify the result by using a regex.
How can this be done?