Originally Posted by pipesbi
I"m not a Linux/Network expert obviously, that's why I'm asking this question.
I'm trying to shutdown port 25 (smtp) on my Suse 10 system. I'm okay with it listening locally, but, don't want smtp listening for external requests. When running netstat I get *:* after smtp is this listening for requests locally only?
What I get;
tcp 0 *:smtp *:* listen
It is a good thing what your are trying to do. You don't mention what smtp software you are running. Most SysVR4 wannabe's usually have sendmail, so, in your sendmail.mc file find the line that says:
and change it to,
and save sendmail.mc
If you have all the utilities that came with sendmail installed, then you can do the following, in the directory that you have the sendmail.mc file, type:
This creates a new sendmail.cf file. Copy the file to /etc/mail/ and restart sendmail. When you do a
you should see
tcp 0 localhost:smtp *:* listen
If you don't want it running at all then:
chkconfig --levels 2345 sendmail off
service sendmail stop
This way, if you reboot, the sendmail daemon will be turned off.