org.apache.james.smtpserver
Interface SMTPHandlerConfigurationData


public interface SMTPHandlerConfigurationData

Provides a number of server-wide constant values to the SMTPHandlers


Method Summary
 java.lang.String getHelloName()
          Returns the service wide hello name
 MailServer getMailServer()
          Returns the MailServer interface for this service.
 long getMaxMessageSize()
          Returns the service wide maximum message size in bytes.
 int getResetLength()
          Returns the service wide reset length in bytes.
 UsersRepository getUsersRepository()
          Returns the UsersRepository for this service.
 boolean isAuthRequired()
          Returns whether SMTP auth is active for this server.
 boolean isAuthRequired(java.lang.String remoteIP)
          Returns whether SMTP AUTH is active for this server, and necessary for the IP address passed.
 boolean isRelayingAllowed(java.lang.String remoteIP)
          Returns whether relaying is allowed for the IP address passed.
 boolean isVerifyIdentity()
          Returns whether the service validates the identity of its senders.
 boolean useHeloEhloEnforcement()
          Returns whether the remote server needs to send a HELO/EHLO of its senders.
 

Method Detail

getHelloName

java.lang.String getHelloName()
Returns the service wide hello name

Returns:
the hello name

getResetLength

int getResetLength()
Returns the service wide reset length in bytes.

Returns:
the reset length

getMaxMessageSize

long getMaxMessageSize()
Returns the service wide maximum message size in bytes.

Returns:
the maximum message size

isRelayingAllowed

boolean isRelayingAllowed(java.lang.String remoteIP)
Returns whether relaying is allowed for the IP address passed.

Parameters:
remoteIP - the remote IP address in String form
Returns:
whether relaying is allowed

isAuthRequired

boolean isAuthRequired(java.lang.String remoteIP)
Returns whether SMTP AUTH is active for this server, and necessary for the IP address passed.

Parameters:
remoteIP - the remote IP address in String form
Returns:
whether SMTP authentication is on

isAuthRequired

boolean isAuthRequired()
Returns whether SMTP auth is active for this server.

Returns:
whether SMTP authentication is on

isVerifyIdentity

boolean isVerifyIdentity()
Returns whether the service validates the identity of its senders.

Returns:
whether SMTP authentication is on

useHeloEhloEnforcement

boolean useHeloEhloEnforcement()
Returns whether the remote server needs to send a HELO/EHLO of its senders.

Returns:
whether SMTP authentication is on

getMailServer

MailServer getMailServer()
Returns the MailServer interface for this service.

Returns:
the MailServer interface for this service

getUsersRepository

UsersRepository getUsersRepository()
Returns the UsersRepository for this service.

Returns:
the local users repository


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.