POST SMTP Test
The POST /SMTP Short for simple mail transfer protocol, SMTP is a protocol for sending email messages between servers./Test method is used to test the SMTP settings by sending a test email message. This method returns HTTP 200 OK on a success with details about the SMTP profile.
Table 806: POST SMTP Test Input Parameters
Name | In | Description |
---|---|---|
Host | Body | Required. A string indicating the fully qualified domain name of your SMTP host (e.g. corpexch02.keyexample.com). |
Id | Body | An integer indicating the Keyfactor Command reference ID of the SMTP record. This will be 1 in most environments. |
Port | Body | Required. An integer indicating the SMTP port (e.g. 25). |
RelayAuthenticationType | Body |
An integer indicating the type of authentication used to connect to the mail server. The default is 0 (zero). |
RelayPassword | Body |
Required*. An object indicating the password information to use for authentication along with the RelayUsername if the RelayAuthenticationType is 2 (Explicit Credentials). This value is Required if RelayAuthenticationType is 2. Supported methods to store secret information are:
Due to its sensitive nature, this value is not returned in responses. |
RelayUsername | Body |
Required*. An object indicating the username information to use for authentication along with the RelayPassword if the RelayAuthenticationType is 2 (Explicit Credentials). This value is Required if RelayAuthenticationType is 2. Supported methods to store secret information are:
|
SenderAccount | Body |
Required. A string indicating the sender for email messages delivered from Keyfactor Command, in the form of an email address (e.g. jsmith@keyexample.com). Depending on the email configuration in your environment, the sender account may need to be a valid user on your mail server or you may be able to put anything in this field. |
SenderName | Body |
Required. A string indicating the name that appears as the “from” in the user's mail client (e.g. Keyfactor Command). This value is used for both configurations of RelayAuthenticationType. |
TestRecipient | Body | Required. A string indicating the recipient name, in email format (e.g. mjones@keyexample.com), for a test message to be sent using the SMTP configuration to confirm functionality. |
UseSSL | Body | A Boolean indicating that mail should be delivered over TLS/SSL. Not all mail servers support this. |
Table 807: POST SMTP Test Response Data
Name | Description |
---|---|
Host | A string indicating the fully qualified domain name of your SMTP host (e.g. corpexch02.keyexample.com). |
Id | An integer indicating the Keyfactor Command reference ID of the SMTP record. This will be 1 in most environments. |
Port | An integer indicating the SMTP port (e.g. 25). |
RelayAuthenticationType |
An integer indicating the type of authentication used to connect to the mail server. The default is 0 (zero). |
RelayUsername |
An object indicating the username information to use for authentication along with the RelayPassword if the RelayAuthenticationType is 2 (Explicit Credentials). |
SenderAccount |
A string indicating the sender for email messages delivered from Keyfactor Command, in the form of an email address (e.g. jsmith@keyexample.com). Depending on the email configuration in your environment, the sender account may need to be a valid user on your mail server or you may be able to put anything in this field. |
SenderName |
A string indicating the name that appears as the “from” in the user's mail client (e.g. Keyfactor Command). This value is used for both configurations of RelayAuthenticationType. |
TestRecipient | A string indicating the recipient name, in email format (e.g. mjones@keyexample.com), for a test message to be sent using the SMTP configuration to confirm functionality. |
UseSSL | A Boolean indicating that mail should be delivered over TLS/SSL. Not all mail servers support this. |



Was this page helpful? Provide Feedback