# 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fq5H5hU8gBSgUWTg7sRf3%2FProtonDashboard.png?alt=media&#x26;token=2a63d9e6-e0c3-449e-95cb-c65fddbcc91b" alt=""><figcaption><p>Proton account settings</p></figcaption></figure>

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

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FbWgmmeucXdNnHWBgnLEB%2FProtonImapSmtpSection.png?alt=media&#x26;token=9ce4d2fb-95e1-466f-bdd6-f98f420331e1" alt=""><figcaption><p>"IMAP/SMTP" section</p></figcaption></figure>

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

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FNl5rpbMv5M95FTIxR8KH%2FProtonGenerateTokenBtn.png?alt=media&#x26;token=c19db4eb-805e-4f65-acd2-9b792fb540d6" 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2Fma694UviwypBqKTUAESh%2FSMTPTokenParameters.png?alt=media&#x26;token=1528030e-2274-4179-a0d3-668fc49b5b78" 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FTIbNNyufINSc8TFRT6Jl%2FProtonCreatedToken.png?alt=media&#x26;token=5835fa1b-1e4b-4fba-8a19-8eb27b11ba7e" alt=""><figcaption><p>Created token parameters</p></figcaption></figure>

### Connecting in MikoPBX

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

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FmjLJlrIc6lgnICvDNHfx%2FMikoPBXMailSection.png?alt=media&#x26;token=41ae4e1e-833c-4f68-873d-20471bd7a9c4" 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FWdHOdsDobdqgWVEJZch2%2FSMTPSettingsMikoPBXProton.png?alt=media&#x26;token=ba387ac5-b29a-4a79-b71a-21585b7e3946" 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FsgttO15H76mxRurhShPt%2FsuccessfulConnectionProton.png?alt=media&#x26;token=f8a9e9ee-c120-40d1-b0bb-1ed39b9b420c" alt=""><figcaption><p>Successful connection</p></figcaption></figure>
