I am running this command:
telnet 87.106.xxx.xxx 25
And it says
Trying 87.106.xxx.xxx...
telnet: Unable to connect to remote host: Connection refused
But telnet localhost is running properly.
Then I ran this command
sudo netstat -plntu
and it gave me:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9518/sendmail: MTA:
But the problem is I don't have Sendmail. I am using postfix.
I tried to uninstall sendmail with apt-get purge sendmail But it gives error:
Package sendmail is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I am looking for a way so that the post 25 should be used by Postfix.
telnet 127.0.0.1 25? – Massimo Jul 24 '14 at 14:40which sendmailto look if there's really no binary. – sebix Jul 24 '14 at 14:50postconf -n, so we can see if you have anything misconfigured. And also the output ofsudo iptables -t nat -L, to see if anything is blocked by your server internally – sebix Jul 24 '14 at 15:54