# Multiple Mastermails

You can add **multiple mastermail accounts**, but they must all be placed in **one single location**.

There is **only one `Mastermails` section**.\
All mastermail accounts go **inside this section**.

***

### The `Mastermails` section

This is the container that holds all mastermail accounts:

```json
"Mastermails": [

]
```

Do not remove the square brackets.\
Everything you add must go **between** them.

***

### Adding a mastermail

A mastermail is added as **one block** inside the brackets.

Example with one mastermail:

```json
"Mastermails": [
    {
        "mastermail": "youremail@yourdomain.com:imap.yourdomain.com",
        "password": "APP_PASSWORD_HERE",
        "catchall": "@yourcatchall.com"
    }
]
```

This is the correct placement.

***

### Adding more mastermails

To add another mastermail:

* Do not create a new `Mastermails` section
* Place the new block **directly below the previous one**
* Add a **comma after the previous block**

Example with multiple mastermails:

```json
"Mastermails": [
    {
        "mastermail": "mail1@example.com:imap.example.com",
        "password": "PASSWORD_1",
        "catchall": "@example.com"
    },
    {
        "mastermail": "mail2@domain.com:imap.domain.com",
        "password": "PASSWORD_2",
        "catchall": "@domain.com"
    }
]
```

Each block represents **one mastermail account**.

***

### Important rules

* There must be **only one** `Mastermails` section
* All mastermail blocks go **inside the same brackets**
* Each block is separated by a **comma**
* The **last block must not** have a comma

If these rules are followed, the configuration is correct.

***

### Simple way to remember

* One `Mastermails` container
* One block per email
* Commas between blocks
* Nothing goes outside the brackets

If your file looks like the example above, it is set up correctly.


---

# 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://skyridgescripts.gitbook.io/skyridgescripts/setup/mastermail-setup/multiple-mastermails.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.
