# Configure mail server

Here is the default mail block in the configuration file to edit (from Parameters.php, see "[Configuration page](/gettingstarted/configuration.md)"):

```
"mail" => [
    "sender" => [
        "host" => "", //smtp server
        "port" => "",
        "username" => "",
        "password" => "",
        "auth_mode" => "plain" //plain, login, cram-md5, or null
    ],
    "from" => "noreply@twakeapp.com",
    "dkim" => [ //Optional, to avoid lost emails, configure your dns with dkim
        "private_key" => "",
        "domain_name" => '',
        "selector" => ''
    ],
    "twake_domain_url" => "https://twakeapp.com/",
    "from_name" => "Twake", //Server owner name
    "twake_address" => "Twake, 54000 Nancy, France", //Server owner address
    "template_dir" => "/src/Twake/Core/Resources/views/", //Must not be modified
],
```

⚠️ Once edited, don't forget to restart docker.

You can test the good behaviour of emails going into your account parameters, emails, add a secondary email. Or simply try to invite a user using its email.


---

# 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://doc.twake.app/gettingstarted/configuration/configure-mail-server.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.
