Off-topic RDJ not working properly since DOS a few weeks back

Jason Ede j.ede at birchenallhowden.co.uk
Sun Jul 8 09:55:50 IST 2007


Just found this...

http://www.nabble.com/Patch-for-rules_du_jour-t3996266.html

which has an update for RDJ script....

--- /root/rules_du_jour.orig 2007-06-17 21:01:24.000000000 -0500
+++ /var/lib/spamassassin/rules_du_jour 2007-06-28 14:07:37.000000000 -0500
@@ -780,7 +780,30 @@
         [ "${DEBUG}" ] && echo "Retrieving file from ${CF_URL}...";

         # send wget output to a temp file for grepping
- HttpGet ${CF_URL} ${TMPDIR}/${CF_BASENAME};
+ #
+ # This while loop is a fix for Rules Emporium honey-pot DDoS
+ # shield as of 6/28/07.  Send comments and bugs to Lindsay Haisley,
+ # fmouse at ....
+ GET_COUNT=1;
+ MAX_GET_COUNT=4;
+ while [ ${GET_COUNT} -lt ${MAX_GET_COUNT} ]; do
+ HttpGet ${CF_URL} ${TMPDIR}/${CF_BASENAME};
+ if ${GREP} -iq 'META HTTP-EQUIV' ${TMPDIR}/${CF_BASENAME} ; then
+ rm -f ${TMPDIR}/${CF_BASENAME};
+ sleep 1;
+ [ "${DEBUG}" ] && echo "Got refresh URL, pass ${GET_COUNT}...";
+ GET_COUNT=`expr ${GET_COUNT} + 1`;
+ else
+ [ "${DEBUG}" ] && echo "Rules file OK, pass ${GET_COUNT}...";
+ GET_COUNT=`expr ${MAX_GET_COUNT} + 1`;
+ fi
+ done
+ if ${GREP} -iq 'META HTTP-EQUIV' ${TMPDIR}/${CF_BASENAME} ; then
+ rm -f ${TMPDIR}/${CF_BASENAME};
+ GET_COUNT=`expr ${GET_COUNT} - 1`;
+ [ "${DEBUG}" ] && echo "Download of ${CF_BASENAME} FAILED after ${GET_COUNT} tries.  Skipping ...";
+ fi
+

         # Append these errors to a variable to be mailed to the admin (later in script)
         [ "${FAILED}" ] && RULES_THAT_404ED="${RULES_THAT_404ED}\n${CF_NAME} had an unknown error:\n${HTTP_ERROR}";

________________________________________
From: mailscanner-bounces at lists.mailscanner.info [mailscanner-bounces at lists.mailscanner.info] On Behalf Of Anthony Cartmell [ajcartmell at fonant.com]
Sent: 08 July 2007 09:47
To: MailScanner discussion
Subject: Re: Off-topic RDJ not working properly since DOS a few weeks back

> Ok, I know this is sligtly off-topic, but has anyone else had problems
> with Rules_du_jour since the DDOS against sare and spamhaus a few weeks
> back?

Yes, and I've even added in a five-second pause between checking each
rule. Hasn't helped :(  Might investigate doing the updates at a different
time of day.

Anthony
--
www.fonant.com - Quality web sites
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!


More information about the MailScanner mailing list