|
||||||||||
| 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 String |
RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME
|
static String |
RBL_DETAIL_MAIL_ATTRIBUTE_NAME
|
| Constructor Summary | |
|---|---|
DNSRBLHandler()
|
|
| Method Summary | |
|---|---|
void |
checkDNSRBL(SMTPSession session,
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 |
setBlacklist(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(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 String RBL_BLOCKLISTED_MAIL_ATTRIBUTE_NAME
public static final String RBL_DETAIL_MAIL_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public DNSRBLHandler()
| Method Detail |
|---|
public final void setDNSService(DNSService dnsService)
dnsService - the dnsService to setpublic void setWhitelist(String[] whitelist)
whitelist - The array which contains the whitelistpublic void setBlacklist(String[] blacklist)
blacklist - The array which contains the blacklistpublic void setGetDetail(boolean getDetail)
getDetail - Set to ture for enable
public void checkDNSRBL(SMTPSession session,
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 | |||||||||