org.apache.james.smtpserver.core.filter.fastfail
Class URIRBLHandler

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler
          extended by org.apache.james.smtpserver.core.filter.fastfail.URIRBLHandler
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, MessageHandler

public class URIRBLHandler
extends AbstractJunkHandler
implements MessageHandler, org.apache.avalon.framework.service.Serviceable

Extract domains from message and check against URIRBLServer. For more informations see http://www.surbl.org


Constructor Summary
URIRBLHandler()
           
 
Method Summary
protected  boolean check(SMTPSession session)
          All checks must be done in this method
 void configure(org.apache.avalon.framework.configuration.Configuration arg0)
           
 JunkHandlerData getJunkHandlerData(SMTPSession session)
          Get the JunkHandlerData to work with
 void onMessage(SMTPSession session)
           
 void service(org.apache.avalon.framework.service.ServiceManager serviceMan)
           
 void setCheckAuthNetworks(boolean checkAuthNetworks)
          Set to true if AuthNetworks should be included in the EHLO check
 void setDnsServer(DNSService dnsServer)
          Set the DNSService
 void setGetDetail(boolean getDetail)
          Set for try to get a TXT record for the blocked record.
 void setUriRblServer(java.util.Collection uriRbl)
          Set the UriRBL Servers
 
Methods inherited from class org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler
doProcessing, getAction, getJunkScore, getScore, setAction, setScore
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIRBLHandler

public URIRBLHandler()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceMan)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(ServiceManager)

configure

public void configure(org.apache.avalon.framework.configuration.Configuration arg0)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class AbstractJunkHandler
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(Configuration)

setUriRblServer

public void setUriRblServer(java.util.Collection uriRbl)
Set the UriRBL Servers

Parameters:
uriRbl - The Collection holding the servers

setCheckAuthNetworks

public void setCheckAuthNetworks(boolean checkAuthNetworks)
Set to true if AuthNetworks should be included in the EHLO check

Parameters:
checkAuthNetworks - Set to true to enable

setDnsServer

public void setDnsServer(DNSService dnsServer)
Set the DNSService

Parameters:
dnsServer - The DNSService

setGetDetail

public void setGetDetail(boolean getDetail)
Set for try to get a TXT record for the blocked record.

Parameters:
getDetail - Set to ture for enable

onMessage

public void onMessage(SMTPSession session)
Specified by:
onMessage in interface MessageHandler
See Also:
MessageHandler.onMessage(SMTPSession)

check

protected boolean check(SMTPSession session)
Description copied from class: AbstractJunkHandler
All checks must be done in this method

Specified by:
check in class AbstractJunkHandler
Parameters:
session - the SMTPSession
Returns:
true if the check match
See Also:
AbstractJunkHandler.check(org.apache.james.smtpserver.SMTPSession)

getJunkHandlerData

public JunkHandlerData getJunkHandlerData(SMTPSession session)
Description copied from class: AbstractJunkHandler
Get the JunkHandlerData to work with

Specified by:
getJunkHandlerData in class AbstractJunkHandler
Parameters:
session - the SMTPSession
Returns:
junkHandlerData
See Also:
AbstractJunkHandler.getJunkHandlerData(org.apache.james.smtpserver.SMTPSession)


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