for our special use case, we would need to match email aliases using a wildcard.
email@example.com should goto firstname.lastname@example.org
<whatever>-email@example.com should goto firstname.lastname@example.org
This could be done, if something like this would be possible, when adding an alias entry:
%-email@example.com goto firstname.lastname@example.org
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?