Something went wrong. Try again.
DMARC (RFC 7489) for Zig: the record grammar, identifier alignment, and policy discovery by DNS tree walk rather than a public suffix list.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// SPDX-FileCopyrightText: 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! Domain-based Message Authentication, Reporting, and Conformance —//! [RFC 7489](https://datatracker.ietf.org/doc/html/rfc7489).//!//! SPF and DKIM each authenticate an identifier that a reader never//! sees: the envelope sender, and whatever domain signed the message.//! DMARC is the part that ties either of those to the `From:` field a//! person actually reads, and lets the domain in it say what to do when//! nothing does.//!//! So this library consumes results rather than producing them. It takes//! an SPF result and the domain it was for, the DKIM signatures that//! verified and the domains that signed them, and the `From:` domain,//! and answers whether any of them line up — and what the domain owner//! asked for if none do.
const std = @import("std");
pub const Record = @import("Record.zig");pub const Resolver = @import("Resolver.zig");pub const Zone = @import("Zone.zig");
const discover = @import("discover.zig");const evaluation = @import("evaluate.zig");const authres = @import("authres.zig");
pub const Found = discover.Found;pub const policy = discover.policy;pub const organizationalDomain = discover.organizationalDomain;pub const max_name_len = discover.max_name_len;
pub const AuthResult = evaluation.AuthResult;pub const Identifier = evaluation.Identifier;pub const Message = evaluation.Message;pub const Disposition = evaluation.Disposition;pub const Outcome = evaluation.Outcome;pub const evaluate = evaluation.evaluate;pub const aligned = evaluation.aligned;
pub const AuthenticationResults = authres.AuthenticationResults;pub const Spf = authres.Spf;pub const Dkim = authres.Dkim;pub const Dmarc = authres.Dmarc;pub const SpfIdentity = authres.SpfIdentity;
pub const Policy = Record.Policy;pub const Alignment = Record.Alignment;
test { std.testing.refAllDecls(@This()); _ = Record; _ = Resolver; _ = Zone; _ = discover; _ = evaluation; _ = authres;}