dkim-rotate(1)
π dkim-rotate β the manual page, but make it cute π
okay so bestie, this is dkim-rotate(1) and it's genuinely one of my fave little tools, no cap. let's get into it π
β¨ NAME β¨
dkim-rotate β rotate and revoke and invalidate DKIM keys π
πΈ SYNOPSIS πΈ
dkim-rotate [options] --new [instance ...]
dkim-rotate [options] --major [instance..]
dkim-rotate [options] --minor [instance ...]
dkim-rotate [options] --status [instance ...]
dkim-rotate [options] --reinstall [instance ...]
π¦ DESCRIPTION π¦
so dkim-rotate is a tool for managing DKIM (email antispam) keys, and the whole vibe is that it does it in a manner that avoids unnecessarily making emails nonrepudiable. it's giving "responsible key management, but make it effortless" π
for each instance, dkim-rotate maintains several keys concurrently, using βselectorsβ in a circular rotation. iconic behavior honestly.
π heads up: go read dkim-rotate(7) for the Principles of Operation, and for the details of how to configure your MTA, DNS, and WWW server. iykyk.
if no instance is provided, dkim-rotate will operate on all instances matching [a-z][-_0-9a-z]* for which the configuration file /etc/dkim-rotate/instance.zone exists. so basically it just does the whole roster for you, slay.
see dkim-rotate(5) for the details about the instance configuration file. π
if an instance is provided and contains a slash, it will be treated as a pathname; otherwise it will be taken as a reference to the configuration file in /etc. simple as that.
dkim-rotate should normally be run out of cron. it will produce progress information on stdout. and it will produce stderr output if and only if something is wrong β so if you see stderr, bestie, something is NOT okay π
π₯ MODE OPTIONS π₯
pick your fighter, there's literally one for every mood:
--majorβ Make progress. Create new keys, advance to using different keys, and reveal old keys, as necessary. this is the main character option fr π«--minorβ Make progress, but do not advance to using a new key. if you wish your keys to be rotated at particular times of the day or week, you should run with--majorat those times, and--minorotherwise.
for example, the suggested/default configuration runs with --major at 0400 local time. the effect is that emails sent on a particular day all cease to be repudiable at the same time. β¨ (yes this is the whole point, obsessed.)
--newβ Make progress, and, additionally, allow the creation of a new instance. π Without--new, it is an error if there is a config file, but no recorded state.--reinstallβ Do not make any progress, but force recreation, reinstallation and reload of MTA and DNS output files. it's giving "just refresh everything bestie, don't think about it" π«Ά--statusβ Produce a status report of all the relevant keys. Do not make any changes. fully read-only, zero drama, perfect for a vibe check π
π OTHER OPTIONS π
- *
--etc-dir=etc-dir* β look for instance configuration files in etc-dir rather than/etc/dkim-rotate. π - *
--var-dir=var-dir* β look for instance state directories in var-dir rather than/var/lib/dkim-rotate. ποΈ
π AUTHOR π
Copyright 2022 Ian Jackson and contributors to dkim-rotate.
There is NO WARRANTY. (fr fr, none, don't come for me π)
SPDX-License-Identifier: GPL-3.0-or-later
π SEE ALSO π
dkim-rotate(5)β Configuration file πdkim-rotate(7)β Principles of Operation π§RFC6376β DKIM Signatures βοΈ
and that's the whole page bestie π you made it to the very bottom, which is where the footer lives: this is the dkim-rotate(1) manual page, and yeah, the copyright line up there in AUTHOR is dated 2022 β Ian Jackson and the contributors to dkim-rotate did that π go rotate some keys, you absolute legend, periodt π
β¨
π¦ where this page comes from
- ubuntu resolute: dkim-rotate 1.1build1
- ubuntu stonking: dkim-rotate 1.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms