realtime htop-style monitor for chatmail relays
Project description
cmtop: real-time mail monitor for chatmail relays
cmtop provides an htop-style console interface for
monitoring mail traffic and system health on chatmail relays.
It tails postfix and dovecot logs to calculate real-time delivery
statistics and identifies external domains involved in mail traffic.
Installation
To install use:
uv tool install cmtop
Usage
Interactive TUI
To run the interactive TUI:
cmtop
To override the local domain name used for distinguishing internal versus external traffic:
cmtop --domain example.org
Non-interactive Log Analysis
To analyze a logfile and print a flat summary table:
cmtop -f /path/to/mail.log
You can also pipe journalctl output directly:
journalctl -u postfix@- --no-pager | cmtop -f - --domain mail.example.org
Interactive Controls
-
jor Down Arrow: Move cursor down -
kor Up Arrow: Move cursor up -
q: Quit
Developing / Releasing cmtop
-
Clone the git repository at https://github.com/hpk42/cmtop
-
Install 'cmtop' in editing mode:
uv pip install -e . -
Edit code under
cmtop/, add tests totests/and runpytest, finally commit your changes.
CI checks (ruff lint/format, packaging, pytest) come from the shared
chatmail/workflows
repository; run them locally with uvx ruff check .,
uvx ruff format --check . and pytest.
To release, run the shared release script from a checkout of chatmail/workflows:
python ../workflows/scripts/make_new_release.py
It runs the checks, tests the built wheel, generates the CHANGELOG.md entry with git-cliff and opens it in your editor, then commits, tags vX.Y.Z and pushes. The release.yml workflow builds and publishes to PyPI via trusted publishing (OIDC); no local twine or PyPI token is involved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cmtop-0.1.1.tar.gz.
File metadata
- Download URL: cmtop-0.1.1.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88291da956c6406bbec0f49030005ac19fcbd56a7e9c16c62c4b74dbd86aaf4a
|
|
| MD5 |
46dba2e055a0c943582a92982474c74e
|
|
| BLAKE2b-256 |
78ac80038bf94dc12d4e31397b495a70a9dea1064762d88ffac96289a2055180
|
Provenance
The following attestation bundles were made for cmtop-0.1.1.tar.gz:
Publisher:
release.yml on hpk42/cmtop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cmtop-0.1.1.tar.gz -
Subject digest:
88291da956c6406bbec0f49030005ac19fcbd56a7e9c16c62c4b74dbd86aaf4a - Sigstore transparency entry: 2262956117
- Sigstore integration time:
-
Permalink:
hpk42/cmtop@433d876dd36bbcfae4f8f91705d0b7c48b38068a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hpk42
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@433d876dd36bbcfae4f8f91705d0b7c48b38068a -
Trigger Event:
push
-
Statement type:
File details
Details for the file cmtop-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cmtop-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82b2cb952a632c349b00524c870b913a20e515e2102f5b52ebf1ab03cd14eb12
|
|
| MD5 |
c9149ac224ed6744c4c115510be9f57b
|
|
| BLAKE2b-256 |
ccb51cefe2e17ab6bc6f40e81789e9a121ee9c8d9070de4b1e141623de5111e3
|
Provenance
The following attestation bundles were made for cmtop-0.1.1-py3-none-any.whl:
Publisher:
release.yml on hpk42/cmtop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cmtop-0.1.1-py3-none-any.whl -
Subject digest:
82b2cb952a632c349b00524c870b913a20e515e2102f5b52ebf1ab03cd14eb12 - Sigstore transparency entry: 2262956383
- Sigstore integration time:
-
Permalink:
hpk42/cmtop@433d876dd36bbcfae4f8f91705d0b7c48b38068a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hpk42
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@433d876dd36bbcfae4f8f91705d0b7c48b38068a -
Trigger Event:
push
-
Statement type: