Block all email traffic

Post Reply
jrob
Junior Member
Posts: 5
Joined: 18 May 2011, 09:45

Block all email traffic

Post by jrob »

What's the easiest way to block all SMTP traffic from a centos server (with cPanel) and CSF installed?

I'm wanting to test a transferred site on a new server and don't want emails to be sent whilst it's being tested.
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: Block all email traffic

Post by sawbuck »

Try removing port 25 from TCP_IN and TCP_OUT for both IPv4 and IPv6.
jrob
Junior Member
Posts: 5
Joined: 18 May 2011, 09:45

Re: Block all email traffic

Post by jrob »

Thanks for the tip. I might use an iptables rule to reject mail instead and just delete it when I'm finished.
Post Reply