CLI-Anything Bundle #109 — Courier 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 Courier mail server trust surface — the layer that tells you whether a Courier deployment's binaries, config grammar, IMAP/POP3 service posture and log artifacts can still be TRUSTED (an operator whose courierd binary, /etc/courier grammar, authlib and log artifacts cannot be honestly censused has no mail-trust story at all): the install + runtime posture layer, the config grammar layer, the IMAP service layer, and the POP3 service layer. Each tool stats/globs binaries, configs and artifacts and parses documented grammar line-based — nothing is ever executed, no courier binary is ever spawned, nothing is ever written, nothing networks, and no credential value, auth material, recipient address or fixture body is ever read or printed (CRED-PRESENT/RCPT1/USER1 presence rows; credential-shaped values ride CRED-PRESENT; doc-shapes like localhost/127.0.0.1 MAY print; /etc/courier is public vocabulary).
- courierpeek — Courier install + runtime posture census: courierd/courier-imapd/courier-pop3d/couriertls binaries stat-only across lookup dirs (TOOL_BINS rows, BIN1 tokens, binaries NEVER executed); /etc/courier presence + PERM rows; imapd/pop3d config presence census; run/data dirs stat-only (SIZE only); /var/log/courier census with LOG_PERM; courier*.service unit census; findings BARE_TOOL / CONF_WITHOUT_TOOL / CONF_PERM / LOG_PERM / RUN_WIDE; honest rc6 with NOT_RUNNING; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- courierconfpeek — Courier config grammar census: LINE-BASED hand parser (NEVER a yaml or configparser module) over /etc/courier imapd/pop3d/esmtpd/courierd + *.dist/*.cnf, key-presence grammar over the public vocabulary (IMAP_CAPABILITY, IMAP_IDLE, IMAP_USEIMAPDIR, POP3DSTART, ESMTP_TLS, AUTHMODULES, MAILDIR=, MAXDAEMONS, MAXPERIP, TCPDOPS, TLS_VERIFYPEER, TLS_CACHE, DEBUGLOGIN); values ride CONF1/USER1 tokens; findings CONF_PERM / CRED_PRESENT / TLS_OFF (TLS_CACHE empty or DEBUGLOGIN=1); rc 0 / 4 / 6 / 3 law.
- courierimappeek — Courier IMAP service census: imapd + imapd-ssl (IME rows, IMAP1 tokens, PERM class); authlib/authdaemonrc presence (AUTH1 tokens); imapd.log* census (LOG1 tokens, LOG_PERM); courier-imap* libexec presence+COUNT (binaries NEVER executed); key-presence grammar over public IMAP vocabulary (ADDRESS=, PORT=143/993, IMAP_MOVE_EXPUNGE, IMAP_ENHANCEDIDLE, MAXPERIP); rc 0 / 4 / 6 / 3 law.
- courierpop3peek — Courier POP3 service census: pop3d + pop3d-ssl (POP rows, POP1 tokens, PERM class); key-presence grammar over public POP vocabulary (POP3ADDRESS=, POP3PORT=110/995, POP3AUTH=, POP3_TLS=, MAXDAEMONS, MAXPERIP); pop3d.log* census (LOG1 tokens, LOG_PERM); courier-pop3*/pop3login libexec census (NEVER executed); TLS_OFF finding; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no credential value, auth material, recipient address or fixture body ever prints raw (values ride BIN1/CONF1/LOG1/USER1/RCPT1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (955 executed checks across the four tools — 308 + 224 + 211 + 212 — 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).