apoorv569 but looks like even a relay needs port 25?
You sure need to learn a lot about SMTP and firewalls. Firewall rules have a source and destination. So it can apply to incoming and/or outgoing traffic. Outgoing Port 25 is what providers are blocking.
We posted already several solutions here in this thread, please pick one.
Sorry you have to learn the basics for running servers elsewhere. This is a mailcow specific forum.