Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

benethos-mailbox-service

Latest version: v0.11.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: beneo
5 Stars
0 Forks
17 Versions
2.5K Downloads
Python Repo language

Scan summary

benethos-mailbox-service was last scanned on 24 Nov 2026 at version 0.11.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 5 were published within 6 days (19–24 Nov 2026).
  • Findings: No rules fired in version 0.11.1.
  • Downloads: 2,544 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.11.1 LATEST 24 Nov 2026 No rules fired
0.11.0 23 Nov 2026 No rules fired
0.10.0 22 Nov 2026 No rules fired
0.9.0 21 Nov 2026 Not shown
0.8.0 19 Nov 2026 Not shown

No rules fired in 0.11.1

Findings

Findings for v0.11.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.11.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Mailbox Service

CI Coverage License Python

PyPI benethos-mailbox-service Container benethos-mailbox-service

PyPI benethos-mailbox-agents Container benethos-mailbox-agents

PyPI benethos-mailbox-mcp Container benethos-mailbox-mcp

PyPI benethos-mailbox-client

PyPI benethos-mailbox-common

Sponsor PayPal

Beta, version 0.11.1. Usable with real accounts. A breaking change of the API or the configuration is announced in the changelog. Stored data is carried forward by migrations.

The service of Mailbox, on PyPI as benethos-mailbox-service: one REST API (OpenAPI 3.1) for several mail providers and accounts, with a configuration UI in the browser. It runs permanently on your own machine or server, holds the connections to the accounts, keeps their credentials encrypted and syncs in the background. It keeps a feed of what changed in the mailboxes and posts it to webhooks.

Mailbox is self-hosted and has five packages. The service is the one that works alone, and the others build on it. Scripts and apps reach mail through the Python client, AI assistants through the MCP server, the agents through the client as well, each with a token of its own. None of them holds a mail password.

A request comes in over REST, from the client, from the MCP server and the agents on top of it, or from any program that speaks HTTP. The service checks the token and its rights, and goes to the provider of the account. People use the configuration UI in the browser, your systems get a signed webhook for each change, and Prometheus reads the metrics.

Package Its part How you get it
mailbox-service This package. It holds the connections to your accounts and their credentials, encrypted. It offers one REST API for every provider and a configuration UI, and decides what a token may do. Getting started
mailbox-client The Python client of the REST API, async and sync, for your own scripts and apps. from PyPI, where your code runs: Install
mailbox-mcp The MCP server. It turns the REST API into tools for an AI assistant, on top of the client. after the service: Getting started
mailbox-common What the service, the MCP server and the agents share. installed with this package
mailbox-agents Small AI agents that sort and mark mail through the REST API, on top of the client. Alpha. after the service: Install

The MCP server and the service must have the same version to work together. Update both at once. The agents need a service of their own minor version.

What the project is for: the repository's README.

Contents

  • What it offers
  • Getting started
  • Install
  • First start
  • Where things live
  • Settings
  • Logs
  • Commands
  • Users, rights and tokens
  • Changes and webhooks
  • Container
    • With docker run
    • With compose
  • Licence

What it offers

  • Every provider behind one API. IMAP with SMTP, set up from the address alone, JMAP servers such as Fastmail and Stalwart, POP3 for mailboxes without IMAP, Microsoft 365 and Outlook.com over Microsoft Graph, and Gmail over the Gmail API. The routes under /v1 look the same for each. What each provider offers: providers.
  • Reading. Folders, lists and search, in one account or all at once. Conversations across folders. Messages as text and HTML, their attachments and the raw source. The receiving server's check of the sender's domain (sender_check). A message keeps its id when it moves.
  • Writing. Read state, stars and keywords, moving, deleting, folders, drafts, and sending with reply, reply to all and forward. A retried send is not sent twice (Idempotency-Key).
  • Changes. A change feed names each message created, changed or deleted since a point you keep. Signed webhooks post the same events to a URL of your choice: Changes and webhooks.
  • Users and rights. Users, roles and grants per account and per operation, down to folders, and grants that expire. Each script and each assistant gets a token of its own: Users, rights and tokens.
  • Guard rails for sending. A grant can name the recipients a token may write to and how many mails it may send a day.
  • Traceable. An audit records every send: by whom, with which token, to whom and when. A second one records every sign-in and every change to users, tokens, roles, accounts and webhooks.
  • Credentials encrypted. AES-256-GCM under a master key kept outside the database. Mail goes straight from the provider to your server, never through a third party's cloud.
  • A configuration UI. In the browser under /ui: accounts, users, rights and tokens, reading and writing mail, the audits, webhooks, the status of accounts and sync, and the service log. Its sign-in takes a second factor, an authenticator app or a passkey.
  • Limits. Rate limits per token, per session and per client address, towards each mail server, and a lockout after failed sign-ins: Settings.
  • Operation. An encrypted backup and restore, a container image, and compose files with HTTPS through Caddy: Container. Metrics for Prometheus at GET /v1/metrics, for a token with their right: monitoring.

Getting started

  1. Install it, from PyPI or as a container: Install or Container.
  2. Make the keys and the first user, and start it: First start.
  3. Open http://127.0.0.1:8080/ui, sign in as admin with the one-time password, choose a password of your own and connect your accounts.
  4. Give each script and each assistant a user of its own with the rights it needs, and a token: Users, rights and tokens.
  5. Work with it: over the REST API, which /docs shows, with the Python client, or from an AI assistant through the MCP server.

Install

From PyPI, with uv or pip:

uv tool install benethos-mailbox-service      # or: pipx install benethos-mailbox-service
benethos-mailbox-service --version

uvx benethos-mailbox-service ... runs it without installing. In a clone of the repository, every command below also works as uv run benethos-mailbox-service ....

The container image is ghcr.io/benethos-hub/benethos-mailbox-service. See Container.

First start

benethos-mailbox-service keys init              # once: the keys, prints the recovery key
benethos-mailbox-service users create-admin     # once: a user with every right, prints a one-time password
benethos-mailbox-service serve
  • keys init creates the master key in the operating system's credential store and the data key in the database. It prints a recovery key once. Keep it apart from the machine and its backups. Without it, a database cannot be opened on another machine.
  • users create-admin creates the user admin and prints a one-time password once. Sign in to the UI with it. The UI then asks for a password of your own, 15 characters at least. Tokens for the API are made in the UI, on a user's page.
  • Further users are API users unless their UI sign-in is switched on: they work with tokens only, e.g. a script or an MCP server.
  • A forgotten password: users set-password <name> on the host gives that user a new one-time password, and switches its UI sign-in on.
  • Both write the secret alone to standard output and everything else to standard error, so it can be piped straight into a password manager. Printed to a terminal, it stays in its scrollback, and in a container or CI job, in the log of that run. Clear these afterwards.
  • A lost second factor without a recovery code: users reset-second-factor <name> on the host removes it (AUTHENTICATION.md).
  • serve listens on http://127.0.0.1:8080:
    • /ui: the configuration UI (sign in with the user name and password)
    • /docs: the interactive API documentation
    • /health: open, for health checks

Then connect accounts in the UI (Accounts, Connect an account) or with POST /v1/accounts. Each kind of account connects in its own way:

  • IMAP: the address and an app password. The service looks up the servers from the address.
  • JMAP, at Fastmail, Stalwart or any JMAP server: an API token or a password. It sends through JMAP.
  • POP3, for a mailbox without IMAP: as IMAP, the inbox only, without folders, read state or search.
  • Microsoft: OAuth, in the browser or with a code, through the project's app or one of your own. Away from localhost the project's app signs in with a code only. For the browser there, register an app of your own: docs/mailbox-service/MICROSOFT.md.
  • Gmail: Sign in with Google in the browser, through a Google client of your own, or over IMAP with an app password: docs/mailbox-service/GOOGLE.md.

Where things live

Installed with pip or uv tool, the service keeps its settings and data in the folders of the operating system for the user:

System Settings (.env) Data
Windows %LOCALAPPDATA%\benethos-mailbox-service\config %LOCALAPPDATA%\benethos-mailbox-service\data
Linux ~/.config/benethos-mailbox-service ~/.local/share/benethos-mailbox-service
macOS ~/Library/Application Support/benethos-mailbox-service/config ~/Library/Application Support/benethos-mailbox-service/data

Started in a folder that has config/benethos-mailbox-service/ or data/benethos-mailbox-service/, as the repository does, it works from there instead. The command names what applies, never a value of the settings:

benethos-mailbox-service paths
What Where
settings the environment, or .env in the settings folder (the environment wins)
the database mailbox.db in the data folder, readable by its owner only
the master key the OS credential store (keyring), or a file or variable (see MAILBOX_SERVICE_KEY_PROVIDER)

The keyring is the default and the safest place. A key file is for a server without one, or a container. It never lies in the data folder, which a backup or a copy takes along. The service refuses it there. paths suggests master.key in the settings folder.

A template for the settings file with every option: config/benethos-mailbox-service/.env.example.

To keep the settings somewhere else, name the file. Every command takes --env-file PATH, before or after the command, or reads MAILBOX_SERVICE_ENV_FILE:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases benethos-mailbox-service

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229