#! /bin/sh file="/tmp/spam.txt" dest="/etc/postfix/access" if [ -f $file ] ; then rm $file ; fi wget -q http://basic.wirehub.nl/spamlist-extended.txt -O $file cp $file $dest /usr/sbin/postmap hash:$dest /etc/init.d/postfix restart 2>&1 >/dev/null rm -f $file