|
||||||||||
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.ValidRcptMX
public class ValidRcptMX
This class can be used to reject email with bogus MX which is send from a authorized user or an authorized network.
Constructor Summary | |
---|---|
ValidRcptMX()
|
Method Summary | |
---|---|
protected boolean |
check(SMTPSession session)
All checks must be done in this method |
void |
configure(org.apache.avalon.framework.configuration.Configuration arg0)
|
java.util.Collection |
getImplCommands()
Return a Collection of implemented commands |
JunkHandlerData |
getJunkHandlerData(SMTPSession session)
Get the JunkHandlerData to work with |
void |
onCommand(SMTPSession session)
Handle the command |
void |
service(org.apache.avalon.framework.service.ServiceManager arg0)
|
void |
setBannedNetworks(java.util.Collection networks,
DNSService dnsServer)
Set the banned networks |
void |
setDNSServer(DNSService dnsServer)
Set the DNSService |
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 |
---|
public ValidRcptMX()
Method Detail |
---|
public void configure(org.apache.avalon.framework.configuration.Configuration arg0) 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
AbstractJunkHandler.configure(org.apache.avalon.framework.configuration.Configuration)
public void setBannedNetworks(java.util.Collection networks, DNSService dnsServer)
networks
- Collection of networksdnsServer
- The DNSServicepublic void service(org.apache.avalon.framework.service.ServiceManager arg0) 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 java.util.Collection getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler
CommandHandler.getImplCommands()
public void onCommand(SMTPSession session)
CommandHandler
onCommand
in interface CommandHandler
CommandHandler.onCommand(SMTPSession)
public void setDNSServer(DNSService dnsServer)
dnsServer
- The dnsServerprotected boolean check(SMTPSession session)
AbstractJunkHandler
check
in class AbstractJunkHandler
session
- the SMTPSession
AbstractJunkHandler.check(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 |