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-safe| Constructor 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, setSoftwareNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGreeting, getHelloName, getSoftwareNamepublic String helloName
public long getMaxMessageSize()
SMTPConfigurationgetMaxMessageSize in interface SMTPConfigurationpublic boolean isRelayingAllowed(String remoteIP)
falseisRelayingAllowed in interface SMTPConfigurationremoteIP - the remote IP address in String formpublic boolean isAuthRequired(String remoteIP)
falseisAuthRequired in interface SMTPConfigurationremoteIP - the remote IP address in String formpublic void setHeloEhloEnforcement(boolean enforceHeloEhlo)
public boolean useHeloEhloEnforcement()
SMTPConfigurationuseHeloEhloEnforcement in interface SMTPConfigurationpublic boolean useAddressBracketsEnforcement()
SMTPConfigurationuseAddressBracketsEnforcement in interface SMTPConfigurationpublic void setUseAddressBracketsEnforcement(boolean bracketsEnforcement)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.