I am trying to open port 25 for receiving mails from outside my server using sendmail. I want to read my mails with alpine and I don't need anything else. I have tried this:
firewall-cmd --zone=public --add-port=25/tcp
connection is accepted by this command
telnet 127.0.0.1 25
but it is refused by this
telnet mydomain.com 25
How can I open this port for outside connections?