1 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment Document Details Document #: 160_SG720_230119 Release Version: 07.20.00.00 Version Release Date: April 2020 Overview The purpose of this document is to explain how email works when using cloud configurations and provide steps for IT to enable email when deploying on premise. System Requirements • CES Release Version 07.20.00 or higher Be sure to grab the latest version of this document here: https://links.crunchtime.com/SG-OnPremiseEmail OR by scanning the QR code to the left.
2 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment How emails work in Net-Chef? For Release Version 07.20 and above, Net-Chef supports email via: a) Internal Server – This is done via the server.properties file. This file contains the global settings; the file is the same for all clients. b) Cloud Configurations – This file contains new fields added in t_application_settings to support cloud/ third party email providers; this is client specific. The mail providers supported must allow TLS (transport layer security) version 1.2 and accept any of the fo llowing cipher suites: secp256r1, secp384r1, secp521r1, ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144, ffdhe8192. Most popular cloud vendors adhere to these technical specifications. Note: It is recommended that the customers who are on cloud settings should not be deployed on the same VM which hosts server.properties. How emails will work On-Premise The following SQL statements should be run against the customer schema: • update t_application_setting set setting_value='port-number' where setting_name='smtp.port'; • update t_application_setting set setting_value='tls' where setting_name='smtp.security'; • update t_application_setting set setting_value='email-host' where setting_name='smtp.server'; • update t_application_setting set setting_value=1 where setting_name='smtp.use.db.config'; • update t_application_setting set setting_value='user-name' where setting_name='smtp.user'; • update t_application_setting set setting_value='verified-email' where setting_name='smtp.from'; Note: In the last SQL statement above, the “From” email address will be pre-determined by your chosen provider; what you need to define is the “Reply To” email address. See next page for examples. (Continued)
3 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment (Continued) Example • update t_application_setting set setting_value='587' where setting_name='smtp.port'; • update t_application_setting set setting_value='tls' where setting_name='smtp.security'; • update t_application_setting set setting_value='email-smtp.us-east- 1.amazonaws.com' where setting_name='smtp.server'; • update t_application_setting set setting_value=1 where setting_name='smtp.use.db.config'; • update t_application_setting set setting_value='AKIA2HDHWB4SANFCMDHI' where setting_name='smtp.user'; • update t_application_setting set setting_value='dev-email-test@crunchtime.com' where setting_name='smtp.from'; After the table has been updated, in order for the application to use the new value, follow either of the two steps below. 1. Restart the server. 2. Reload the site via site-admin, then restart the server.
4 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment (Continued) Note: The smtp password should be stored in encrypted format. How to save and update the SMTP password The DB or IT team needs to run this stored procedure for the customer: • exec imf_save_smtp_password(‘password', 'key') If no key is provided, use the default key below: • exec imf_save_smtp_password('BODeym11LRjxxAMtRsuVrMCOLtNJlUXI2rzuDyn3Kgbe', 'we@olfhs!m') Selecting a seed for the encryption. Customers have the flexibility to add their own key in sitekeys.json. The location of this file is in the /crucnhtime/conf directory. The key has to be 8 bytes or more. Recommended to be 8-10 characters in length. In the absence of a key, the application will use a predefined key. Sample fragment of sitekeys.json { "site.name": "margqa-2-5-auto", "c_smtp_seed": "fffFg12!34" }
5 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment (Continued) Testing the mail send function Application provides an easy way to test the email send functions. This can be used for internal server and cloud email configurations. Steps 1. Start the Jmx console and login using the credentials. 2. Click Mean Server. 3. Click Mbean Browser.
6 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment (Continued) 4. Open Email Test Manager. 5. Select Operations and enter your email. If there is any problem sending, you will see some exception. If everything good, then it will be blank.
7 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment (Continued) If everything is good, then it will be blank. Note: This will not work in a developer’s local machine because by default dev machines do not send email.
8 © 2023 CrunchTime! Information Systems, Inc. All Rights Reserved. | www.crunchtime.com Configuring Email for On-Premise Deployment (Continued) Validating the values from jmx The screen below demonstrates how to verify the values configured in t_application_Setting from the jmx console.