Configuring a mail server
TrueSight Server Automation jobs can generate an email upon their completion. To enable this capability, you must configure a mail server. If you do not want to use email notifications, this mail server configuration is not required. TrueSight Server Automation supports email communication over Simple Mail Transfer Protocol Secure (SMTPS). You must select SMTPS to use authentication. Authentication over SMTP IIRC is not supported.
Do the following:
- Start the Application Server Administration console as described in Starting-the-Application-Server-Administration-console.
- Run the following command to view the blasadmin parameters for configuring the mail settings:
show email all Configure the following blasadmin parameters:
Parameter
Description
Command example
fromaddress
Specify the email address to be used for sending the system-generated email.
set EmailConfig fromaddress test@gmail.comsmtpserver
Specify the host name or IP address of the SMTP server. If you want to use a non-default port, specify that port along with the host name. For example, <host_name>:3465
To use the default ports (25 for the SMTP server and 465 for SMTPS), do not specify anything after the host name.set EmailConfig smtpserver test123:3465techsupport
Displays the email address for technical support.
Note: This parameter is a read-only parameter.-
useSecure
New in 20.02.01Set to true to enable email communication over SMTPS. Else, the email communication occurs via SMTP.
Set the values of useSecure and useStartTLS parameters according to the communication method you want to use.
Communication
useSecure
useStartTLS
SMTPS
true
false
SMTP + StartTLS
false
true
SMTP
false
false
set EmailConfig useSecure trueuseStartTLS New in 21.02.01
Set to true to enable the use of StartTLS with SMTP when communicating with an SMTP server.
Set the values of useSecure and useStartTLS parameters according to the communication method you want to use.
Communication
useStartTLS
useSecure
StartTLS
true
false
SMTPS
false
true
SMTP
false
false
Note:
Enable a secure TLS connection to your SMTP server to allow using the useStartTLS parameter.
set EmailConfig useStartTLS trueusername
New in 20.02.01Specify the user name for (required only for the SMTPS communication)
set EmailConfig username test_userpassword
New in 20.02.01Specify the password for the user (required only for the SMTPS communication)
set EmailConfig password testpassword- Restart the Application Server.
Importing the certificate of the SMTPS server
To prevent certificate-related warnings while accessing the SMTPS server, you must import the CA-signed certificate chain for the SMTPS server into TrueSight Server Automation.
Do the following:
- Obtain the SMTPS server certificate.
- Log in to the system where TrueSight Server Automation is installed.
- (Windows) Log in as an administrator.
- (Linux) Log in as a root user.
- Navigate to the path where the keytool is located.
Run the following command to import the certificate:
(Windows)<path_to_keytool>\keytool -import -trustcacerts -keystore <BladeLogic_install_path>\NSH\jre\lib\security\cacerts"
-storepass <password> -noprompt -alias <cert_name> -file <certificate_from_email_Server>.crt(Linux)
<path_to_keytool>/keytool -import -trustcacerts -keystore <BladeLogic_install_path>/NSH/br/java/lib/security/cacerts"
-storepass <password> -noprompt -alias <cert_name> -file <certificate_from_email_Server>.crt- Similarly, import the other certificates from the certificate chain.