I agree I hate SpamCop also, but I love TMDA it saves my inbox every day.
I however got tired of so much spam that I also implemented magic-mail
to go with my qmail install. I got to the point where I stopped blacklisting
with TMDA because of all the extra traffic to non-existing email address.
Now I just leave them to TMDA for timeouts and changed that to 12 hours.
I recently made a small script to parse the maillog and check for BLOCKED
attempts for non-existing email address and I'm now blocking those that
attempt to spam more than 5 times with IPTABLES. Its cruel because my
scripting isnt that great but it works and besides having to contact
SpamCop every couple of months :( I'm doing this now so I dont have to send
out so many challenges :)
Anyway take a look, if any one can use this great or improve it even better.
Joe
#!/bin/sh
#
# Variables
#
mlog="/var/log/maillog"
ipt="/etc/sysconfig/iptables"
old="/u1/old_iptables/iptables.$$"
cd /tmp
echo "Parse Data"
cat $mlog | awk '/BLOCKED/ { print $11 }' | sed -e "s/(//g" | sed -e
"s/)//g" | sort | uniq -c > $$.txt
cat $$.txt | awk '{ if ($1 >= 5) print $2 }' > $$-1.txt
echo "Verify Data with IPTABLES"
for x in `cat $$-1.txt`;
do
if egrep $x $ipt; then
echo "IP Already blocked"
else
#
# Make a backup of old file
#
cp $ipt $old
echo "This IP needs to be blocked $x"
sed -i '$d' $ipt
echo "-A INPUT -p tcp -m tcp -s $x --dport 25 -j REJECT" >>
$ipt
echo "COMMIT" >> $ipt
/etc/rc.d/init.d/iptables restart
fi
done
# Remove temp files
rm -f $$.txt $$-1.txt
Zeno Davatz <[EMAIL PROTECTED]> wrote:
>Hi all!
>
>I'm a fond user of TMDA. But obviously Spamcop and TMDA do not work
>well together. Our IP address has obviously been blocked by Spamcop
>because TMDA sends out replys to dead end Spam-Traps of Spamcop.
>
>http://www.spamcop.net/fom-serve/cache/329.html#bounces
>
>Any solution for this?
>
>Thank you for your help
>Zeno
>
>PS: I hate SpamCop!
>_________________________________________________
>tmda-workers mailing list ([email protected])
>http://tmda.net/lists/listinfo/tmda-workers
>
>
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers