Postfix relay configuration for only a few domains

Well, MS is notoriously shit in this regard.

But that is the way to do it.
I found this documentation on Mailjets website, but it also says that those docs are deprecated. Not sure how to do it if the API is needed instead.