imap_add_account
Configure a new IMAP account for email access. Provide host, username, password, and optional SMTP details to enable reading and sending through the Mail Agent MCP.
Instructions
Add a new IMAP account configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tls | No | Use TLS/SSL (default: true) | |
| host | Yes | IMAP server hostname | |
| name | Yes | Friendly name for the account | |
| port | No | IMAP server port (default: 993) | |
| user | Yes | Username for authentication | |
| No | Email address (From: header). Defaults to user if omitted | ||
| password | Yes | Password for authentication | |
| smtpHost | No | SMTP server hostname. Defaults to IMAP host with imap.→smtp. rewrite | |
| smtpPort | No | SMTP server port (465 for SMTPS, 587 for STARTTLS). Defaults to 587 | |
| defaultBcc | No | Optional BCC address(es) applied automatically to every outbound send, reply, forward, and draft for this account. Merged with any per-call bcc | |
| sentFolder | No | Explicit Sent-folder name for saving sent-mail copies (e.g. "Gesendet"). Only needed when auto-detection fails — the server must lack a \Sent SPECIAL-USE folder. Check names with imap_list_folders | |
| smtpSecure | No | Use implicit TLS (SMTPS). Ignored for port 587/25 which always use STARTTLS, and for port 465 which always uses implicit TLS |