C
ciscoheat
Guest
I had problems with qmail and port 25, and looking through here I found that this issue had been brought up before. I didn't find my actual solution so I'm posting it here.
The problem was a "Connection refused" when trying to send mail to any account on the server. Running "nmap localhost" made it clear - port 25 was closed. Now I couldn't find any setting in Plesk to open it, so I started looking through configuration files.
In /etc/inetd.conf, I found that both smtp and smtps were commented out with "#<off>#". Removing those comments and restarting xinetd using "/etc/init.d/xinetd restart" solved the mail problem. It also solved the service problem in Plesk control panel, where the qmail service looked like it was turned off even though it wasn't.
There is a snag though. I don't know if Plesk is tampering with inetd.conf, so if it autogenerates that file it may turn off smtp again. So my question is this, anyone know if Plesk is changing inetd.conf, and if it has something to do with the #<off># comment found there?
The problem was a "Connection refused" when trying to send mail to any account on the server. Running "nmap localhost" made it clear - port 25 was closed. Now I couldn't find any setting in Plesk to open it, so I started looking through configuration files.
In /etc/inetd.conf, I found that both smtp and smtps were commented out with "#<off>#". Removing those comments and restarting xinetd using "/etc/init.d/xinetd restart" solved the mail problem. It also solved the service problem in Plesk control panel, where the qmail service looked like it was turned off even though it wasn't.
There is a snag though. I don't know if Plesk is tampering with inetd.conf, so if it autogenerates that file it may turn off smtp again. So my question is this, anyone know if Plesk is changing inetd.conf, and if it has something to do with the #<off># comment found there?