Page 1 of 1

Block all email traffic

Posted: 18 May 2017, 22:31
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.

Re: Block all email traffic

Posted: 19 May 2017, 03:36
by sawbuck
Try removing port 25 from TCP_IN and TCP_OUT for both IPv4 and IPv6.

Re: Block all email traffic

Posted: 19 May 2017, 08:56
by jrob
Thanks for the tip. I might use an iptables rule to reject mail instead and just delete it when I'm finished.