I can do this from Apple mail, I have multiple accounts on the same domain, and other domains. I even have an exchange account added, any email I send I can just click the “from” field and pick any of my emails or domains from the dropdown
For example say my account is dugite-code@example.tld but fetchmail pulls in my gmail emails. If I want to send from house-repairs@example.tld or dugite-code@gmail.com I don't need to configure the three accounts separately I just edit the from field as I'm composing the emails.