{
    "captainVersion": "2",
    "documentation": "Read the poste.io documentation @ https://poste.io/doc",
    "displayName": "Poste.io",
    "description": "Poste.io - complete mailserver built in one container",
    "dockerCompose": {
        "version": "3.7",
        "services": {
            "$$cap_appname": {
                "image": "analogic/poste.io:$$cap_poste_version",
                "ports": [
                    "25:25",
                    "110:110",
                    "143:143",
                    "465:465",
                    "587:587",
                    "993:993",
                    "995:995",
                    "4190:4190"
                ],
                "volumes": [
                    "/etc/localtime:/etc/localtime:ro",
                    "$$cap_appname-data:/data"
                ],
                "restart": "always",
                "environment": {
                    "HTTPS": "OFF",
                    "LETSENCRYPT_EMAIL": "$$cap_email",
                    "LETSENCRYPT_HOST": "$$cap_host",
                    "VIRTUAL_HOST": "$$cap_host"
                }
            }
        }
    },
    "instructions": {
        "start": "SMTP + IMAP + POP3 + Antispam + Antivirus\nWeb administration + Web email\n...on your server in ~5 minutes\n\nRecommended: Use\"mail\" as the App Name.",
        "end": "Please paste the preDeployFunction from https://github.com/caprover/caprover/issues/479#issuecomment-520902309 to the App Config > Pre-Deploy section of your created poste.io instance $$cap_appname.\n\nAlso ensure that you've set up the reverse DNS (PTR record) for your server and DKIM, SPF (DNS TXT) records.\n\nThe deployment can take up to 2 minutes."
    },
    "variables": [
        {
            "id": "$$cap_poste_version",
            "label": "Poste.io version tag",
            "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/analogic/poste.io/tags",
            "defaultValue": "2"
        },
        {
            "id": "$$cap_email",
            "label": "Email Address",
            "description": "The email address used for Lets Encrypt certificates."
        },
        {
            "id": "$$cap_host",
            "label": "Hostname",
            "description": "The full hostname for this captain app. (usually mail.mydomain.com)"
        }
    ]
}
