|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler org.apache.james.smtpserver.core.filter.fastfail.DNSRBLHandler
public class DNSRBLHandler
Connect handler for DNSRBL processing
Field Summary | |
---|---|
static java.lang.String |
RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME
|
static java.lang.String |
RBL_DETAIL_MAIL_ATTRIBUTE_NAME
|
Constructor Summary | |
---|---|
DNSRBLHandler()
|
Method Summary | |
---|---|
protected boolean |
check(SMTPSession session)
All checks must be done in this method |
void |
checkDNSRBL(SMTPSession session,
java.lang.String ipAddress)
This checks DNSRBL whitelists and blacklists. |
void |
configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
|
java.util.Collection |
getImplCommands()
Return a Collection of implemented commands |
JunkHandlerData |
getJunkHandlerData(SMTPSession session)
Get the JunkHandlerData to work with |
protected JunkScore |
getJunkScore(SMTPSession session)
Return the JunkScore object. |
void |
onCommand(SMTPSession session)
Handle the command |
void |
onConnect(SMTPSession session)
check if the remote Ip address is block listed |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceMan)
|
void |
setBlacklist(java.lang.String[] blacklist)
Set the blacklist array |
void |
setDNSServer(DNSService dnsServer)
Set the DNSService |
void |
setGetDetail(boolean getDetail)
Set for try to get a TXT record for the blocked record. |
void |
setWhitelist(java.lang.String[] whitelist)
Set the whitelist array |
Methods inherited from class org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler |
---|
doProcessing, getAction, 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 |
Field Detail |
---|
public static final java.lang.String RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME
public static final java.lang.String RBL_DETAIL_MAIL_ATTRIBUTE_NAME
Constructor Detail |
---|
public DNSRBLHandler()
Method Detail |
---|
public void configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configure
in class AbstractJunkHandler
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(Configuration)
public void service(org.apache.avalon.framework.service.ServiceManager serviceMan) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(ServiceManager)
public void onConnect(SMTPSession session)
onConnect
in interface ConnectHandler
ConnectHandler.onConnect(SMTPSession)
public void setWhitelist(java.lang.String[] whitelist)
whitelist
- The array which contains the whitelistpublic void setBlacklist(java.lang.String[] blacklist)
blacklist
- The array which contains the blacklistpublic void setDNSServer(DNSService dnsServer)
dnsServer
- The DNSServicepublic void setGetDetail(boolean getDetail)
getDetail
- Set to ture for enablepublic void checkDNSRBL(SMTPSession session, java.lang.String ipAddress)
public java.util.Collection getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler
CommandHandler.getImplCommands()
public void onCommand(SMTPSession session)
CommandHandler
onCommand
in interface CommandHandler
CommandHandler.onCommand(SMTPSession)
protected boolean check(SMTPSession session)
AbstractJunkHandler
check
in class AbstractJunkHandler
session
- the SMTPSession
AbstractJunkHandler.check(org.apache.james.smtpserver.SMTPSession)
protected JunkScore getJunkScore(SMTPSession session)
AbstractJunkHandler
getJunkScore
in class AbstractJunkHandler
AbstractJunkHandler.getJunkScore(org.apache.james.smtpserver.SMTPSession)
public JunkHandlerData getJunkHandlerData(SMTPSession session)
AbstractJunkHandler
getJunkHandlerData
in class AbstractJunkHandler
session
- the SMTPSession
AbstractJunkHandler.getJunkHandlerData(org.apache.james.smtpserver.SMTPSession)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |