SMTP configuration
SMTP configuration is used for sending invitations and password resets to users. Since version 5.4.0, these settings are required when deploying a new Allure TestOps instance. Without correctly configured SMTP server you won't be able to create the first administrator of the deployed instance.
Parameters
Edit the following parameters in the values.yaml file.
Mail server connection
smtp.enabled
— must betrue
.smtp.host
— mail server hostname.smtp.port
— mail server port.smtp.startTLSEnabled
— try to use an encrypted connection with the server.smtp.startTLSRequired
— never connect if the server does not support encryption.smtp.sslEnabled
— enable SSL support.smtp.sslTrust
— domains for which self-signed certificates can be accepted.
Mail account
smtp.authEnabled
—true
if the mail server requires authentication.smtp.username
— username for connecting to the mail server.smtp.password
— password for connecting to the mail server.smtp.from
— the address that should be shown in the From header of each email.
Note that some SMTP servers may require
smtp.from
to be identical tosmtp.username
.
Edit the following parameters in the .env file.
Mail server parameters
ALLURE_MAIL_HOST
— mail server hostname.ALLURE_MAIL_PORT
— mail server port.ALLURE_MAIL_SMTP_STARTTLS_ENABLE
— try to use an encrypted connection with the server.ALLURE_MAIL_SMTP_STARTTLS_REQUIRED
— never connect if the server does not support encryption.ALLURE_MAIL_SMTP_SSL_ENABLE
— enable SSL support.ALLURE_MAIL_SMTP_SSL_TRUST
— domains for which self-signed certificates can be accepted.
Mail account
ALLURE_MAIL_SMTP_AUTH
—true
if the mail server requires authentication.ALLURE_MAIL_USERNAME
— username for connecting to the mail server.ALLURE_MAIL_PASSWORD
— password for connecting to the mail server.ALLURE_MAIL_FROM
— the address that should be shown in the From header of each email.
Note that some SMTP servers may require
ALLURE_MAIL_FROM
to be identical toALLURE_MAIL_USERNAME
.
Edit the following parameters in the /opt/testops/conf/testops.conf file.
Mail server parameters
SPRING_MAIL_HOST
— mail server hostname.SPRING_MAIL_PORT
— mail server port.SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE
— try to use an encrypted connection with the server.SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_REQUIRED
— never connect if the server does not support encryption.SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_ENABLE
— enable SSL support.SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_TRUST
— domains for which self-signed certificates can be accepted.
Mail account
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH
—true
if the mail server requires authentication.SPRING_MAIL_USERNAME
— username for connecting to the mail server.SPRING_MAIL_PASSWORD
— password for connecting to the mail server.ALLURE_MAIL_FROM
— the address that should be shown in the From header of each email.
Note that some SMTP servers may require
ALLURE_MAIL_FROM
to be identical toSPRING_MAIL_USERNAME
.
Example
smtp:
enabled: true
host: smtp.gmail.com
port: 465
authEnabled: true
from: [email protected]
username: [email protected]
password: Ohku6Zo9gee5aen0
startTLSEnabled: true
startTLSRequired: true
sslEnabled: true
sslTrust: smtp.gmail.com
ALLURE_MAIL_HOST=smtp.gmail.com
ALLURE_MAIL_PORT=465
[email protected]
ALLURE_MAIL_PASSWORD=Ohku6Zo9gee5aen0
[email protected]
ALLURE_MAIL_SMTP_AUTH=true
ALLURE_MAIL_SMTP_STARTTLS_ENABLE=true
ALLURE_MAIL_SMTP_STARTTLS_REQUIRED=true
ALLURE_MAIL_SMTP_SSL_ENABLE=true
ALLURE_MAIL_SMTP_SSL_TRUST=smtp.gmail.com
SPRING_MAIL_HOST=smtp.gmail.com
SPRING_MAIL_PORT=465
[email protected]
SPRING_MAIL_PASSWORD=Ohku6Zo9gee5aen0
[email protected]
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=true
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_REQUIRED=true
SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_ENABLE=true
SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_TRUST=smtp.gmail.com