Email Server Configuration
You can configure Control-M components to connect to email servers via the following connection types:
-
Secure Connection: Connects via Simple Mail Transfer Protocol Secure (SMTPS), which adds the Transport Layer Security (TLS) to SMTP to encrypt and secure data integrity.
-
Cleartext Connection: Connects via SMTP and does not encrypt data.
By default, Control-M components connect to email servers via SMTP cleartext login, without authentication.
Connecting Control-M/EM to an Email Server via SMTPS
This procedure describes how to connect Control-M/EM to an email server with or without authentication credentials, via SMTPS, which increases data integrity and security.
Begin
-
Do the following:
-
Verify that the email server parameters are correctly configured, as described in Configuring Control-M Workload Change Manager Email Notifications.
-
Verify that the email server host and port are defined by the EmailServer parameter, as described in Configuring Control-M/EM System Parameters.
-
-
Navigate to the <EM_HOME>/etc/ directory, make a copy of the mail.smtps.properties file, and save it as mail.properties in the same directory.
-
Do one of the following:
-
Without Authentication: Open the mail.properties file in a text editor, and change the mail.smtps.auth parameter to false.
-
With Authentication: Do the following:
-
Open the mail.properties file in a text editor, and verify that the mail.smtps.auth parameter is set to true.
-
Make a copy of the mail_auth.properties.default file, and save it as mail_auth.properties in the same directory, <EM_HOME>/etc/.
-
Open the mail_auth.properties file and at the bottom of the file, define the following parameters:
-
bmc.mail.user=<Username>
-
bmc.mail.password=<Password>
-
bmc.mail.password_crypt=no
-
-
(Optional) Do the following to encrypt the password in the mail_auth.properties file:
-
Navigate to the <EM HOME>/bin/ directory.
-
Run the changeMailPass utility.
-
At the prompt, type the password.
The changeMailPass utility encrypts the password and sets the bmc.mail.password_crypt encryption parameter to yes.
In Control-M/EM 9.0.21 and higher, the changeMailPass utility uses the db_enc_key.txt encryption key. In lower versions, this utility uses the password encryption key defined in the <EM_HOME>/etc/aes.key file. For more information, see Control-M Encryption Keys.
-
-
-
Connecting Control-M/Server to an Email Server via SMTPS
This procedure describes how to connect Control-M/Server to an email server with or without authentication credentials, via SMTPS, which increases data integrity and security.
Begin
-
Do the following:
-
Verify that the local Agent email server parameters are correctly configured, as described in Email Parameters.
-
Verify that the email server host and port are defined by the SMTP_SERVER_NAME and SMTP_PORT_NUMBER parameters, as described in SMTP Parameters.
-
-
Navigate to the <Control-M/Server_Home>/ctm_server/data/ directory, make a copy of the mail.smtps.properties file, and save it as mail.properties to the same directory.
-
Do one of the following:
-
Without Authentication: Open the mail.properties file in a text editor, and change the mail.smtps.auth parameter to false.
-
With Authentication: Do the following:
-
Open the mail.properties file in a text editor, and verify that the mail.smtps.auth parameter is set to true.
-
From the <Control-M/Server_Home>/ctm_server/data/ directory, make a copy of the mail_auth.properties.default file, and save it as mail_auth.properties in the same directory.
-
Open the mail_auth.properties file and at the bottom of the file, define the following parameters:
-
bmc.mail.user=<Username>
-
bmc.mail.password=<Password>
-
bmc.mail.password_crypt=no
-
-
(Optional) Do the following to encrypt the password in the mail_auth.properties file:
-
Navigate to the <Control-M/Server_Home>/scripts/ directory.
-
Run the ctm_change_mail_pass utility.
-
At the prompt, type the password.
The utility encrypts the password and sets the bmc.mail.password_crypt encryption parameter to yes.
In Control-M/EM 9.0.21 and higher, the ctm_change_mail_pass utility uses the db_enc_key.txt encryption key. In lower versions, this utility uses the password encryption key defined in the <Control-M/Server_Home>/etc/aes.key file. For more information, see Control-M Encryption Keys.
-
-
-
Connecting Control-M/EM to an Email Server via SMTP Cleartext Login
This procedure describes how to connect Control-M/EM to an email server with or without authentication credentials via SMTP cleartext login, which does not encrypt data.
Begin
-
Do the following:
-
Verify that the email server parameters are correctly configured, as described in Configuring Control-M Workload Change Manager Email Notifications.
-
Verify that the email server host and port are defined by the EmailServer parameter, as described in Configuring Control-M/EM System Parameters.
-
-
(Optional) Do the following to connect with authentication:
-
Navigate to the <EM_HOME>/etc/ directory, make a copy of the mail.smtp_no_auth.properties file, and save it as mail.properties in the same directory.
-
Open the mail.properties file in a text editor, and at the bottom of the file, add the following line:
mail.smtp.auth=true
-
Make a copy of the mail_auth.properties.default file, and save it as mail_auth.properties in the same directory, <EM_HOME>/etc/.
-
Open the mail_auth.properties file and at the bottom of the file, define the following parameters:
-
bmc.mail.user=<username>
-
bmc.mail.password=<password>
-
bmc.mail.password_crypt=no
-
-
(Optional) Do the following to encrypt the password in the mail_auth.properties file:
-
Navigate to the <EM HOME>/bin/ directory.
-
Run the changeMailPass utility.
-
At the prompt, type the password.
The utility encrypts the password and changes the encryption status to bmc.mail.password_crypt=yes.
In Control-M/EM 9.0.21 and higher, the changeMailPass utility uses the db_enc_key.txt encryption key. In earlier versions, this utility uses the password encryption key defined in the <EM_HOME>/etc/aes.key file. For more information, see Control-M Encryption Keys.
-
-
Connecting Control-M/Server to an Email Server via SMTP Cleartext Login
This procedure describes how to connect Control-M/Server to an email server with authentication credentials via SMTP cleartext login, which does not encrypt data.
Begin
-
Do the following:
-
Verify that the email server parameters are correctly configured, as described in Email Parameters.
-
Verify that the email server host and port are defined by the SMTP_SERVER_NAME and SMTP_PORT_NUMBER parameters, as described in SMTP Parameters.
-
-
(Optional) Do the following to connect with authentication:
-
Navigate to the <Control-M/Server_Home>/ctm_server/data/ directory, make a copy of the mail.smtp.properties file, and save it as mail.properties to the same directory.
-
Open the mail.properties file in a text editor, and at the bottom of the file, add the following line:
mail.smtp.auth=true
-
From the <Control-M/Server_Home>/ctm_server/data/ directory, make a copy of the mail_auth.properties.default file, and save it as mail_auth.properties in the same directory.
-
Open the mail_auth.properties file and at the bottom of the file, define the following parameters:
-
bmc.mail.user=<username>
-
bmc.mail.password=<password>
-
bmc.mail.password_crypt=no
-
-
(Optional) Do the following to encrypt the password in the mail_auth.properties file:
-
Navigate to the <Control-M/Server_Home>/scripts/ directory.
-
Run the ctm_change_mail_pass utility.
-
At the prompt, type the password.
The utility encrypts the password and changes the encryption status to bmc.mail.password_crypt=yes.
In Control-M/EM 9.0.21 and higher, the ctm_change_mail_pass utility uses the db_enc_key.txt encryption key. In earlier versions, this utility uses the password encryption key defined in the <Control-M/Server_Home>/etc/aes.key file. For more information, see Control-M Encryption Keys.
-
-