org.apache.james.protocols.smtp
Interface SMTPConfiguration

All Known Implementing Classes:
SMTPConfigurationImpl

public interface SMTPConfiguration

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


Method Summary
 String getHelloName()
          Returns the service wide hello name
 long getMaxMessageSize()
          Returns the service wide maximum message size in bytes.
 String getSMTPGreeting()
          Return the SMTPGreeting which should used.
 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 isStartTLSSupported()
          Return true if STARTTLS is supported.
 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

String getHelloName()
Returns the service wide hello name

Returns:
the hello name

getMaxMessageSize

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

Returns:
the maximum message size

isRelayingAllowed

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

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

useHeloEhloEnforcement

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

Returns:
whether SMTP authentication is on

getSMTPGreeting

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()
Return true if STARTTLS is supported.

Returns:
starttls


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