2

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?

AnFi
  • 6,103
  • 1
  • 14
  • 27
Az Az
  • 23
  • 1
  • 6

1 Answers1

1

Edit: updated link (proofpoint have taken over sendmail)

Sendmail FAQ 4.22 : Why can't I receive external mail?

Several vendors have changed the way that sendmail is run. They decided that most people need a client-only version of sendmail. So it is listening only on the localhost interface. Check the system documentation on how to change your .mc file [...]

netstat command may be used to check if sendmail is listening only on the localhost interface (127.0.0.1 or ::1). It is netstat -ant | grep :25 on Debian Linux.

mcalex
  • 101
  • 1
  • 4
AnFi
  • 6,103
  • 1
  • 14
  • 27