Blocking SMTP connections

From GigaTux Wiki
Revision as of 16:01, 23 July 2012 by Cocodude (talk | contribs) (Created page with "If a VPS user has been found to be spamming other users, you can block them temporarily from accessing SMTP ports by issuing commands similar to the following on the node that th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If a VPS user has been found to be spamming other users, you can block them temporarily from accessing SMTP ports by issuing commands similar to the following on the node that their VPS is situated on:

 iptables -t mangle -I POSTROUTING -s <IP ADDRESS> -p tcp --source-port 25 -j DROP
 iptables -t mangle -I POSTROUTING -s <IP ADDRESS> -p tcp --destination-port 25 -j DROP