/usr/mailcleaner/scripts/configuration/slaves.pl
netstat
wget https://dl.eff.org/certbot-auto
sudo wget https://dl.eff.org/certbot-auto
sudo apt update
sudo apt install python3 python3-venv libaugeas0
sudo python3 -m venv /opt/certbot/
sudo /opt/certbot/bin/pip install –upgrade pip
sudo /opt/certbot/bin/pip install certbot
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot
/cd /etc/mysql/
ls
cat my.cnf
shutdown
/usr/mailcleaner/etc/init.d/mailscanner restart
cd /usr/mailcleaner/share/spamassassin/
ls -al
nano Custom.cf
more 95_scores.cf
spamassassin –lint
nano Custom.cf
spamassassin -D –lint > testSA.log 2>1
more testSA.log
reboot
cd /usr/mailcleaner/share/spamassassin/
commands home spamgate
vim /usr/mailcleaner/etc/mailscanner/dnsblacklists.conf
cd /usr/mailcleaner/etc/rbls/
cp SPAMHAUSDBL.cf SPAMHDBL.cf
cp SPAMHAUSDBL.cf SPAMHADBL.cf
rm SPAMHADBL.cf
cp SPAMHAUSSBL.cf SPAMHASBL.cf
cp SPAMHAUSZRD.cf SPAMHAZRD.cf
vim SPAMHADBL.cf
cp SPAMHAUSDBL.cf SPAMHADBL.cf
vim SPAMHASBL.cf
vim SPAMHAZRD.cf
vim /usr/mailcleaner/etc/mailscanner/dnsblacklists.conf
cp BBARRACUDACENTRALORG.cf SPAMDONKEY.cf
vim SPAMDONKEY.cf
vim /usr/mailcleaner/etc/mailscanner/dnsblacklists.conf
/usr/mailcleaner/etc/init.d/mailscanner restart
cp BBARRACUDACENTRALORG.cf ABUSEAT.cf
vim ABUSEAT.cf
/usr/mailcleaner/etc/init.d/mailscanner restart
To silently drop connections from unauthorized IPs using a firewall rule, you can use iptables if you’re on a Linux-based system (which MailCleaner typically runs on). Here’s a step-by-step guide to help you do it safely and effectively:
🔧 Step-by-Step: Add a Silent Drop Rule with iptables
✅ 1. Check Existing Rules
Before adding anything, it’s smart to see what rules are already in place:
bash
sudo iptables -L -n –line-numbers
This shows the current rules and their order.
🚫 2. Add a DROP Rule for an Unauthorized IP
To silently drop all incoming traffic from a specific IP:
bash
sudo iptables -A INPUT -s 192.0.2.123 -j DROP
-A INPUT: Appends the rule to the INPUT chain
-s 192.0.2.123: Source IP to block
-j DROP: Silently discard the packet (no response)
You can repeat this for multiple IPs or use CIDR notation for ranges:
bash
sudo iptables -A INPUT -s 203.0.113.0/24 -j DROP
🧠 3. Make It Persistent
By default, iptables rules are not persistent across reboots. To save them:
On Debian/Ubuntu:
bash
sudo apt install iptables-persistent
sudo netfilter-persistent save