It might not address your need, but in the template you can use 0.0.0.0 and a port and it will use whatever each MX has as its WAN IP and then the configured port you entered. If you need more overrides than that your only option is to not use templates.
... View more