org.apache.james.transport.matchers
Class SenderInFakeDomain

java.lang.Object
  extended by org.apache.mailet.base.GenericMatcher
      extended by org.apache.james.transport.matchers.AbstractNetworkMatcher
          extended by org.apache.james.transport.matchers.SenderInFakeDomain
All Implemented Interfaces:
org.apache.mailet.Matcher, org.apache.mailet.MatcherConfig

public class SenderInFakeDomain
extends AbstractNetworkMatcher

Does a DNS lookup (MX and A/CNAME records) on the sender's domain. If there are no entries, the domain is considered fake and the match is successful.


Constructor Summary
SenderInFakeDomain()
           
 
Method Summary
 java.util.Collection match(org.apache.mailet.Mail mail)
           
 
Methods inherited from class org.apache.james.transport.matchers.AbstractNetworkMatcher
allowedNetworks, init, matchNetwork, matchNetwork
 
Methods inherited from class org.apache.mailet.base.GenericMatcher
destroy, getCondition, getMailetContext, getMatcherConfig, getMatcherInfo, getMatcherName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenderInFakeDomain

public SenderInFakeDomain()
Method Detail

match

public java.util.Collection match(org.apache.mailet.Mail mail)
Specified by:
match in interface org.apache.mailet.Matcher
Specified by:
match in class org.apache.mailet.base.GenericMatcher


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.