Karta.Domains.Health.SPF (Karta v1.0.0)

The SPF check of a domain (Karta.Domains.Health): its SPF record (RFC 7208), evaluated for each address Karta sends from with Karta.IPPools.SPF.evaluate/3.

  • No record, or more than one: :fail (the record to publish lists the sending addresses).
  • Each sending address: :pass when the record authorises it, otherwise :fail, said separately for IPv6 addresses, whose absence from records is the usual gap. With KARTA_RETURN_PATH_DOMAIN set, receivers check that domain's record instead for Karta's mail, so a gap here is only :warn.
  • A record that cannot be evaluated (permerror, more than 10 DNS lookups): :fail; 9 or 10 lookups: :warn (one more include breaks it).
  • The qualifier of all: -all and ~all pass; ?all, or no all and no redirect, :warn; +all :fail (anyone may send).

A lookup that fails (temperror) ends the check without a result.

Summary

Functions

Runs the check. input as Karta.Domains.Health.run/2 builds it.

True when the outcome shows every sending address authorised (at least one, none failing): mail from Karta with an envelope sender at the domain passes SPF.

Functions

check(input, dns)

@spec check(map(), keyword()) :: Karta.Domains.Health.outcome()

Runs the check. input as Karta.Domains.Health.run/2 builds it.

passes?(arg1)

@spec passes?(Karta.Domains.Health.outcome() | nil) :: boolean()

True when the outcome shows every sending address authorised (at least one, none failing): mail from Karta with an envelope sender at the domain passes SPF.