Experts says the port 25 is not open that’s why you not able to send emails but when i check my all port i found its open for port 25, also connect the port 25 using telnet command
You did not find anything of the sort. local connections prove nothing about the world.
You need to try to connect to a mail server on the internet, to prove or disprove you have port 25.
If you are on Amazon Web Services, you absolutely 100% do not have port 25, unless you have used the process I linked you to (and even then you may not get it, I don’t know what is required).
But, if you need to prove it, try to connect to our mail server. It should look something like this:
telnet mail.virtualmin.com 25
Trying 45.76.233.251...
Connected to mail.virtualmin.com.
Escape character is '^]'.
220 n1.virtualmin.com ESMTP Postfix
QUIT
221 2.0.0 Bye
Of those lines, you type telnet mail.virtualmin.com 25 and assuming you get the next few lines, you type QUIT to exit.
But, I’d be surprised if you get anything. It’ll probably just timeout. Because you almost certainly don’t have port 25, and you need to do what we told you to do.
While that’s true, we already provided multiple solutions to OPs problem. And, pretty much guaranteed to be the same answers they get from the Amazon forum; I linked Amazon docs that explain how to send mail from Amazon Web Services.
Establishing a connection with that community might be beneficial regardless. Plus, like I said, my test install of Discourse sends from AWS without problems and I don’t remember having to do anything with AWS. But, it’s been half a year now so I may be mistaken. I’d think the Lightsail interface would be locked down tighter and that’s what I use.
They also will have more experience looking at the AWS side of things for answering questions. OP seems to need a little hand holding.