org.apache.james.smtpserver
Interface SMTPHandlerConfigurationData


public interface SMTPHandlerConfigurationData

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


Method Summary
 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(String remoteIP)
          Returns whether SMTP AUTH is active for this server, and necessary for the IP address passed.
 boolean isRelayingAllowed(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

public String getHelloName()
Returns the service wide hello name

Returns:
the hello name

getResetLength

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

Returns:
the reset length

getMaxMessageSize

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

Returns:
the maximum message size

isRelayingAllowed

public boolean isRelayingAllowed(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

public boolean isAuthRequired(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

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

Returns:
whether SMTP authentication is on

isVerifyIdentity

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

Returns:
whether SMTP authentication is on

useHeloEhloEnforcement

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

Returns:
whether SMTP authentication is on

getMailServer

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

Returns:
the MailServer interface for this service

getUsersRepository

public UsersRepository getUsersRepository()
Returns the UsersRepository for this service.

Returns:
the local users repository


"Copyright © 1999-2006 Apache Jakarta Project. All Rights Reserved."