Skip to main content
Glama
exmail-mcp

exmail-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATA_DIRNoData directory. Default is <data dir>.
MCP_HOSTNoNative HTTP listen address (default 127.0.0.1). The Docker image listens on 0.0.0.0 inside the container.127.0.0.1
MCP_PORTNoNative HTTP listen port (default 8765).8765
SEND_LOGNoSend log file. Default is send_log.jsonl.
DRAFT_DIRNoLocal drafts directory. Default is <DATA_DIR>/drafts.
DRAFT_LOGNoDraft log file. Default is draft_log.jsonl.
SENT_COPYNoControls Sent-folder copying after sending: auto (default) appends only if missing; append always appends; off never appends.auto
ATTACH_DIRNoDirectory for outgoing attachments. Default is <DATA_DIR>/attachments. Outgoing attachments must be inside this directory.
DISPLAY_TZNoIANA timezone for date_iso fields (default UTC; e.g. Asia/Shanghai or America/New_York). date_utc is always UTC.UTC
EXMAIL_USERYesMailbox address. Required.
MCP_BIND_IPNoDocker only: host address to publish on. Use 127.0.0.1 or a private VPN/Tailscale IP. Never use 0.0.0.0 or a public IP.
DOWNLOAD_DIRNoDownload directory for attachments. Default is <DATA_DIR>/downloads.
CONTACTS_FILENoOptional contacts file. Default is <config dir>/contacts.json.
IMAP_POOL_SIZENoRead-only connection pool size (default 3).3
MCP_TOKEN_FILENoBearer token file (HTTP only). Native default is <config dir>/mcp_token. Docker default is ./secrets/mcp_token.
ATTACH_DIR_HOSTNoDocker only: host path of the outgoing attachments directory reported back to clients.
SEARCH_SCAN_CAPNoAdvanced: maximum newest candidates scanned per search call (default 3000).3000
EXMAIL_FROM_NAMENoOptional display name for the From header.
EXMAIL_IMAP_HOSTNoAdvanced: Exmail IMAP host override.
EXMAIL_IMAP_PORTNoAdvanced: Exmail IMAP port override.
EXMAIL_PASS_FILENoPassword file. Native default is <config dir>/exmail.pass. Docker: host path of the file, mounted read-only at /run/secrets/exmail.pass.
EXMAIL_SMTP_HOSTNoAdvanced: Exmail SMTP host override.
EXMAIL_SMTP_PORTNoAdvanced: Exmail SMTP port override.
HEADER_CACHE_DIRNoHeader cache directory. Default is hcache.
HEADER_CACHE_MAXNoAdvanced: maximum header cache entries (default 50000).50000
MAX_ATTACH_BYTESNoAdvanced: maximum attachment size (default 25 MB).25 MB
DISK_HEADER_CACHENoAdvanced: enable or disable the disk header cache (default on; set off to disable).on
DOWNLOAD_DIR_HOSTNoDocker only: host path of the downloads directory reported back to clients.
SENT_WAIT_SECONDSNoAdvanced: seconds to wait when checking for the Sent copy (default 20).20
WARM_HEADER_CACHENoAdvanced: enable or disable background header cache warm-up (default on; set off to disable).on
EXMAIL_MCP_DATA_DIRNoPer-user data folder override.
EXMAIL_MCP_CONFIG_DIRNoPer-user config folder override.
IMAP_POOL_IDLE_SECONDSNoIdle drop time for pooled IMAP connections in seconds (default 240).240
IMAP_POOL_NOOP_SECONDSNoAdvanced: interval for NOOP checks on idle pooled IMAP connections in seconds (default 30).30

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources