SFTPPlus can interact with various external resources in order to execute related operations, such as sending emails on errors.
The same resource can be shared for different server operations. For example you can use the same email client to send email for both critical errors or to inform about a normal operation.
When a component inside the SFTPPlus requires a resource, and the resource is not already started, that resource is automatically started.
Adding a new resource configuration is done by creating a new section inside the configuration file. The name of the section should be prefixed with resources/ and followed by the resource’s UUID.
The resource’s UUID can be any unique string used to identify the resource. Once defined, the UUID should not be changed.
For more information about UUIDs see the dedicated UUID documentation.
For example, to add a new resource configuration for an SMTP client called Client for staging SMTP server
[resource/a904e3a6-a59b-4bbf-8abd-edcae4d3324f]
name = Client for staging SMTP server
description = Send email using the staging SMTP server.
type = email-client
address = 10.0.4.35
port = 25
While additional options are available (depending on the resource type), each resource configuration section has the following standard configuration options:
| Default value: | ‘’ |
|---|---|
| Optional: | No |
| From version: | 3.4.0 |
| Values: |
|
| Description: | Human-readable short string used to identify this resource. |
| Default value: | ‘’ |
|---|---|
| Optional: | Yes |
| From version: | 3.4.0 |
| Values: |
|
| Description: | Human-readable text that describes the purpose of this resource. |
| Default value: | ‘’ |
|---|---|
| Optional: | No |
| From version: | 3.4.0 |
| Values: |
|
| Description: | This option specifies the type of the resource. |
An email-client is configured to allow SFTPPlus to send emails as an SMTP client via a remote SMTP server.
You will need to specify the address or the fully qualified domain name of the SMTP server to use and the value to be used by this client for the From field.
| Default value: | 127.0.0.1 |
|---|---|
| Optional: | No |
| From version: | 3.4.0 |
| Values: |
|
| Description: | This option specifies the IP address or the host name of the remote server. |
| Default value: | 25 |
|---|---|
| Optional: | No |
| From version: | 3.4.0 |
| Values: |
|
| Description: | This option specifies the IP port of the remote server. |
| Optional: | Yes |
|---|---|
| Default value: | ‘’ |
| Values: |
|
| From version: | 3.4.0 |
| Description: | User name used to connect to the server. |
| Optional: | Yes |
|---|---|
| Default value: | ‘’ |
| Values: |
|
| From version: | 3.4.0 |
| Description: | Password used to connect to the server. |
| Optional: | No |
|---|---|
| Default value: | |
| Values: |
|
| From version: | 3.4.0 |
| Description: | Email address used in the From field of messages sent from this server. |