RE: Send email from the Queue the email was sent to
Hi partner,
May I ask a question first?
How do we know which queue should be set to the FROM when the email has been sent? What's the condition? What's the relationship between the email and queue?
If the condition is clear, we could add a condition step before we update the email FROM.

But you need to add 20 conditions which may be a complicated work :-(
So I think that you could do this by Power Automate(Flow).
I've spent a long time to test this and I could not set the value to FROM field, you could ask for more information in Power Automate Community about this.
In my case, I want to change the sender to the queue which contains the case in regarding field of email. So I created the following Flow but I can modified every field except FROM.




In short, using Power Automate should be a better way to do this.
Hope it helps.
Best Regards,
Leo