org.apache.james.protocols.smtp.core
Class AbstractSenderAuthIdentifyVerificationRcptHook

java.lang.Object
  extended by org.apache.james.protocols.smtp.core.AbstractSenderAuthIdentifyVerificationRcptHook
All Implemented Interfaces:
ProtocolHandler, Hook, RcptHook

public abstract class AbstractSenderAuthIdentifyVerificationRcptHook
extends Object
implements RcptHook

Handler which check if the authenticated user is the same as the one used as MAIL FROM


Constructor Summary
AbstractSenderAuthIdentifyVerificationRcptHook()
           
 
Method Summary
 HookResult doRcpt(SMTPSession session, org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress rcpt)
          Return the HookResult after run the hook
protected abstract  boolean isLocalDomain(String domain)
          Return true if the given domain is a local domain for this server
protected abstract  boolean useVirtualHosting()
          Return true if virtualHosting should get used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSenderAuthIdentifyVerificationRcptHook

public AbstractSenderAuthIdentifyVerificationRcptHook()
Method Detail

doRcpt

public HookResult doRcpt(SMTPSession session,
                         org.apache.mailet.MailAddress sender,
                         org.apache.mailet.MailAddress rcpt)
Description copied from interface: RcptHook
Return the HookResult after run the hook

Specified by:
doRcpt in interface RcptHook
Parameters:
session - the SMTPSession
sender - the sender MailAddress
rcpt - the recipient MailAddress
Returns:
HookResult
See Also:
RcptHook.doRcpt(org.apache.james.protocols.smtp.SMTPSession, org.apache.mailet.MailAddress, org.apache.mailet.MailAddress)

isLocalDomain

protected abstract boolean isLocalDomain(String domain)
Return true if the given domain is a local domain for this server

Parameters:
domain -
Returns:
isLocal

useVirtualHosting

protected abstract boolean useVirtualHosting()
Return true if virtualHosting should get used. If so the full email address will get used to match against the supplied auth username

Returns:
useVirtualHosting


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.