for our special use case, we would need to match email aliases using a wildcard.
firstname.lastname@example.org should goto email@example.com
<whatever>-firstname.lastname@example.org should goto email@example.com
This could be done, if something like this would be possible, when adding an alias entry:
%-firstname.lastname@example.org goto email@example.com
The mysql_virtual_alias_maps.cf is querying the alias entry using =, simply changing this to LIKE could do the trick.
However, mysql_virtual_alias_maps.cf is overwritten after each restart, so it is not so easy to change this.
Or are there better solutions to accomplish this?