{
  "manifest_version": "1.0.0",
  "template": {
    "id": "13f5edb8-671d-440d-b86a-bbad8b02a321",
    "slug": "maildev",
    "name": "Maildev",
    "description": "Ephemeral SMTP server for development purposes.",
    "url": "https://railway.com/deploy/maildev",
    "upstream": {
      "image": "maildev/maildev:3.0.0-rc.1"
    }
  },
  "services": [
    {
      "name": "Maildev",
      "source": {
        "image": "maildev/maildev:3.0.0-rc.1"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Maildev",
      "description": "The Web UI access port.",
      "secret": false,
      "strategy": "default",
      "default": "1234"
    },
    {
      "key": "SMTP_HOST",
      "service": "Maildev",
      "description": "The host to send mail to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "Maildev",
      "description": "The port to send mail to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILDEV_WEB_IP",
      "service": "Maildev",
      "description": "IP to listen on.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "MAILDEV_WEB_PASS",
      "service": "Maildev",
      "description": "The password to login to the Web UI with.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MAILDEV_WEB_PORT",
      "service": "Maildev",
      "description": "The Web UI access port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAILDEV_WEB_USER",
      "service": "Maildev",
      "description": "The user to login to the Web UI with.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MAILDEV_SMTP_PORT",
      "service": "Maildev",
      "description": "The port to receive mail on.",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "MAILDEV_INCOMING_PASS",
      "service": "Maildev",
      "description": "Incoming SMTP credentials.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MAILDEV_INCOMING_USER",
      "service": "Maildev",
      "description": "Incoming SMTP credentials.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "maildev"
      }
    },
    "cli": "railway deploy --template maildev",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "13f5edb8-671d-440d-b86a-bbad8b02a321",
            "serializedConfig": {
              "services": {
                "2d9636a3-1ffe-42f0-886b-47757f99ca3b": {
                  "icon": "https://devicons.railway.app/mail",
                  "name": "Maildev",
                  "deploy": {
                    "healthcheckPath": "/api/healthz"
                  },
                  "source": {
                    "image": "maildev/maildev:3.0.0-rc.1"
                  },
                  "variables": {
                    "PORT": {
                      "description": "The Web UI access port.",
                      "defaultValue": "1234"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "The host to send mail to.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "The port to send mail to.",
                      "defaultValue": "${{MAILDEV_SMTP_PORT}}"
                    },
                    "MAILDEV_WEB_IP": {
                      "description": "IP to listen on.",
                      "defaultValue": "::"
                    },
                    "MAILDEV_WEB_PASS": {
                      "description": "The password to login to the Web UI with.",
                      "defaultValue": "{{MAILDEV_WEB_PASS}}"
                    },
                    "MAILDEV_WEB_PORT": {
                      "description": "The Web UI access port.",
                      "defaultValue": "${{PORT}}"
                    },
                    "MAILDEV_WEB_USER": {
                      "description": "The user to login to the Web UI with.",
                      "defaultValue": "railway"
                    },
                    "MAILDEV_SMTP_PORT": {
                      "description": "The port to receive mail on.",
                      "defaultValue": "1025"
                    },
                    "MAILDEV_INCOMING_PASS": {
                      "description": "Incoming SMTP credentials.",
                      "defaultValue": "{{MAILDEV_INCOMING_PASS}}"
                    },
                    "MAILDEV_INCOMING_USER": {
                      "description": "Incoming SMTP credentials.",
                      "defaultValue": "railway"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:1234": {
                        "port": 1234
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Maildev",
      "method": "GET",
      "path": "/api/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T22:43:17.911Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_121dc986ecd5440e8b72",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 72,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Maildev"
  }
}
