LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   smtp disable (https://www.linuxquestions.org/questions/linux-security-4/smtp-disable-244288/)

Xon 10-18-2004 02:43 PM

smtp disable
 
Hi there,
i noticed that im running smtp after installing mandrake 10 default. How i can turn it off? chkconfig isnt find it (dont know the actual reason) and from "mcc" there isnt the smtp. :|

Also the output of netstat -ptua :

PID/Program name
tcp 0 0 localhost:10026 *:* LISTEN 2152/master
tcp 0 0 localhost:domain *:* LISTEN 1938/named
tcp 0 0 localhost:smtp *:* LISTEN 2152/master
tcp 0 0 localhost:rndc *:* LISTEN

i dont know why its default the DNS ? And same here, i dont know how i m turning it off.

david_ross 10-18-2004 02:50 PM

Try:
chkconfig sendmail off
/sbin/service sendmail stop

Xon 10-18-2004 02:53 PM

Well its not sendmail :|
package sendmail is not installed

david_ross 10-18-2004 02:57 PM

Sorry - I forgot Mandrake now comes with postfix:
chkconfig postfix off
/sbin/service postfix stop

Xon 10-18-2004 03:11 PM

Thx :)
and for the nameserver?

chort 10-18-2004 09:37 PM

All of those services are bound to localhost, so they're not listening on external interfaces (unless you snipped the output). Some OSs start Postfix and bind it to localhost to allow sending outbound e-mail. Several OSs also do this for named to allow a caching name server. Again, I don't know if you snipped your netstat output, but as long as named is only bound to localhost it's actually providing you with a slight performance boost without really opening you up to vulnerabilities.

Any way, if you really wish to disable it the init script should be either "named" or "bind".


All times are GMT -5. The time now is 06:24 AM.