Configure SMTP email (Validatar Server)

Prev Next

Validatar Server sends email through an SMTP mail server you set at Settings > Configuration > SMTP. Validatar Cloud sends email for you, so Cloud instances do not show this page.

Applies to: Validatar Server

What needs SMTP

Until SMTP is set up, Validatar Server sends no email. That covers job result emails, test action emails, notification emails, report subscriptions and password reset links.

Before you start

  • You need the Configuration Admin role. Global Admins have it.
  • Ask your mail administrator for the host, port, encryption, sign-in method and the address Validatar should send from.
  • OAuth 2.0 sign-in needs Validatar Server 2026.1.1 or later. Settings saved on an earlier version carry over when you upgrade.

Set up SMTP

  1. Go to Settings > Configuration. Under System Settings, select SMTP.
  2. Enter the Host and Port, and set Use TLS? (see the settings table below).
  3. Under Authentication, select Default Credentials, Basic Authentication or OAuth, and fill in the fields that appear.
  4. Enter the From Address.
  5. Enter the Base URL, the address people use to open Validatar.
  6. Click Send Test Email, enter an address in Send email to, and click Send. The test uses the values on the page, saved or not.
  7. When the test email arrives, click Save.

The test email's subject is "Your Validatar email settings are successfully configured!". If sending fails, the dialog shows the mail server's error (see Troubleshooting).

Settings

Setting Required What to enter
Host Yes The mail server name, for example smtp.office365.com
Port Yes Usually 587 for mail encrypted with STARTTLS, or 25 for unencrypted mail
Use TLS? No Checked: Validatar requires STARTTLS and stops if the server does not offer it. Cleared: Validatar uses STARTTLS when the server offers it, connects with TLS from the start on port 465, and otherwise sends unencrypted.
Authentication Yes How Validatar signs in to the mail server (see below)
From Address Yes The sender address on every email. With OAuth, it is also the mailbox Validatar signs in as.
Base URL Yes The Validatar address used in links inside emails, such as job results and password reset links

Authentication methods

Method Fields How Validatar signs in
Default Credentials None As the Windows account the Validatar service runs under
Basic Authentication Username (required), Password With the username and password. Enter the password once; leave the field blank later to keep the saved one.
OAuth Token Issuer URL, OAuth Scope, Client ID, Client Secret With an OAuth 2.0 access token, using the client credentials flow. Validatar reads the issuer's OpenID configuration to find its token endpoint, requests a token for the client ID and scope, and signs in as the From Address. Leave Client Secret blank later to keep the saved one.

Validatar signs in only when the mail server asks for authentication. Saving a different method clears the saved credentials of the other methods.

Example: Microsoft 365 with OAuth

Microsoft is deprecating basic authentication for SMTP in Exchange Online, so use OAuth.

Setting Value
Host smtp.office365.com
Port 587
Use TLS? Checked
Authentication OAuth
Token Issuer URL https://login.microsoftonline.com/<tenant-id>/v2.0
OAuth Scope https://outlook.office365.com/.default
Client ID The application (client) ID of your app registration
Client Secret A client secret of that app registration
From Address The mailbox Validatar sends as

On the Microsoft side, your Microsoft 365 administrator:

  1. Registers an application in Microsoft Entra ID (formerly Azure AD) and creates a client secret for it.
  2. Gives the application the SMTP.SendAsApp application permission of Office 365 Exchange Online, and grants admin consent.
  3. Registers the application's service principal in Exchange Online and gives it access to the From Address mailbox.
  4. Makes sure SMTP AUTH is turned on for that mailbox.

Microsoft's guide covers these steps: Authenticate an IMAP, POP or SMTP connection using OAuth.

Troubleshooting

When the test email fails, the dialog shows "The following error occurred while sending the test email:" followed by the cause.

Error or symptom Likely cause Fix
OAuth discovery failed Validatar could not read the OpenID configuration at the Token Issuer URL Check the URL. For Microsoft 365, it needs your tenant ID and ends in /v2.0. Check that the Validatar server can reach it.
OAuth token request failed The identity provider refused the client ID, secret or scope Check the client ID and scope. Create a new client secret if the old one expired.
The mail server rejects the sign-in With OAuth: the app lacks permission for the mailbox, or SMTP AUTH is off for it. With Basic Authentication: wrong username or password. Check the mailbox permissions and SMTP AUTH with your mail administrator, or re-enter the password.
Missing Password Basic Authentication with no saved password Enter the password, then test again.
The connection times out or is refused Wrong host or port, or a firewall between the Validatar server and the mail server Check the host and port, and that the Validatar server can reach the mail server on that port.
A TLS or STARTTLS error Use TLS? is checked but the server does not offer STARTTLS on that port Use the server's STARTTLS port (usually 587), or clear Use TLS? for port 465.
Emails arrive but their links do not open Validatar The Base URL is wrong Set Base URL to the address people use to open Validatar.

Related