Skip to content

miklosakos/fuck-uceprotect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

fuck-uceprotect

Repo name says it all

fuck-uceprotect requires requests and Python 3.x. Installation: Clone the repo, make the script(fuck-uceprotect.py) executable. Setup your user's crontab to run the script every 24 hours and at reboot: crontab -e -u fuce

0 0 * * * sudo /usr/bin/fuck-uceprotect.py
@reboot sudo /usr/bin/fuck-uceprotect.py

I recommend you running the script from a separate user account with limited sudo priveleges to the script and iptables. I tried my best on not spamming your iptables rules, mileage may vary.

Example setup: /etc/sudoers.d/fuck-uceprotect

fuce ALL=NOPASSWD: /usr/bin/fuck-uceprotect.py
fuce ALL=NOPASSWD: /usr/sbin/postmap

/etc/postfix/main.cf

smtpd_sender_restrictions = ... hash:/etc/postfix/fuck-uceprotect/senders ...
smtpd_recipient_restrictions = ... hash:/etc/postfix/fuck-uceprotect/recipients ...

If you are an ISP feel free to clone the repo, use it as you wish, modify the script, I don't care. Just make sure your customers don't hit ANY spam traps operated by this "organiztion". Integration to any system should be easy (hopefully).

Special thanks to the fine soul who owns https://uceprotect.wtf without them this small hackjob wouldn't exist. <3

About

Hackjob of a script to block packets going to UCEProtect "protected" mail servers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages