Preface¶
When running agents in DeepSeek Harness (DSH), sending emails, reading inboxes, and batch personalized delivery often require writing separate scripts or integrating various APIs. dsh-mail consolidates sending, scheduled queues, CSV batching, domain lists, and (for some backends) inbox reading into a single plugin: it exposes Agent tools on the host side, provides a Mail sidebar on the Web side, and supports six transport backends: Lettermint, AgentMail, Resend, OVH SMTP, manual SMTP, and self-hosted SMTP. The following introduces what it is, what it can do, and how to install and configure it according to the official README.
What is this¶
dsh-mail is a DSH plugin released by maintainer lucagiftzek (Loukas “Luca” Tzekos), categorized as a networked tool. The current package.json version is 0.1.0 with an MIT license; it requires Node.js >= 22.5 and DSH engine >= 0.1.1-rc.1. The plugin implements tools, settings, and routes on the host side, and injects a Mail tab (order 91) via dsh-better-sidebar on the browser side, allowing for manual test emails, queue viewing, and credential configuration, while enabling agents to complete email-related tasks via tool calls.
Multi-backend and Capability Boundaries¶
The README lists six providers in a table, along with their authentication methods and incoming mail reading support (IMAP reading for OVH / smtp / local is marked as planned):
| ID | Backend | Auth | Incoming |
|---|---|---|---|
| lettermint | Lettermint API | x-lettermint-token | No |
| agentmail | AgentMail API | Bearer | Yes |
| resend | Resend API | Bearer | No |
| ovh | OVH SMTP | Username/Password | IMAP (Planned) |
| smtp | Manual SMTP | Username/Password | IMAP (Planned) |
| local | Self-hosted SMTP | Username/Password | IMAP (Planned) |
Credentials are not hardcoded in the repository; instead, they are merged from configuration and estate files at call time. Non-empty fields in settings take precedence over auto-discovered credentials.
Agent Tools¶
The tools callable by the agent include:
- mail_send — Send a single email
- mail_mass_send — CSV-based personalized batch sending with email intervals
- mail_send_later — Add emails to a scheduled queue for future sending
- mail_read — Read recent incoming mail (AgentMail)
- mail_fetch — Fetch a single message by ID
- mail_domains — List available sending domains/inboxes
- mail_list_queue — List queue entries
- mail_cancel — Cancel queued or scheduled emails
Additionally, the plugin supports queue management and CSV parsing, template personalization (see the staging module in the architecture), and a queue sending flow for manual review (queue emails for manual review).
Mail Sidebar¶
The Mail tab includes:
- Overview: Status of each provider and queue count overview
- Queue: Pending, sent, failed, and cancelled entries; supports immediate sending / cancellation
- Send: Compose and send test emails
- Settings: Configure provider credentials and limits
Installation and Activation¶
The installation method described in the official README involves building from the source directory and mounting it to the web profile, rather than a simple one-line dsh plugin add command. First, perform dependency installation and frontend bundling, then modify the profile’s package.json.
Run the following in the plugin directory:
cd /opt/stacks/llm/plugins/dsh-mail
pnpm install # dev deps (esbuild)
pnpm build # bundle src/client.jsx → lib/client.js
Add the dependency and bundle entry in ~/.dsh/profiles/web/package.json:
# In ~/.dsh/profiles/web/package.json, add to dependencies:
" \"dsh-mail\": \"file:/opt/stacks/llm/plugins/dsh-mail\","
# And to the bundles array:
" \"dsh-mail\","
Then install dependencies in the web profile directory:
pnpm install --dir ~/.dsh/profiles/web
Once completed, dsh-web needs to be restarted to mount the plugin. If the current session is running inside dsh-web, confirmation should be sought from the user before restarting.
Settings and Credential Discovery¶
Configuration is written under the dsh-mail namespace in ~/.dsh/settings.yaml. Upon first use, the plugin automatically populates some credentials from estate files, such as:
- Lettermint:
~/.config/lettermint/credentials(LETTERMINT_API_KEY) - AgentMail:
~/.config/agentmail/credentials(AGENTMAIL_API_KEY,AGENTMAIL_TEST_INBOX)
The README emphasizes that credentials are only read at call time and merged with settings; plaintext keys should not be written into the repository or settings.
Disabling the Plugin¶
To temporarily disable it, set the environment variable DSH_MAIL_DISABLE=1, or set disabled: true in cordis.
Code Structure (for review)¶
lib/index.js host half — tools, settings, routes, timer
lib/providers.js multi-provider transport layer
lib/staging.js queue management, CSV parsing, template personalisation
lib/security.js 4-layer route security (loopback, trust fence, capability, cookie)
src/client.jsx browser half — sidebar tab UI
scripts/build.mjs esbuild bundler
For more comprehensive design instructions, please refer to docs/DESIGN.md in the repository.
Use Cases and Notes¶
Suitable for developers who need to uniformly handle sending, batch personalization, scheduled queues, and (AgentMail) incoming mail reading within the DSH Web interface and Agent toolchain, and who already possess or are willing to configure credentials for one of the aforementioned backends.
The plugin runs with the permissions of the current dsh process. Before installation, you should read the source code and MIT license yourself to confirm whether the route security layers (loopback, trust fence, capability, cookie) meet your deployment boundaries. The community plugin directory site skillhub.cn has no official affiliation with DeepSeek / High-Flyer; star counts and ecosystem data are subject to the display on each page at the time (the repository currently has 0 stars on GitHub).
Links¶
- Directory Page: https://www.skillhub.cn/plugins/lucagiftzek/dsh-mail
- Source Code & README: https://github.com/lucagiftzek/dsh-mail
dsh-mail converges multi-provider email capabilities into a DSH plugin: tools for agent invocation, a sidebar for operations and testing, and queues and CSV batching covering common automated sending paths; simply build and mount it into the web profile according to the README to enable it.