Link to home
Start Free TrialLog in
Avatar of MaRiOsGR
MaRiOsGRFlag for Greece

asked on

kill connections

I run netstat -a | grep smtp
and I see connections like these :


tcp        0      0 *:smtps                     *:*                         LISTEN
tcp        0      0 *:smtp                 *:*                         LISTEN
tcp        0      0 myserver:47197    spf2.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47194    spf2.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:smtp     84.95.82.176.cable.012:3974 ESTABLISHED
tcp        0     30 myserver:smtp     bulk.hol.gr:41490           ESTABLISHED
tcp        0      0 myserver:46479    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47304    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47313    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47247    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47232    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47258    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47272    spf6.us4.outblaze.com:smtp  ESTABLISHED
tcp        0      0 myserver:47264    spf6.us4.outblaze.com:smtp  ESTABLISHED

I have added with iptables deny to outgoing and incoming to spf6.us4.outblaze.com
but it still connected.
how can I kill the connections ?



Avatar of Pablo Allietti
Pablo Allietti
Flag of Uruguay image

in this case

service sendmail restart
Avatar of MaRiOsGR

ASKER

[root@server /]# service sendmail restart
bash: service: command not found
I did restart the smtp (qmail) and pop3 server from the panel (plesk) many times but i still see these connections..
is there any way to kill them with some shell command ? just like we can kill a process ?
no, i guess.
The only way to close this connections is close the service or restart the server.  
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial