MaRiOsGR
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:397 4 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 ?
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
tcp 0 0 myserver:47194 spf2.us4.outblaze.com:smtp
tcp 0 0 myserver:smtp 84.95.82.176.cable.012:397
tcp 0 30 myserver:smtp bulk.hol.gr:41490 ESTABLISHED
tcp 0 0 myserver:46479 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47304 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47313 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47247 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47232 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47258 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47272 spf6.us4.outblaze.com:smtp
tcp 0 0 myserver:47264 spf6.us4.outblaze.com:smtp
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 ?
ASKER
[root@server /]# service sendmail restart
bash: service: command not found
bash: service: command not found
ASKER
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 ?
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.
The only way to close this connections is close the service or restart the server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
service sendmail restart