I'm trying to send an email from my server using a simple command (Postfix is not installed) :
/bin/mail -s "Test Subject" admin@myemail.net < /dev/null
But I get an error :
send-mail: Cannot open mail:25
When I check /var/log/maillog :
Code: Select all
Sep 19 12:15:33 myserver sSMTP[1624]: Cannot open mail:25
Sep 19 12:15:35 myserver sSMTP[1626]: Unable to connect to "mail" port 25.
Sep 19 12:15:35 myserver sSMTP[1626]: Cannot open mail:25
Sep 19 12:16:00 myserver sSMTP[1842]: Unable to connect to "mail" port 25.
Sep 19 12:16:00 myserver sSMTP[1842]: Cannot open mail:25
Sep 19 12:27:35 myserver sSMTP[1914]: Connection lost in middle of processing
Sep 19 12:30:37 myserver sSMTP[1961]: Connection lost in middle of processing
Sep 19 12:30:50 myserver sSMTP[2109]: Unable to connect to "mail" port 25.
Sep 19 12:30:50 myserver sSMTP[2109]: Cannot open mail:25
Code: Select all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: dhcpv6-client http ssh https smtp
ports: 32469/tcp 22000/tcp 32410/udp 3005/tcp 1900/udp 8080/tcp 8000/tcp 5353/udp 12001/tcp 8096/tcp 25/tcp 32400/tcp 51413/tcp 8324/tcp 32414/udp 32413/udp 9091/tcp 10001/tcp 8920/tcp 32412/udp 8082/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Connection lost in middle of processing
I've checked my /etc/hosts too and it looks good. I'm a bit lost there.