Enable the email service
To enable email verification for new users or to limit what users can register, you can configure your Datalore On-Premises instance to send emails through an external SMTP server.
By default, the email service is disabled and verification emails are not sent.
Enable and configure the email service
To enable the email service, specify the following parameters under environment in the docker-compose file:
To enable the email service, specify the following parameters under dataloreEnv in the datalore.values.yaml file:
MAIL_SMTP_SERVERString
SMTP server host
Default: not defined
MAIL_SMTP_PORTString
SMTP server port
Default: not defined
MAIL_SMTP_TIMEOUTInteger
Maximum time in ms to wait for a response from the SMTP server after sending a command
Default:
600000(10 minutes)MAIL_SMTP_CONNECTION_TIMEOUTInteger
maximum time in ms to wait when establishing the initial connection to the SMTP server
Default:
600000(10 minutes)MAIL_SENDER_EMAILString
Sender’s email that Datalore will use in the From field
Default: not defined
MAIL_SENDER_NAMEString
Sender’s name
Default: not defined
MAIL_SENDER_USERNAMEString
Username of the SMTP user
Default: not defined
MAIL_SENDER_PASSWORDString
Password of the SMTP user
Default: not defined
MAIL_ENABLE_STARTTLSBoolean
See the
tcp_keepalive_probesvariable in the TCP Keepalive HOWTODefault:
falseFORCE_EMAIL_VERIFICATIONBoolean
Enables verification emails for new users.
If
false, emails of new users are automatically considered verified.Default:
trueEMAIL_ALLOWLIST_ENABLEDBoolean
Restricts new user registrations to emails or domains from the allowlist.
You can manage the email allowlist in the Admin panel.
Default:
false
Example