|
||||||||||
| 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.SpamTrapHandler
public class SpamTrapHandler
This handler can be used for providing a spam trap. IPAddresses which send emails to the configured recipients will get blacklisted for the configured time.
| Field Summary | |
|---|---|
protected long |
blockTime
Default blocktime 12 hours |
| Constructor Summary | |
|---|---|
SpamTrapHandler()
|
|
| Method Summary | |
|---|---|
HookResult |
doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
Return the HookResult after run the hook |
void |
setBlockTime(long blockTime)
|
void |
setSpamTrapRecipients(java.util.Collection<java.lang.String> spamTrapRecips)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long blockTime
| Constructor Detail |
|---|
public SpamTrapHandler()
| Method Detail |
|---|
public void setSpamTrapRecipients(java.util.Collection<java.lang.String> spamTrapRecips)
public void setBlockTime(long blockTime)
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 | |||||||||