Postfix transport maps using regexp table
Postfix allows transport maps to be written in several different types of tables. Currently, mailman uses indexed files generated by the postmap
command which takes a key whitespace value
format as input and spits out an index file of the type .db
.
This adds dependence on presence of postmap
command, which usually can be assumed if the postfix itself is installed on the host. But, I have been working containerized deployments where essentially postfix is available on a different host and is accessible via TCP Port for relay. So, I want to get rid of the dependence on postmap
command.
Of all the options, I found the easiest one to be regular expression table of the form
/patters/flags trasport:value
I think it shouldn't be very difficult to generate these. My regex-foo isn't very strong, but I can read up and contribute a patch if it is Okay.
It doesn't have to be default and can be used along with the postmap method to maintain compatibility with the existing installations. Maybe configurable with an option? Although, that would increase the maintenance burden a teeny bit.