Hello Pradeep,
I understand that you are not able to send the emails to the external domain using DNS. I would like to point out that outbound connections on ports 25, 465, and 587 are not allowed on Google Compute Engine Platform [1]. If using port 2525, please make sure that firewall rule is in place on GCP (Google Cloud Platform) to allow the connection and instance are configured correctly. Also, I was able to find this thread [2] which may help you to configure the port to 2525.
However, this seems like a question that would be better posted to serverfault.com with the right tags, rather than a google discussion post. This isn't the right place to look for 1-on-1 support, being the forum meant for the general discussion of the platform.
I wish you luck in finding the answer to your question on serverfault.com.
[1] https://cloud.google.com/compute/docs/tutorials/sending-mail/
Hi Pradeep,
As mentioned in my earlier message, this seems like a problem that would be better posted to serverfault.com where you can get assistance from a big technical community on troubleshooting this issue.
This forum is meant for the general discussion of the platform.