opendkim-testkey(8)
π opendkim-testkey(8) π
System Manager's Manual β okay bestie, this is the DKIM filter installation test, and it's giving βletβs check your keys before anything embarrassing happensβ energy π
πΈ NAME πΈ
opendkim-testkey β DKIM filter installation test.
β¨ SYNOPSIS β¨
opendkim-testkey [-d domain] [-s selector] [-k keypath] [-v] [-x
configfile]
π¦ DESCRIPTION π¦
Okay so opendkim-testkey is the vibe check for your signing and verifying keys β private and public β when youβre setting them up for use with opendkim(8). It verifies the setup, no cap. β¨
This test program reads a domain name and selector from the command line, configuration file, or a key table, then queries and parses the resulting DKIM key(s), reporting any errors it finds. π
If you also hand it a key path, it reads the private key named there and tries to confirm that the private key specified by keypath (or in the key table) and the public DKIM key it retrieved actually match. Thatβs the matching fit check, bestie π«Ά
π OPTIONS π
-ddomain β Names the domain where signing is to be done. More specifically, it names the domain where the public key matching the provided private key will be found. This parameter must be provided either explicitly, or in the configuration file, or via aKeyTable(seeopendkim.conf(5)for details). π-kkeypath β Specifies the path to the private key file which should be used for this test. This parameter is optional. π-sselector β Names the selector within the specified domain whose public key should be retrieved and tested, comparing it to the private key if provided. This parameter must be provided either explicitly, or in the configuration file, or via aKeyTable(seeopendkim.conf(5)for details). π-vβ Increases the amount of output (verbosity) of the program. May be specified multiple times for increased output. π£οΈ-xconffile β Names a configuration file to be parsed. See theopendkim.conf(5)man page for details. The only values used areDomain,Selector,KeyFile,KeyTable,TrustAnchorFileandResolverConfig. The default is/etc/opendkim/opendkim.conf. π
π NOTES π
β οΈ The test program will also complain if a private key file is readable by anyone other than the user executing the program. So yeah, if the perms are messy, itβs gonna call it out β keep it locked to the right user, bestie π
π VERSION π
This man page covers the version of opendkim-testkey that shipped with version 2.11.0 of OpenDKIM. π
π COPYRIGHT π
Copyright (c) 2007, 2008, Sendmail, Inc. and its suppliers. All rights reserved.
Copyright (c) 2009-2012, The Trusted Domain Project. All rights reserved.
π SEE ALSO π
opendkim(8)RFC6376 - DomainKeys Identified Mail
π xoxo, The Trusted Domain Project β source of thisopendkim-testkey(8)page β shipped with OpenDKIM2.11.0, and the footer date is whatever your local man page renders, bestie π
π¦ where this page comes from
- alpine 3.24: opendkim-doc 2.11.0-r4 Β· custom
- arch rolling: opendkim 2.11.0beta2-1 Β· BSD AND custom:Sendmail
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms