# Configure SMTP

The **SMTP Configuration** section allows you to configure SMTP settings so the system can send emails, such as invitations, password resets, alerts, and reports, using your own mail server and domain.

If SMTP is not configured, GuardWare’s default SMTP server is used. Configuring SMTP is recommended for organisations that require domain-specific email notifications, such as `noreply@bank.com` instead of `noreply@guardware.com`.

Configure SMTP before enrolling users, so that invitation emails are delivered from your domain from the start.

{% hint style="info" %}
Before configuring SMTP, ensure you have the following information:

* SMTP server address (e.g., **smtp.office365.com** or **mail.yourcompany.com**).
* SMTP port number (commonly 25, 465, or 587, depending on security settings).
* Username and password for an email account authorised to send mail.
* Whether your server requires STARTTLS encryption and authentication.
  {% endhint %}

<figure><img src="/files/qUD08asP7QMCuInuTDtD" alt="" width="563"><figcaption></figcaption></figure>

1. Navigate to **ORGANISATION** > **SMTP Configuration**.
2. In **SMTP Server**, enter your mail server's address (e.g., *smtp.office365.com*).
3. In **SMTP Port**, enter the port number your server uses. Common values are:
   1. `Port 25` for unencrypted connections (rarely used).
   2. `Port 465` for SSL/TLS-encrypted connections.
   3. `Port 587` for STARTTLS-encrypted connections (most common).
4. In **SMTP Username**, enter the username of the email account that will send notifications.
5. In **Email**, enter the email address that will appear as the sender of email notifications (e.g., *<noreply@yourcompany.com>*).
6. In **Password**, enter the password associated with the SMTP email account.
7. In **Enable STARTTLS to connect to SMTP host**, select **Yes** if your mail server requires encrypted communication.
8. In **Enable SMTP Authentication**, select **Yes** if your server requires login credentials before sending. Select **No** if your server permits unauthenticated relay.
9. In **Test Email Address**, enter an email address to validate the SMTP connection.
10. Click **Save** to apply the SMTP configuration.

GuardWare will send a test email using the configuration you entered. Check the inbox to confirm delivery. If the email does not arrive, verify that your server permits connections from GuardWare's IP address, STARTTLS is enabled if required, and the test email has not been filtered into spam.


---

# Agent Instructions: 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.guardware.com/organisation/organisation-setup/configure-smtp.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.
