public class SMTPConfigurationImpl extends ProtocolConfigurationImpl implements SMTPConfiguration
SMTPConfiguration
implementation which allows to set and get various configuration params. The set and get methods
are not thread-safeConstructor and Description |
---|
SMTPConfigurationImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getMaxMessageSize()
Returns the service wide maximum message size in bytes.
|
boolean |
isAuthRequired(String remoteIP)
Return
false |
boolean |
isRelayingAllowed(String remoteIP)
Return
false |
void |
setHeloEhloEnforcement(boolean enforceHeloEhlo) |
void |
setUseAddressBracketsEnforcement(boolean bracketsEnforcement) |
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.
|
getGreeting, getHelloName, getSoftwareName, setGreeting, setHelloName, setSoftwareName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGreeting, getHelloName, getSoftwareName
public String helloName
public long getMaxMessageSize()
SMTPConfiguration
getMaxMessageSize
in interface SMTPConfiguration
public boolean isRelayingAllowed(String remoteIP)
false
isRelayingAllowed
in interface SMTPConfiguration
remoteIP
- the remote IP address in String formpublic boolean isAuthRequired(String remoteIP)
false
isAuthRequired
in interface SMTPConfiguration
remoteIP
- the remote IP address in String formpublic void setHeloEhloEnforcement(boolean enforceHeloEhlo)
public boolean useHeloEhloEnforcement()
SMTPConfiguration
useHeloEhloEnforcement
in interface SMTPConfiguration
public boolean useAddressBracketsEnforcement()
SMTPConfiguration
useAddressBracketsEnforcement
in interface SMTPConfiguration
public void setUseAddressBracketsEnforcement(boolean bracketsEnforcement)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.