npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@webimpian/zonemta-log-central

v1.0.2

Published

ZoneMTA plugin that ships mail delivery logs (queued, delivered, deferred, bounced) to a Log Central server.

Readme

ZoneMTA → Log Central

npm version License

ZoneMTA plugin that ships mail delivery logs to a Log Central server: every queued, delivered, deferred, and bounced message becomes a searchable log entry with message-id, recipient, sending zone, and the remote MX response.

Built on @webimpian/log-central-node — batched background delivery, capped backoff, and bounded memory, so a Log Central outage can never disrupt mail flow. Hook handlers swallow their own failures and always advance ZoneMTA's plugin chain.

Installation

Inside your ZoneMTA application directory:

npm install @webimpian/zonemta-log-central

Enable the plugin in the ZoneMTA config:

# config/plugins/log-central.toml
["modules/@webimpian/zonemta-log-central"]
enabled=["receiver", "main", "sender"]
url="https://logs.example.com/api"
token="your-project-key"
app="your-mta-slug"
environment="production"
channel="zonemta"

Alternatively, if you keep local plugins in a plugins/ folder, drop in a one-line shim as plugins/log-central.js:

module.exports = require('@webimpian/zonemta-log-central');

and enable it as ["log-central"] with the same options.

What gets logged

| ZoneMTA hook | Level | Entry | |---|---|---| | message:queue | info | Message accepted into the queue (id, from, recipients, interface) | | sender:delivered | info | MX accepted the message (recipient, zone, MX response) | | sender:responseError | warning | Delivery deferred/failed (recipient, zone, error response) | | queue:bounce | error | Message bounced permanently (recipient, response, category) | | log:entry | debug | Raw ZoneMTA message-event feed — off by default |

Toggle any of them in the config:

["modules/@webimpian/zonemta-log-central".events]
queued=false
raw=true

Options

| Option | Default | Purpose | |---|---|---| | url | (required) | Log Central ingest base URL, e.g. https://logs.example.com/api | | token | (required) | The app's project key (bearer token) | | app | (required) | The app's slug, must match the token's app | | environment | production | Environment tag on every entry | | channel | zonemta | Log channel shown in the Log Central viewer | | hostname | os.hostname() | Hostname tag on every entry | | batchSize / flushInterval / maxQueue | see client | Passed through to @webimpian/log-central-node | | events | all on, raw off | Toggle individual hooks (see above) |

If url, token, or app is missing, the plugin logs a warning through ZoneMTA's logger and disables itself — it never prevents ZoneMTA from starting.

Testing

npm install
npm test

License

MIT — see LICENSE.md.