| 
James
 
Translated
 
Downloads
 
Current Documentation
 
Older Documentation
 
Project
 
Jakarta Information (web)
 
Related Projects (web)
 | 
| SMTP Configuration |  
| 
The SMTP service is controlled by a configuration block in the config.xml.
The smtpserver tag defines the boundaries of the configuration block.  It encloses 
all the relevant configuration for the SMTP server.  The behavior of the SMTP service is
controlled by the attributes and children of this tag. This tag has an optional boolean attribute - enabled - that defines whether the service is active or not.  The value defaults to "true" if
not present. The standard children of the smtpserver tag are: 
port - This is an optional integer value.  This value is the port on which this SMTP server is configured 
to listen.If the tag or value is omitted, the value will default to the standard SMTP port, 25.
bind - This is an optional value.  If present, this value is a string describing 
the IP address to which this service should be bound.  If the tag or value is absent then the service 
will bind to all network interfaces for the machine.
useTLS - This is an optional boolean value.  If this value is true, then the "ssl"
server socket factory is used to generate the server socket for this service.  If it is false, the 
"plain" server socket factory is used.  In either case this behavior is overridden by the serverSocketType 
tag which is described under the expert configuration options.
handler - This is an artifact preserved for backwards compatibility.  This tag 
was used to group related parameters.  It should disappear in future versions.
helloName - This is a required tag with an optional body that defines the server name 
used in the initial service greeting.  The tag may have an optional attribute - autodetect.  If 
the autodetect attribute is present and true, the service will use the local hostname
returned by the Java libraries.  If autodetect is absent or false, the body of the tag will be used.  In
this case, if no body is present, the value "localhost" will be used.
connectionTimeout - This is an optional tag with a non-negative integer body.  
authRequired - This is an optional tag with a boolean body.  If true, then the server will 
require authentication before delivering mail to non-local email addresses.  If this tag is absent, or the value 
is false then the client will not be prompted for authentication.  Only simple user/password authentication is
supported at this time.
verifyIdentity - This is an optional tag with a boolean body.  This option can only be used 
if SMTP authentication is required.  If the parameter is set to true then the sender address for the submitted message
will be verified against the authenticated subject.
maxmessagesize - This is an optional tag with a non-negative integer body.  It specifies the maximum 
size, in bytes, of any message that will be transmitted by this SMTP server.  It is a service-wide, as opposed to 
a per user, limit.  If the value is zero then there is no limit.  If the tag isn't specified, the service will
default to an unlimited message size. There are a few additional children of the smtpserver tag that are appropriate for advanced 
configurations.  These should only be used by expert administrators.  All tags in this group are optional. 
serverSocketFactory - This is an optional tag with a string body.  If the tag is present, 
the body must be the name of one of the server socket factories specified in the socket manager block.  Any other 
value will result in an error.  If present, this tag overrides the useTLS tag.
threadGroup - This is an optional tag with a string body.  If the tag is present, 
the body must be the name of one of the thread groups specified in the thread manager block.  Any other 
value will result in an error.  This tag is best used to fine tune thread allocation between the services.
connectionLimit - The connectionLimit parameter specifies the maximum number of client 
connections that this service will allow.  If no value is specified, the value defaults to that specified in 
the connectionmanager block.  A value of 0 means that there is no limit imposed 
by the service, although resource limitations imposed by other components 
(i.e. max # of threads) may serve to limit the number of open connections. |  |