Mercurial > dnsbl
comparison make-tld-conf.py @ 445:78eedbbce636
round spamassassin scores; check >= rather than >
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 19 Feb 2018 15:25:40 -0800 |
parents | c8144da09419 |
children | f5b394bec28c |
comparison
equal
deleted
inserted
replaced
444:9bb6af6ca26c | 445:78eedbbce636 |
---|---|
34 if not rc: | 34 if not rc: |
35 rc = cmd("sleep 3; dig %s ns +short 2>&1" % x) | 35 rc = cmd("sleep 3; dig %s ns +short 2>&1" % x) |
36 if not rc: prefix = '// no ns record for ' | 36 if not rc: prefix = '// no ns record for ' |
37 f.write('%s%s\n' % (prefix, x)) | 37 f.write('%s%s\n' % (prefix, x)) |
38 f.write('\n') | 38 f.write('\n') |
39 f.write('// enable rdns as a tld, so *.reverse.softlayer.com is effective in the rpz zone\n') | 39 |
40 f.write('reverse.softlayer.com\n') | 40 c="grep '^\*.*multi.surbl' /etc/cron.daily/rpz | awk '{print $1}' | cut -c3- | sed -e 's/.multi.surbl.org//g'" |
41 f.write('sl-reverse.com\n') | 41 content = cmd(c) |
42 for x in content.split('\n'): | |
43 f.write(x + '\n') | |
44 | |
42 f.close() | 45 f.close() |