If you have a smart host (may be need to buy from third-party) to forward email to other organization, you could create a Send Connector which doesn't use 25 port to send emails for Exchange on-premises. For more detailed information, you could have a look about this article: New-SendConnector
If your Exchange on-premises in Azure cannot use 25 port, why not send emails from Exchange online mailbox directly?
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.