You can either setup mailboxes in the MAIL_CONFIG entity or you can use plain objects with the config data.

JSON Settings

See the example below for a Google Mail settings object:

{
    "protocol": "IMAP",
    "host": "imap.gmail.com",
    "port": 993,
    "auth": {
        "user": "[email protected]",
        "pwd": "[email protected]#password"
    },
    "ssl": true,
    "tls": false
}