My understanding is that it should be determined by what connection you are using in the email action.
In our org, we set up an Outlook 365 connection, then an Outlook connection reference in the same solution that holds the email flow. When the email action gets added to the flow, you use the 3 dot menu to select the Connection Reference. Hopefully that works for you.