Karta. Domains. Health. DKIM
(Karta v1.0.0)
The DKIM check of a domain (Karta.Domains.Health): the record of each
of its pending, active and retiring keys (Karta.Domains.DKIMKey), at
<selector>._domainkey.<domain>, compared with the key by its public
key (p=).
- An active key whose record is missing or different:
:fail(receivers cannot verify what it signs). No key, or no active key::fail(the domain's mail is not signed). - A pending key without its record:
:warn(publish it before activating the key). A retiring key without its record::warn(mail it signed may still be checked). - A record that matches:
:pass.
A lookup that fails ends the check without a result.
Summary
Functions
Runs the check. input as Karta.Domains.Health.run/2 builds it.
Looks up a key's record at <selector>._domainkey.<domain> and compares
it with the key by its public key (p=): :published, :missing (no
record) or :different (records, none with the key), with the records
found; {:error, text} when the lookup failed. dns are options for
Karta.DNS.lookup/3.
True when the outcome shows an active key whose record is published: the domain's mail is signed and aligned.
Functions
@spec check(map(), keyword()) :: Karta.Domains.Health.outcome()
Runs the check. input as Karta.Domains.Health.run/2 builds it.
@spec record(Karta.Domains.DKIMKey.t(), String.t(), keyword()) :: {:ok, :published | :missing | :different, [String.t()]} | {:error, String.t()}
Looks up a key's record at <selector>._domainkey.<domain> and compares
it with the key by its public key (p=): :published, :missing (no
record) or :different (records, none with the key), with the records
found; {:error, text} when the lookup failed. dns are options for
Karta.DNS.lookup/3.
@spec signing?(Karta.Domains.Health.outcome() | nil) :: boolean()
True when the outcome shows an active key whose record is published: the domain's mail is signed and aligned.