# Proton Setup (Login, Password)

### Generating an SMTP Token

1. First, go to your Proton account settings ([link](https://account.proton.me/u/1/mail/dashboard)).

<figure><img src="/files/4SRASPV3iypHVsl0ke3Y" alt=""><figcaption><p>Proton account settings</p></figcaption></figure>

2. Then go to the "**Proton Mail**" -> "**IMAP/SMTP**" section.

<figure><img src="/files/URZt4371Ba3Qwzf3BuDt" alt=""><figcaption><p>"IMAP/SMTP" section</p></figcaption></figure>

3. Scroll down to the "**SMTP submission**" section. Click "**Generate token**".

<figure><img src="/files/xn8ApfrrEw6jMAwSaOTk" alt=""><figcaption><p>"Generate token" button for creating a new token</p></figcaption></figure>

4. Enter an arbitrary name in the "Token name" field — MikoPBX in our case — and select the Email address for which you are creating the token.

<figure><img src="/files/h42NNOni76VVoQS2eJ4T" alt=""><figcaption><p>Creating a new SMTP token</p></figcaption></figure>

A token will be created. **Its parameters will be shown only once and will become unavailable once you close the window. Save them, as we will use them for further configuration.**

<figure><img src="/files/Cpu3R9wxJFoEtRLt6tKM" alt=""><figcaption><p>Created token parameters</p></figcaption></figure>

### Connecting in MikoPBX

1. Go to the "**System**" -> "**Mail and Notifications**" section.

<figure><img src="/files/YmrvtpBYLEL3ErW7JUOJ" alt=""><figcaption><p>"Mail and Notifications" section</p></figcaption></figure>

2. Go to "**SMTP Settings**". Fill in all the required parameters:

* **Sender Address** - your email address that you used to generate the token.
* **Sender Name** - the name from which the mail is sent.
* **Authentication Type** - "Username and password".
* **SMTP Username -** SMTP Username from the token data window.
* **SMTP Password -** SMTP token from the token data window.
* **SMTP Host** - **`smtp.protonmail.ch`**
* **SMTP Port** - 587.
* **Encryption Type** - STARTTLS (port 587).

Click "**Save**".

<figure><img src="/files/XY7GiktqQMrXeM0m5Eg8" alt=""><figcaption><p>Mail parameters in MikoPBX</p></figcaption></figure>

Click "**Test connection**". You will see the following window confirming that the entered data is correct:

<figure><img src="/files/TQd6AePemOVqBeI9Z9rH" alt=""><figcaption><p>Successful connection</p></figcaption></figure>


---

# 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.mikopbx.com/mikopbx/english/manual/system/mail-settings/proton.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.
