SLM SMTP Configuration Guide
SLM SMTP configuration enables Safety Lifecycle Manager to send email from the application. The required SMTP settings are stored within the application’s .env configuration file and define how SLM connects to the selected email provider.
Administrators can configure the SMTP host, user credentials, port, encryption method, authentication and TLS settings according to the requirements of the organization’s email environment.
This guide explains the SLM SMTP configuration variables demonstrated in the training and how each setting contributes to outbound email connectivity.
Understanding SLM SMTP Configuration
SMTP, or Simple Mail Transfer Protocol, provides the email delivery configuration used by SLM when the application needs to send email.
The SLM SMTP configuration is stored within the application’s .env file. This file can be found within the installed SLM code base and edited using a suitable text editor.
The training demonstrates a dedicated SMTP variable section containing the settings required to connect SLM to the organization’s SMTP provider.
Because the appropriate values depend on the email service being used, administrators should obtain the required server, authentication, port and encryption information for their own SMTP environment rather than copying example settings from another installation.
Locating the SMTP Settings in SLM
The SMTP variables are configured within the SLM .env file located in the application’s installation folder.
The training demonstrates opening this file with a text editor and locating the section containing the SMTP configuration variables.
The configuration includes settings covering:
- SMTP host
- SMTP user
- SMTP password
- SMTP port
- SMTP encryption
- SMTP authentication
- SMTP TLS
These values work together to define how SLM establishes the connection used for application email.
The SLM On-Premise Hardware and Software Requirements guide provides additional context for the wider infrastructure supporting an on-premise SLM deployment.
SMTP Host, User and Password Settings
Three of the principal SLM SMTP configuration variables identify the email provider and, where required, authenticate the connection.
SMTP_HOST identifies the hostname of the SMTP provider used by the SLM environment.
SMTP_USER contains the username used for SMTP authentication, while SMTP_PASS contains the associated password.
The training explains that the username and password can remain empty when the email provider does not require authentication.
Where authentication is required, the credentials configured for the SLM environment should correspond to the account and authentication method approved for the organization’s email infrastructure.
Configuring SMTP Port and Encryption
The SMTP port determines the network port used when SLM connects to the configured SMTP service.
The appropriate port depends on the email provider and its required connection configuration. Administrators should therefore use the port specified for their organization’s SMTP service.
The SMTP crypto setting defines the encryption method used for the connection. The training identifies SSL and TLS as available encryption options within the demonstrated configuration.
If the environment does not use the corresponding encrypted or authenticated configuration, the applicable settings can be left blank or disabled as demonstrated in the training.
Authentication and TLS Settings
The SLM SMTP configuration also contains settings that determine whether SMTP authentication and TLS are enabled.
The SMTP_AUTH setting is used to indicate whether username and password authentication is configured. The training demonstrates setting this value to 1 when authentication is enabled and 0 when it is not.
The SMTP TLS setting follows a similar approach. When TLS is being used for the SMTP encryption configuration, the training demonstrates enabling this setting with a value of 1. Otherwise, it is set to 0.
These settings should be configured consistently with the SMTP host, credentials, port and encryption requirements supplied by the organization’s email provider.
SLM SMTP Configuration Variables
The variables demonstrated in the SLM training can be summarized as follows:
SMTP_HOST– hostname of the SMTP provider.SMTP_USER– username used for SMTP authentication.SMTP_PASS– password associated with the SMTP user.SMTP_PORT– port number used for the SMTP connection.SMTP_CRYPTO– encryption method used for SMTP.SMTP_AUTH– enables or disables SMTP authentication.SMTP_TLS– enables or disables the demonstrated TLS configuration.
The exact values should be based on the SMTP service being connected to rather than treated as universal SLM defaults.
Securing the SLM Email Configuration
SMTP credentials can provide access to an organization’s email infrastructure, so the SLM configuration containing those credentials should be treated as security-sensitive.
Access to the application’s .env file should therefore be limited to administrators who require access to the SLM configuration.
When troubleshooting application email, administrators should also avoid exposing SMTP passwords when sharing configuration information, screenshots or log data.
Application-level troubleshooting may require information beyond the SMTP configuration itself. The SLM Application Maintenance Guide explains the IIS and PHP application logging available when investigating SLM behaviour.
Maintaining Reliable Application Email
SLM SMTP configuration provides the connection information the application requires to send email through the organization’s chosen SMTP provider.
A complete configuration requires the administrator to understand the SMTP host and port together with any authentication and encryption requirements imposed by that provider.
If authentication is required, the appropriate username, password and authentication setting must be configured. If TLS is required, the encryption and TLS settings must also reflect that requirement.
For general information about SMTP message transport, administrators can refer to the IETF Simple Mail Transfer Protocol specification. The SLM-specific variables and deployment configuration should continue to follow the MSS training and configuration supplied for the installed SLM environment.
SMTP
0:06
Welcome to this IT Explainer video, part of our configuration topic range.
0:11
In this video we will cover the subject of SMTP within SLM.
0:16
SLM uses SMTP configuration to send emails from the application.
0:20
In this module, we’re going to review SMTP configuration variables required to set up e-mail.
0:30
All of the necessary variables for SMTP are in the env file.
0:36
So if we go to the installation folder of the code base, we can find the dot env file in here and edit that.
0:42
We can use any text editor to edit this.
0:45
So the SMTP configuration variables are stored under the SMTP variable section, which is on line 51.
0:53
There are a few variables that we need to process or that we need to configure.
0:57
First one is called SMTP host.
0:59
This is the host name of the SMTP provider.
1:02
SMTP user is the username for the SMTP for SMTP pass.
1:07
That’s where we’re going to put the password for the SMTP user.
1:11
This username and password can be empty.
1:15
If there’s no authentication involved or the e-mail provider does not require any authentication, we can just leave it as empty.
1:22
Next is for the SMTP port, which is the port number for the SMTP.
1:27
Next one is SMTP crypto, which is the crypto method for the SMTP.
1:33
It can be SSLTLS.
1:35
If there’s no username and password we can leave it as blank or a zero which is false.
1:39
Next one is SMTP auth.
1:42
If we have a username and password authentication setup we set this as one, otherwise we set it as zero.
1:48
The last one is SMTPTLS.
1:51
If we use the TLS for the crypto then we need to set this as a one, otherwise we will set this as a 0.