|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler
org.apache.james.smtpserver.core.filter.fastfail.ResolvableEhloHeloHandler
public class ResolvableEhloHeloHandler
This CommandHandler can be used to reject not resolvable EHLO/HELO
| Field Summary | |
|---|---|
static java.lang.String |
BAD_EHLO_HELO
|
protected boolean |
checkAuthNetworks
|
protected DNSService |
dnsServer
|
| Constructor Summary | |
|---|---|
ResolvableEhloHeloHandler()
|
|
| Method Summary | |
|---|---|
protected boolean |
check(SMTPSession session)
All checks must be done in this method |
protected void |
checkEhloHelo(SMTPSession session,
java.lang.String argument)
Check if EHLO/HELO is resolvable |
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 |
service(org.apache.avalon.framework.service.ServiceManager serviceMan)
|
void |
setCheckAuthNetworks(boolean checkAuthNetworks)
Set to true if AuthNetworks should be included in the EHLO/HELO check |
void |
setCheckAuthUsers(boolean checkAuthUsers)
Set to true if Auth users should be included in the EHLO/HELO check |
void |
setDnsServer(DNSService dnsServer)
Set the DNSService |
| 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 BAD_EHLO_HELO
protected boolean checkAuthNetworks
protected DNSService dnsServer
| Constructor Detail |
|---|
public ResolvableEhloHeloHandler()
| 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.Configurableconfigure in class AbstractJunkHandlerorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.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.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(ServiceManager)public void setCheckAuthNetworks(boolean checkAuthNetworks)
checkAuthNetworks - Set to true to enablepublic void setCheckAuthUsers(boolean checkAuthUsers)
checkAuthUsers - Set to true to enablepublic void setDnsServer(DNSService dnsServer)
dnsServer - The DNSServicepublic void onCommand(SMTPSession session)
CommandHandler
onCommand in interface CommandHandlerCommandHandler.onCommand(SMTPSession)
protected void checkEhloHelo(SMTPSession session,
java.lang.String argument)
session - The SMTPSessionargument - The argumentpublic java.util.Collection getImplCommands()
CommandHandler
getImplCommands in interface CommandHandlerCommandHandler.getImplCommands()protected boolean check(SMTPSession session)
AbstractJunkHandler
check in class AbstractJunkHandlersession - the SMTPSession
AbstractJunkHandler.check(org.apache.james.smtpserver.SMTPSession)protected JunkScore getJunkScore(SMTPSession session)
AbstractJunkHandler
getJunkScore in class AbstractJunkHandlerAbstractJunkHandler.getJunkScore(org.apache.james.smtpserver.SMTPSession)public JunkHandlerData getJunkHandlerData(SMTPSession session)
AbstractJunkHandler
getJunkHandlerData in class AbstractJunkHandlersession - 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 | |||||||||