imgate01# cat /usr/local/bin/slet_update.sh
#!/bin/sh
cd /etc/postfix
ftp http://abuse.easynet.nl/spamlist-extended.txt
sed s/REJECT/"554 access denied SLET"/g \
  </etc/postfix/spamlist-extended.txt >/tmp/spamlist-extended.txt.tmp
grep -vi -f /etc/postfix/slet_whitelist.txt /tmp/spamlist-extended.txt.tmp
\
  > /etc/postfix/spamlist-extended.btree
/usr/sbin/postmap btree:/etc/postfix/spamlist-extended.btree
rm /tmp/spamlist-extended.txt.tmp
exit 0

imgate01# cat /etc/postfix/slet_whitelist.txt
expedia.com
grisoft.com
... so on and so forth ...

It is basically a modified version of your script with a reverse grep to
remove the "whitelisted" names from SLET, but still let them go through
the rest of the anti-spam process.

--Eric


Reply via email to