You posted the answer to your question already.
This error message indicates what’s wrong with your setup.
The address you’re trying to send from does not match what the mailbox you’re trying ot use is allowed to use as froms.
See those two pages in the relevant order (the 2nd gives you context):