> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/general/email.md).

# Email

Email notifications are essential for keeping administrators informed about important events, alerts, and system activities within Devolutions Server. This guide explains how to configure SMTP, including both standard SMTP setup and integration with Azure authentication.

### Configure SMTP

Configure a basic SMTP email in Devolutions Server by following the steps below.

1. In Devolutions Server, go to ***Administration*** – ***Server settings*** – ***Email***.
2. In the ***Server type*** drop-down list, select ***SMTP***.
3. In the ***Administrator email*** field, enter the recipient email address that will receive the errors.
4. Enter the name or IP address of the SMTP server.
5. Select the SMTP server port.
6. Enter the username and password.
7. Set a specific security for the connection to the mail server. Choose between the following:

* No encryption.
* Automatic based on port number.
* Use SSL or TLS immediately (SMTPS).
* Use TLS immediately after the initial connect.
* Use TLS if the server supports it after the initial connection.

9. Enter the sender's email address.
10. Once the information has been provided, test your email settings with the ***Test email*** button.
11. If successful, ***Save*** your configuration using the icon at the top right.

### Configure Azure authentication for SMTP

In Devolutions Server, the modern authentication for Azure can be used for the email configuration. Before proceeding with the configuration in Devolutions Server, you must perform the following in your Azure portal:

1. Create an app registration. You can also reuse the one used for Entra ID authentication.
2. Click Add a permission.
3. Select Microsoft Graph.
4. Choose the Mail.Send application permission.

You can now configure the SMTP email in Devolutions Server.

1. In Devolutions Server, go to ***Administration*** – ***Server settings*** – ***email***.
2. In the ***Authentication type*** drop-down list, select ***Azure***.
3. Go to the ***Administrator email*** field and enter the recipient email address that will receive the errors.
4. Enter the ID of the application in the ***Client ID*** field. In the Azure portal, this information is called ***Application (client) ID*** and can be found in the ***Overview*** of your app.
5. In the ***Tenant ID*** field, enter the ID of the tenant that can be found in the ***Overview*** of your application.
6. Once the information has been provided, test your email settings with the ***Test Email*** button.
7. If successful, ***Save*** your configuration using the icon at the top right.

{% hint style="info" %}
Note that emails can only be sent to accounts of the same tenant; they cannot be sent externally.
{% endhint %}

8. In the ***User ID*** field, enter the Object ID of an Azure user that will appear as the sender (***From*** field) for all the emails sent by your Devolutions Server.
9. In the ***Secret value*** field, enter the client secret. Either reuse the already existing Entra ID authentication secret or create a new one in your app registration by going to the ***Certificates & secret*** section and clicking on ***New client secret***.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/general/email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
