The Correct Identity AddOn for Thunderbird could solve this:
https://addons.thunderbird.net/de/thunderbird/addon/correct-identity/?src=search
I did not test it yet. Taken from the description:
Correct Identity helps you to use the right identity when sending messages by:
letting you better configure default identities to be used when composing new messages from scratch.
detecting and using the identity for which you received the message you're replying.
you can improve this detection by specifying aliases (alternate addresses, sender names, domains, etc., regular expressions supported), or instead opt-out identities for detection.
changing identities on the fly when typing recipients that match aliases.
warn you before sending a message from an identity if its recipients match one or more search terms you configured for the identity (regular expressions supported).