Rules for from account in Apple Mail
If you use the unified inbox then this can be a problem. If you expand the mailboxes and read them from those, then you can set-up Mail to send using the account for that mailbox.
I suppose this may require remembering to select the correct mailbox in a similar way to remembering to select the from account though.
I struggle with the same problems. The answer is that there currently unfortunately is neither a plugin nor a hook for manually solving this problem.
For details look here: https://apple.stackexchange.com/a/67082/93032
Some workarounds for the problem can be found here: Mail.app extension to avoid sending email from the wrong account?