service
SMTP Client Service — Delivers messages using SMTP to remote servers<service class="xms.transport.smtp.SMTPClientService" name="name" … > child tags </service>
Table 69. Attributes for service tag (for xms.transport.smtp.SMTPClientService)
| Name | Description | Type | Default Value | Required |
|---|---|---|---|---|
| address | The local address to bind to for outgoing connections. | InetAddress A valid IP address (or hostname, which will be resolved on server startup). Use * to bind all addresses. | * (Determined by policy service) | no |
| connectTimeout | Timeout in ms for connection attempts | int any integer | 120000 | no |
| connectionIdleTime | Deprecated, does nothing | int any integer | none | no |
| disableDSN | Allows you to disable DSNs if you handle them via actions | boolean true or false | none | no |
| hostMap | A String Map that maps local IPs to hostnames | StringMap Name of a StringMap as defined in StringMapService | none | no |
| hostname | The fully qualified hostname of this machine | String any character combination | none | no |
| maxHandlers | The number of simultaneous connections permitted | int value between 1 and 2147483647 | 200 | no |
| pixHack | Ensures terminating <CR><LF>.<CR><LF> is contained completely in one packet to workaround a pix firewall issue. | boolean true or false | false | no |
| protocol | Specifies the protocol to use when contacting remote servers | Protocol One of the following values: smtp,lmtp | smtp | no |
| socketTimeout | Timeout in ms for socket operations | int any integer | 300000 | no |
| target | The address of the server to direct messages to. | InetSocketAddress A hostname:port pair or hostname. Port is 25 if unspecified | * (Messages are directed to the address in their envelope) | no |
This tag depends on the following services (or a service that extends or implements these classes)
Example 66. Example configuration for SMTP Client Service
Required attributes are marked with a bold typeface
<service class="xms.transport.smtp.SMTPClientService" name="name"
address="address"
connectTimeout="connectTimeout"
connectionIdleTime="connectionIdleTime"
disableDSN="disableDSN"
hostMap="hostMap"
hostname="hostname"
maxHandlers="maxHandlers"
pixHack="pixHack"
protocol="protocol"
socketTimeout="socketTimeout"
target="target">
<action class="class" name="name" … />
<policy class="class" name="name" … />
</service>