|
||||||||||
| 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.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 DNSService |
dnsService
|
| Constructor Summary | |
|---|---|
ResolvableEhloHeloHandler()
|
|
| Method Summary | |
|---|---|
protected boolean |
check(SMTPSession session,
org.apache.mailet.MailAddress rcpt)
|
protected void |
checkEhloHelo(SMTPSession session,
java.lang.String argument)
Check if EHLO/HELO is resolvable |
HookResult |
doHelo(SMTPSession session,
java.lang.String helo)
Return the HookResult after run the hook |
HookResult |
doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
Return the HookResult after run the hook |
DNSService |
getDNSService()
Gets the DNS service. |
protected boolean |
isBadHelo(SMTPSession session,
java.lang.String argument)
|
void |
setDNSService(DNSService dnsService)
Sets the DNS service. |
| 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 DNSService dnsService
| Constructor Detail |
|---|
public ResolvableEhloHeloHandler()
| Method Detail |
|---|
public final DNSService getDNSService()
public final void setDNSService(DNSService dnsService)
dnsService - the dnsService to set
protected void checkEhloHelo(SMTPSession session,
java.lang.String argument)
session - The SMTPSessionargument - The argument
protected boolean isBadHelo(SMTPSession session,
java.lang.String argument)
session - the SMTPSessionargument - the argument
protected boolean check(SMTPSession session,
org.apache.mailet.MailAddress rcpt)
org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler#check(org.apache.james.protocols.smtp.SMTPSession)
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)
public HookResult doHelo(SMTPSession session,
java.lang.String helo)
HeloHook
doHelo in interface HeloHooksession - the SMTPSessionhelo - the helo name
HeloHook.doHelo(org.apache.james.protocols.smtp.SMTPSession, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||