[Mimedefang] Utilizing trustsource.org

John Nemeth jnemeth at victoria.tc.ca
Wed Apr 11 17:32:12 EDT 2007


On Sep 1, 11:17am, "Cormack, Ken" wrote:
}
} Does anyone know of any existing SA rules, or have any routines in their
} mimedefang-filter that utilize trustedsource.org's reputation-based info
} regarding relay IP addresses?
} 
} I would hope there's something a bit more elegant than this shell example,
} which screen-scrapes their web page and simply returns such strings as
} "Inoffensive", Neutral", and so on.
} 
} 	#!/bin/ksh
} 
} 	IP=${1}
} 
} 	lynx --dump http://www.trustedsource.org/query.php?q=${IP} \
} 	| grep "Current reputation" \
} 	| awk '{ print $NF }'

     At the very least, change this to:

	lynx --dump http://www.trustedsource.org/query.php?q=${IP} \
	| awk '/Current reputation/ { print $NF }'

Even with this, it is a rather poor interface for an antispam tool.
Somebody probably needs to look up how to use LWP and convert this code
to Perl.

}-- End of excerpt from "Cormack, Ken"



More information about the MIMEDefang mailing list