I'm trying to set up Postfix on the latest Ubuntu and I have followed the official documentation. However, I get the following error message below when trying e.g. telnet localhost 25:
"Connection closed by foreign host".
I have searched around, but i'm unable to find any solution. What can cause this error message?
41 Answer
first you need to see ubuntu system log with this command
sudo gedit /var/log/syslog
and if you will see this error "execv( /usr/sbin/tcpd ) failed: No such file or directory" then run this command
sudo apt-get install tcpd
it will solve your problem (if not then you need to search your system error on google)