Versions in this module Expand all Collapse all v1 v1.4.1 Jul 26, 2026 v1.1.0 Jul 21, 2026 Changes in this version + type AlignmentMechanism string + const AlignedByDKIM + const AlignedBySPF + type AuthVerdict struct + DKIM CheckResult + DMARC CheckResult + SPF CheckResult + func Check(remoteIP net.IP, senderEmail string, rawMessage []byte) *AuthVerdict + func (r *AuthVerdict) DomainAuthenticated() bool + func (r *AuthVerdict) Summary() string + type Authentication struct + DKIM []DKIMResult + DMARC DMARCResult + SPF SPFResult + func CheckAuthentication(ctx context.Context, remoteIP net.IP, envelopeFrom string, rawMessage []byte) *Authentication + func CheckAuthenticationForAuthor(ctx context.Context, remoteIP net.IP, envelopeFrom string, rawMessage []byte, ...) *Authentication + func CheckAuthenticationForAuthorWithHELO(ctx context.Context, remoteIP net.IP, envelopeFrom, heloDomain string, ...) *Authentication + func CheckAuthenticationWithHELO(ctx context.Context, remoteIP net.IP, envelopeFrom, heloDomain string, ...) *Authentication + func (a *Authentication) Passed() bool + func (a *Authentication) VerifiedDomain() *string + type AuthorIdentity struct + Address string + Domain string + func ParseAuthorIdentity(rawMessage []byte) AuthorIdentity + type CheckResult struct + Detail string + Status CheckStatus + type CheckStatus = Status + type DKIMResult struct + Aligned *bool + Detail string + Domain *string + Selector *string + Status Status + type DMARCPolicy string + const DMARCPolicyNone + const DMARCPolicyQuarantine + const DMARCPolicyReject + type DMARCResult struct + AlignedBy []AlignmentMechanism + Detail string + Domain *string + Policy *DMARCPolicy + Status Status + type SPFResult struct + Aligned *bool + Detail string + Domain *string + Status Status + type Status string + const StatusFail + const StatusNeutral + const StatusNone + const StatusPass + const StatusPermError + const StatusPolicy + const StatusSoftFail + const StatusTempError + type TXTResolver interface + LookupTXT func(ctx context.Context, name string) ([]string, error)