What is your end goal? Is it to:
- Deny connection from a bad IP?
- Let the sender connect and send an email but put that email in junk?
For the second type, simply add the IP in the blacklist.
Check http://www.xeams.com/front-door-rejector.htm for the first type. We DO NOT recommend using this method unless there is no other choice.