CLI-Anything Bundle #99 — Dovecot Mail Server Trust Recon Pack (4 New AI Agent Skills)
v1.0.0 · MIT · stdlib-only · read-only by construction
Four agent-native, read-only trust-recon CLI tools covering the Dovecot mail-server trust surface — the layer that tells you whether a deployment's install, config grammar, delivery-state and log artifacts can still be TRUSTED (an operator whose dovecot binary, dovecot.conf, conf.d includes and mail spool cannot be honestly censused has no mail-delivery-trust story at all): the install + runtime posture layer, the config grammar + security posture layer, the delivery-state/mailbox-index layer, and the log artifact layer. Each tool stats/globs binaries, configs and artifacts and parses documented grammar line-based — nothing is ever executed, no dovecot binary is ever spawned, nothing is ever written, nothing networks, and no mailbox name, user identity, credential value or log message body is ever read or printed (CRED-PRESENT presence rows; mailfiles ride MAIL1 tokens; mailbox names ride MAIL1; user identities ride USER1; SSL cert/key paths ride CRED-PRESENT; log LINE-CLASS severity counts only).
- dovepeek — Dovecot install + runtime posture census: exact dovecot/doveadm binaries stat-only across lookup dirs (TOOL_BINS presence rows, BIN1 tokens, binaries NEVER executed); install-dir bin/ conf/ subdir census (INSTALL rows, /usr/sbin + /usr/libexec/dovecot probe); config-dir presence + PERM class (contents never parsed by this tool); run-state pidfile census (RUNSTATE rows, PID1 tokens); dovecot.log mtime buckets (LOG rows); dovecot* systemd unit census (UNITS rows); findings CONF_PERM; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- doveconfpeek — Dovecot config grammar + security posture census: dovecot.conf main file + conf.d/*.conf includes census (CONF rows with CONF1/CONF2 tokens + PERM class); LINE-BASED hand-rolled key=value census (protocols, mail_location, mail_privileged_group, listen, disable_plaintext_auth, ssl) as KEY-PRESENCE rows (NEVER a yaml/configparser module); INCLUDE rows on !include lines (count + resolved PATH1 shapes); mail_location values ride PATH1 tokens (public maildir:~/Maildir may print); security posture rows (ssl = yes|required class; disable_plaintext_auth = no rides PLAINTEXT_AUTH_ON finding; absent = PLAINTEXT_DEFAULT note); ssl_cert / ssl_key paths ride CRED-PRESENT class ONLY (keys never read/printed); findings CONF_PERM; rc 0 / 4 / 6 / 3 law.
- dovestatpeek — Dovecot delivery-state/mailbox-index census: maildir/index file shapes across /var/lib/dovecot + /var/mail probe (DELIVERY rows with MAILFILE stat-only law; bodies NEVER opened); *.dovecot/*.dovecot.meta/dovecot-uidlist shape rows on INDEX1 tokens; shared-index posture (dovecot-shared + .lock PERM class rows, SHARED_PERM finding on a world/group writable shared lock); core-dump posture (core files at spool roots, CORE_DUMP finding); user-shaped dirs (user@host-class) at mail roots (MAILUSER rows on USER1 tokens, vmail MAY print); findings MAILFILE_WIDE (world-readable mailfile); rc 0 / 4 / 6 / 3 law.
- dovelogpeek — Dovecot log artifact census: dovecot.log/dovecot-deliver.log/mail.log files across /var/log/dovecot + /var/log probe (LOG rows + PERM class + mtime buckets); LINE-CLASS grammar over capped heads (LINE-CLASS first-token classifier on severity counts [W]/[E]/[I] only, message payloads never printed); ROTATION rows on .log.1/.log.gz; SERVICE rows on imap-login/pop3-login tokens (count only, source IPs ride HOST1 tokens NEVER printed); findings LOG_WIDE (world-readable mail logs carry usernames) + STALE_DOVELOG on >7d-old newest log; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no mailbox name, user identity, credential value or log message body ever prints raw (values ride BIN1/CONF1/PID1/MAIL1/MAILFILE/INDEX1/USER1/PATH1/HOST1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (888 executed checks across the four tools — 229 + 248 + 205 + 206 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip — one /tmp room, one home-path room — 0 failed in both).