💻 Software
Disable or block outgoing email
Fresh5 days ago
Mar 15, 202617907 viewsConfidence Score0%
0%
Problem
To do web site testing, how can I disable or block the Centos server to not send out emails. Now, if I run in command line I can send out emails. This is not good for website testing. I don't want to cause trouble to users of the site. Is it something to do with iptables? Can anyone enlighten the w…
Error Output
mail xxx@gmail.com
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Disable or block outgoing email
Low Risk
I guess something like that would do: is the destination port 25, for SMTP. Packets will simply be dropped. To apply the rules you need to run: Here's the CentOS iptables documentation. Can't test it, but should work.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix