|
||||||||||
| 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.TarpitHandler
public class TarpitHandler
Add tarpit support to SMTPServer. See http://www.palomine.net/qmail/tarpit.html for more information
| Constructor Summary | |
|---|---|
TarpitHandler()
|
|
| Method Summary | |
|---|---|
HookResult |
doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
Return the HookResult after run the hook |
void |
setTarpitRcptCount(int tarpitRcptCount)
Set the tarpit count after which the tarpit sleep time will be activated |
void |
setTarpitSleepTime(long tarpitSleepTime)
Set the tarpit sleep time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TarpitHandler()
| Method Detail |
|---|
public void setTarpitRcptCount(int tarpitRcptCount)
tarpitRcptCount - public void setTarpitSleepTime(long tarpitSleepTime)
tarpitSleepTime - Time in milliseconds
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 | |||||||||