You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Rafael Benzan <rb...@yahoo.com> on 2002/12/27 17:17:11 UTC

InSpammerBlackList - DNSRBL

I'm having a problem with all incoming emails to my James 2.1a1 install
on Solaris being treated as spam.  If I comment out the default
configuration's "InSpammerBlackList" matchers mail gets routed locally
fine.  

After downloading the source and looking at this matcher, I created  the
following simple Java test program which mimics the InSpammerBlackList
matcher.  I get differing results from the Solaris box and my WinXP
development system using the same JRE for the same IP addresses.  I've
tried mailing from attbi.com and yahoo.com mail accounts which I hope
wouldn't be listed as spammers.

On Solaris it is black listed and on WinXP it isn't.  This is the same
behavior I get from my James 2.1a1 install on the WinXP box (i.e.
incoming mail is fine).  I'm not sure what the problem could be.  Any
thoughts/comments?  Thanks!!


package dnsrbl;

import java.util.StringTokenizer;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class app {
  public app() {
  }
  public static void main(String[] args) {
    app app1 = new app();

    String host = args[0];
    try {
      //Have to reverse the octets first
      StringBuffer sb = new StringBuffer();
      StringTokenizer st = new StringTokenizer(host, " .", false);

      while (st.hasMoreTokens()) {
        sb.insert(0, st.nextToken() + ".");
      }

      //Add the network prefix for this blacklist
      sb.append("blackholes.mail-abuse.org");

      System.out.println("Host:"+sb.toString());
      //Try to look it up
      InetAddress.getByName(sb.toString());

      //If we got here, that's bad... it means the host
      //  was found in the blacklist
      System.out.println("BLACKLIST");
    }
    catch (UnknownHostException uhe) {
      //This is good... it's not on the list
      System.out.println("clear!");
    }

  }
}


C:\>%JAVA_HOME%\bin\java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
C:\>%JAVA_HOME%\bin\java dnsrbl.app 204.127.198.38 
Host:38.198.127.204.blackholes.mail-abuse.org
clear!


# $JAVA_HOME/bin/java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode) 
# $JAVA_HOME/bin/java dnsrbl.app 204.127.198.38 
Host:38.198.127.204.blackholes.mail-abuse.org
BLACKLIST



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: InSpammerBlackList - DNSRBL

Posted by "Noel J. Bergman" <no...@devtech.com>.
See: http://openrbl.org/ip/204/127/198/38.htm.  Apparently that address is
listed in some DNSRBLs.  And, unfortunately, both ATTBI and Yahoo have had
mail servers included in some DNSRBLs because of perhaps overaggressive
widening of address spaces by RBL administrators.

You might try using relays.ordb.org or relays.osirusoft.com, and see if the
behavior changes.

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>