Created
May 30, 2015 00:52
-
-
Save cb1kenobi/2995a6f25685e02f3262 to your computer and use it in GitHub Desktop.
Postfix CIDR blocklist update and spamassassin learn script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl https://www.spamhaus.org/drop/drop.lasso 2>/dev/null | sed '/^\s*;/d' | sed 's/;.*/REJECT/' > /etc/postfix/client.cidr | |
postfix reload | |
sa-learn -D --sync --spam /data/mail/cb1inc.com/chris/.Spam/{cur,new} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment