Package ch.astorm.smtp4j
Class SmtpServerOptions
java.lang.Object
ch.astorm.smtp4j.SmtpServerOptions
Represents options of the
SmtpServer.
Most of theses options can be set directly through the SmtpServerBuilder.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionList ofSmtpAuthenticatorHandler.String reply when a client connects to smtp4j.Output for internal debugging.Function that generates the reply to theSmtpCommand.Type.EHLOcommand.intThe maximum message size (in bytes).The protocol to use.booleanTrue if the TLS secure layer must be asked once connected.TheSSLContextProviderthat will provide theSSLContextto upgrade to TLS communication.booleanTrue if theSmtpCommand.Type.STARTTLScommand must be accepted.The users repository used for the authentication. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
debugStream
Output for internal debugging. This stream will receive all the inputs/outputs of the underlying SMTP protocol. Ifnull, then no debug will be printed. -
startTLS
public boolean startTLSTrue if theSmtpCommand.Type.STARTTLScommand must be accepted. In the client sends it, it will be still unsupported. -
requireTLS
public boolean requireTLSTrue if the TLS secure layer must be asked once connected. This value has impact only whenstartTLSis set totrue. If this value is true, then plain connections that do not switch to secure transport layer withSTARTTLSwill be rejected. -
protocol
The protocol to use. -
sslContextProvider
TheSSLContextProviderthat will provide theSSLContextto upgrade to TLS communication.- See Also:
-
connectionString
String reply when a client connects to smtp4j. -
ehloResponseFunction
Function that generates the reply to theSmtpCommand.Type.EHLOcommand. The function input is the parameter sent by the client in the protocol and might be null. -
maxMessageSize
public int maxMessageSizeThe maximum message size (in bytes). A value less or equal than zero disables the message size verification. As per RFC1870, the message size is defined as the number of octets, including CR-LF pairs, but not the SMTP DATA command's terminating dot or doubled quoting dots, to be transmitted by the SMTP client after receiving reply code 354 to the DATA command. -
authenticators
List ofSmtpAuthenticatorHandler. If this list has one item or more, an authentication will be required from the client. -
usersRepository
The users repository used for the authentication.
-
-
Constructor Details
-
SmtpServerOptions
public SmtpServerOptions()
-