Skip to content

Configuration

mailflow-mcp is configured by environment variables only.

Variable Default
MAILFLOW_URL http://mailflow-backend:3000 MailFlow's backend
MAILFLOW_PUBLIC_URL MAILFLOW_URL base of the links in tool results (/?m=<Message-ID>)
MAILFLOW_VERIFY_TLS true false turns certificate checks off; the OS trust store is used otherwise
MAILFLOW_TIMEOUT 60 seconds per MailFlow call
MCP_HOST, MCP_PORT, MCP_PATH 0.0.0.0, 8082, /mcp where the server listens
MCP_ALLOWED_HOSTS any comma-separated host[:port] values the server answers to

GET /health answers ok without a token. The defaults for host and port are the image's; outside it the port is 8081.

The sign-in in front has its own settings: Sesamcp's configuration.