org.apache.james.protocols.smtp
Interface SMTPConfiguration


public interface SMTPConfiguration

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


Method Summary
 java.lang.String getHelloName()
          Returns the service wide hello name
 long getMaxMessageSize()
          Returns the service wide maximum message size in bytes.
 int getResetLength()
          Returns the service wide reset length in bytes.
 java.lang.String getSMTPGreeting()
          Return the SMTPGreeting which should used.
 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 isStartTLSSupported()
           
 boolean useAddressBracketsEnforcement()
          Return wheter the mailserver will accept addresses without brackets enclosed.
 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

useHeloEhloEnforcement

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

Returns:
whether SMTP authentication is on

getSMTPGreeting

java.lang.String getSMTPGreeting()
Return the SMTPGreeting which should used.

Returns:
the SMTPGreeting

useAddressBracketsEnforcement

boolean useAddressBracketsEnforcement()
Return wheter the mailserver will accept addresses without brackets enclosed.

Returns:
true or false

isStartTLSSupported

boolean isStartTLSSupported()


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