# mail-mcp config — copy to ~/.config/mail-mcp/config.toml, chmod 600. # # Passwords are NEVER inline. Each account names an env var (`password_env`) # AND a fallback file (`password_file`). Lookup order: # 1. env var # 2. shell-format file (`KEY=VALUE` per line) # 3. hard fail default_account = "primary" [accounts.primary] from_name = "Your Name" from_addr = "you@example.com" smtp_host = "mail.example.com" smtp_port = 587 smtp_starttls = true imap_host = "mail.example.com" imap_port = 993 imap_tls = true username = "you@example.com" password_env = "MAIL_PASSWORD" password_file = "~/.config/mail-mcp/secrets.env" # Optional: pin Message-ID domain. Defaults to the part of `from_addr` # after the @ if unset. # message_id_domain = "example.com"