WATCH-MIMEDEFANG(8)
π WATCH-MIMEDEFANG π (section 8 of the System Manager's Manual, bestie)
okay so. watch-mimedefang β it's from the WATCH-MIMEDEFANG(8) page, it lives in the System Manager's Manual, and it is exactly what it sounds like: a little window that keeps an eye on mimedefang-multiplexor. π¦
β¨ NAME β¨
watch-mimedefang β keep an eye on mimedefang-multiplexor, no cap. π
πΈ SYNOPSIS πΈ
watch-mimedefang [options]
π DESCRIPTION π
So watch-mimedefang is a Tk script that graphically displays the status of mimedefang-multiplexor(8). It's giving dashboard, it's giving main character.
β οΈ Heads up bestie: you need Tcl/Tk 8.0 or higher to run watch-mimedefang. No Tcl/Tk 8.0, no vibes. π
π DISPLAY π
The display is split into three main areas, top to bottom, and I'm obsessed:
- The graph display shows six graphs representing various statistics about the multiplexor. π
- The control area shows the maximum number of workers, number of busy workers, and number of idle workers. The "Control Command" text entry lets you monitor remote MIMEDefang servers β peep "REMOTE MONITORING" for the details. π
The "10s", "1m", "5m" and "10m" checkboxes let you enable or disable the graphing of statistics averaged over the last 10 seconds, 1 minute, 5 minutes and 10 minutes. β±οΈ
The "Reread Filters" button forces the multiplexor to reread filter rules. The "Quit" button terminates watch-mimedefang. (RIP little window. π«Ά)
- The scale at the bottom lets you change the update interval β default is
500ms. Be aware that frequent updating may makewatch-mimedefangconsume a significant fraction of CPU time. π₯
π THE GRAPH AREA π
The graph area contains six graphs:
- Busy Workers β shows the number of busy workers each time the statistics are sampled.
- Workers/scan β shows the average number of busy workers each time a message was scanned. The red plot is the average over the last ten seconds, the blue plot is the average over the last minute, and the green and yellow plots show the average over the last five and ten minutes, respectively. π¨
- Latency (ms) β shows the average time taken by each
SCANcommand over the last ten seconds, one minute, five minutes and ten minutes. - Messages/s β shows the average number of messages per second that were scanned.
- Activations/s β shows the average number of new workers activated per second.
- Reaps/s β shows the average number of workers that have terminated per second.
Okay now the reading the vibes part, and this is important:
- If the Activations and Reaps increase significantly, it could indicate heavy load, or an error causing filters to terminate abnormally. π
- If only Activations increase, then it probably indicates a sudden increase in e-mail volume.
- If only Reaps increase, then it probably indicates a quiet time just after a period of heavy mail volume.
You can enable or disable the ten second, one minute, five minute or ten minute plots by clicking on the "10s", "1m", "5m" or "10m" checkbox. π
π¦ REMOTE MONITORING π¦
Running watch-mimedefang on your actual mail server poses two problems: you need Tcl/Tk and the X client libraries installed, and the CPU consumption of watch-mimedefang can be considerable. Not the move, honestly.
A better method is to run watch-mimedefang on a desktop machine, but have it monitor the mail server with a remote session. slay.
The best way to establish a remote session is via SSH. For example, if you're running MIMEDefang on "mail.mydomain.net", you can type the following into the Control Command entry box and press enter:
ssh root@mail.mydomain.net md-mx-ctrl
You must have a public/private key for the target machine and you must be running ssh-agent or equivalent; you cannot use an ssh command that requires entry of a password or passphrase. π«π
Assuming your SSH setup is correct, watch-mimedefang will open an SSH connection to mail.mydomain.net and exchange low-bandwith information over that session for monitoring purposes. (yes, that's spelled "low-bandwith" in the original, we keep it verbatim bestie π)
π COMMAND-LINE OPTIONS π
watch-mimedefang accepts the following command-line options:
-command cmdβ Usecmdas the control command. You may need to quotecmd.-interval msecβ Set the update interval tomsecmilliseconds.-10s flagβ Enable the "10s" graph plot ifflagis1, or disable it ifflagis0.-1m flagβ Enable the "1m" graph plot ifflagis1, or disable it ifflagis0.-5m flagβ Enable the "5m" graph plot ifflagis1, or disable it ifflagis0.-10m flagβ Enable the "10m" graph plot ifflagis1, or disable it ifflagis0.-title stringβ Addstringto the title of the main window.-helpβ Print usage information.
β EXAMPLE β
As an example, to monitor MIMEDefang on the machine "mail.mydomain.net" updating once a second, with the 5m and 10m plots turned off, use:
watch-mimedefang -command 'ssh root@mail.mydomain.net md-mx-ctrl' \
-interval 1000 -5m 0 -10m 0 -title "mail"
πΈ AUTHOR πΈ
watch-mimedefang was written by Dianne Skoll <dfs@roaringpenguin.com>. π The mimedefang home page is https://www.mimedefang.org/.
π PERMISSIONS π
watch-mimedefang uses md-mx-ctrl; therefore, it probably needs to be run as root or the same user as mimedefang-multiplexor, or (if you're monitoring a remote machine), the SSH connection must be done as root or the MIMEDefang user. Periodt.
π SEE ALSO π
mimedefang.pl(8)mimedefang-filter(5)mimedefang(8)mimedefang-protocol(7)md-mx-ctrl(8)watch-multiple-mimedefangs(8)
and that's the whole page, bestie!! π«Ά this one came from the 4th Berkeley Distribution, dated 24 October 2002 β vintage but iconic, we love her. π β¨ go watch those workers. π
π¦ where this page comes from
- debian bookworm: mimedefang 3.3-1
- debian trixie: mimedefang 3.6-2 Β· GPL-2.0-only
- epel 10: mimedefang 3.7.1-1.el10_3 Β· GPL-2.0-only AND GPL-2.0-or-later
- epel 9: mimedefang 3.7.1-1.el9 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 43: mimedefang 3.6-3.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 43: mimedefang 3.7.1-1.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: mimedefang 3.6-4.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: mimedefang 3.7.1-1.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later
- ubuntu noble: mimedefang 3.3-1build4
- ubuntu questing: mimedefang 3.6-2.1
- ubuntu resolute: mimedefang 3.6-2.1build1 Β· GPL-2.0-only
- ubuntu stonking: mimedefang 3.6-2.1build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms