Hello
Thank you for your question and reaching out.
You would need a public domain address to get this up and running, you would also need to configure DNS records for your public domain to point to your exchange server as well.
It is also strongly recommended that is is set up to only use SSL/https, which would involve acquiring an SSL certificate for your exchange server, (if you don't already have one)
- Get any domain name from domain registrar, literally any domain selling website (But i prefer a reputed one).
- Setup MX record in DNS settings in domain hosting by pointing to your public IP address ( you need a static Public IP. if you dont have one, contact your ISP)
- Configure your router to forward all email traffic (port 25) to your internal exchange server ( allow traffic and configure NAT )
- Configure Exchange Server to Send and Receive Outside
Below are Microsoft article and guide to help to access Exchange server outside your Organization.
https://learn.microsoft.com/en-us/exchange/troubleshoot/client-connectivity/set-up-web-access
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--