|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.smtp.core.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 | |
|---|---|
void |
checkDNSRBL(SMTPSession session,
java.lang.String ipAddress)
This checks DNSRBL whitelists and blacklists. |
HookResult |
doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
Return the HookResult after run the hook |
void |
onConnect(SMTPSession session)
check if the remote Ip address is block listed |
void |
setBlacklist(java.lang.String[] blacklist)
Set the blacklist array |
void |
setDNSService(DNSService dnsService)
Sets the DNS service. |
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 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 final void setDNSService(DNSService dnsService)
dnsService - the dnsService to setpublic void onConnect(SMTPSession session)
onConnect in interface ConnectHandler<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 setGetDetail(boolean getDetail)
getDetail - Set to ture for enable
public void checkDNSRBL(SMTPSession session,
java.lang.String ipAddress)
public HookResult doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
RcptHook
doRcpt in interface RcptHooksession - the SMTPSessionsender - the sender MailAddressrcpt - the recipient MailAddress
RcptHook.doRcpt(org.apache.james.protocols.smtp.SMTPSession, org.apache.mailet.MailAddress, org.apache.mailet.MailAddress)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||