If I type:
telnet localhost 25
into SSH, it says:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
However, when I type:
exiwhat
into SSH, it says:
28543 daemon: -q1h, listening for SMTP on port 25 (IPv6 with IPv4) port 587 (IPv6 and IPv4) and for SMTPS on port 465 (IPv6 and IPv4)
If it's listening on port 25, why does my connection get closed after connecting?