How to configure Control-M/Server to use G-mail server (GMAIL) as the SMTP Server to send out e-mail? |
This article supplements the steps provided in the documentation to configure the Control-M Server V9 Fix Pack 3 to work with GMAIL email Server. A) CONFIG MAIL WITHOUT TLS/SSL 1) Navigate to <Control-M/Server Home>/ctm_server/data 2) Edit the "mail.properties" file as below: # mail.properties mail.debug=true ##################################### # SMTP with no authentication ##################################### mail.transport.protocol=smtp mail.smtp.port=25 mail.smtp.auth=true 3) Edit the "mail_auth.properties" file as below: If unable to find the "mail_auth.properties" file, copy the file "ctm_server/data/mail_auth.properties.default" to "ctm_server/data/mail_auth.properties" # mail_auth.properties bmc.mail.user=CTM_TEST@mydomain.com bmc.mail.password=mypassword bmc.mail.password_crypt=no 4) Run "ctm_menu > 5) Parameter Customization > 6)Simple Mail Transfer Protocol Parameters" to add SMTP Server's configuration by define the following options: 1 - SMTP Server (Relay) Name : smtp.myserver.com 2 - Sender Email : CTM_TEST@mydomain.com 3 - Port Number : 25 4 - Sender Friendly Name : CtmAnt9 5 - Reply-To Email : Support-Controlm@mydomain.com 6 - Test SMTP Settings 5) Restart Control-M/Server B) CONFIG MAIL with TLS 1) Navigate to <Control-M/Server Home>/ctm_server/data 2) Edit the "mail.properties" file as below: # mail.properties mail.debug=true ##################################### # SMTP with no authentication ##################################### mail.transport.protocol=smtp mail.smtp.port=587 mail.smtp.auth=true mail.smtp.starttls.enable=true mail.smtp.starttls.required=true mail.smtp.ssl.protocols=TLSv1.2 mail.smtp.ssl.trust=* 3) Edit the "mail_auth.properties" file as below: If unable to find the "mail_auth.properties" file, copy the file "ctm_server/data/mail_auth.properties.default" to "ctm_server/data/mail_auth.properties" # mail_auth.properties bmc.mail.user=CTM_TEST@mydomain.com bmc.mail.password=mypassword bmc.mail.password_crypt=no4) Run "ctm_menu > 5) Parameter Customization > 6)Simple Mail Transfer Protocol Parameters" to add SMTP Server's configuration by define the following options: 1 - SMTP Server (Relay) Name : smtp.myserver.com 2 - Sender Email : CTM_TEST@mydomain.com 3 - Port Number : 587 4 - Sender Friendly Name : CtmAnt9 5 - Reply-To Email : Support-Controlm@mydomain.com 6 - Test SMTP Settings 5) Restart Control-M/Server C) CONFIG MAIL with TLS and Password encryption: In addition to case "B) CONFIG MAIL with TLS" as above 1) To encrypt the password run the batch ctm_change_mail_pass (insert the password) 2) The encrypted password is set in file mail_auth.properties 3) Following is an example of the updated "mail.properties": # mail.properties mail.transport.protocol=smtp mail.smtp.port=25 mail.smtp.auth=true mail.smtp.starttls.enable=true mail.smtp.starttls.required=true mail.smtp.ssl.protocols=TLSv1.2 mail.smtp.ssl.trust=*4) Following is an example of the updated "mail_auth.properties": # mail_auth.properties bmc.mail.user=CTM_TEST@mydomain.com bmc.mail.password=B+YXnMZBOPJ2G5qon6LXsA== bmc.mail.password_crypt=yes 5) Restart Control-M/Server |