Skip to content

Commit 2333a52

Browse files
committed
docs: add observability documentation
1 parent 318338d commit 2333a52

5 files changed

Lines changed: 57 additions & 0 deletions

File tree

.mkdocs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ nav:
4040
- administration/dns-validation-wizard.md
4141
- administration/user-roles.md
4242
- administration/ios-macos-profile.md
43+
- Observability:
44+
- observability/intro.md
4345
- Recipes:
4446
- Docker:
4547
- Traefik Reverse Proxy: https://github.com/jeboehm/docker-mailserver/tree/main/docs/example-configs/compose/traefik-reverse-proxy

docs/images/admin/obs_dovecot.png

71.9 KB
Loading

docs/images/admin/obs_rspamd.png

84.9 KB
Loading

docs/observability/intro.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Observability
2+
3+
Observability is the ability to understand a system's internal state by examining its external outputs, crucial for complex, modern software systems.
4+
5+
`mailserver-admin` provides observability features for monitoring the mailserver components, enabling administrators to monitor service health, message processing statistics, and operational metrics through web-based dashboards.
6+
7+
## Overview
8+
9+
The observability features integrate with the Rspamd filter service and Dovecot mail delivery agent to collect and display real-time statistics and historical trends. These dashboards provide visibility into message processing, spam filtering effectiveness, authentication patterns, and mail delivery rates.
10+
11+
## Rspamd Statistics
12+
13+
The Rspamd Statistics dashboard displays metrics from the Rspamd controller service, providing insights into spam filtering operations and message processing.
14+
15+
![Rspamd Statistics](images/admin/obs_rspamd.png)
16+
17+
The dashboard includes:
18+
19+
- **Service Status**: Health check indicator showing Rspamd controller availability and response time
20+
- **Summary Metrics**: Key performance indicators including:
21+
- Total messages scanned
22+
- Spam messages detected
23+
- Ham (clean) messages identified
24+
- Messages used for machine learning
25+
- Active connections to the service
26+
- **Throughput Chart**: Time-series visualization of message processing rates per minute, showing action distributions including rejections, soft rejections, subject rewrites, header additions, greylisting, and no-action messages. Supports time aggregation for day, week, month, and year views
27+
- **Action Distribution**: Donut chart showing the proportion of messages categorised by Rspamd actions (clean, rejected, temporarily rejected, probable spam, greylisted)
28+
- **Configuration Details**: Displays action thresholds and top symbols used in spam scoring
29+
30+
## Dovecot Statistics
31+
32+
The Dovecot Statistics dashboard presents metrics from the Dovecot mail delivery agent via the Doveadm HTTP API, focusing on authentication and mail delivery operations.
33+
34+
![Dovecot Statistics](images/admin/obs_dovecot.png)
35+
36+
The dashboard provides:
37+
38+
- **API Status**: Connection status and authentication verification for the Doveadm HTTP API, including last update timestamp
39+
- **Summary Metrics**: Overview cards showing:
40+
- Authentication successes
41+
- Authentication failures
42+
- Index operations count
43+
- **Authentication Rate Chart**: Time-series graph displaying authentication success and failure rates per minute, enabling identification of authentication patterns and potential security issues
44+
- **Mail Deliveries Chart**: Time-series visualization of mail delivery rates per minute, showing message throughput to user mailboxes
45+
- **Data Collection**: Charts are calculated from consecutive samples, with rates computed as deltas between measurements

docs/upgrade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ Upgrade guide for docker-mailserver.
44

55
When upgrading, ensure that container configuration files are updated to match the requirements of the new version. Review the manifests in `deploy/compose` and `deploy/kustomize` for any changes to persistent volumes or configuration, and update them as necessary. If new environment variables have been introduced, update the `.env` file accordingly.
66

7+
## v7.3
8+
9+
`mailserver-admin` now provides observability features for the mailserver. To make sure the service to service communication works, the
10+
following environment variables have been added:
11+
12+
- `MDA_DOVEADM_ADDRESS`: The address of the MDA service for Dovecot API access. (default: `mda:8080`)
13+
- `DOVEADM_API_KEY`: The API key for Dovecot API access.
14+
15+
Please make sure to change at least `DOVEADM_API_KEY`.
16+
717
## v7.1
818

919
- **web**: mailserver-admin now includes a feature to generate mobileconfig files for iOS and macOS. These files are signed with the same TLS certificate that the mailserver displays to connecting clients. To generate these files, it’s necessary to mount the certificate to the web container.

0 commit comments

Comments
 (0)