smtp

package
v0.69.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package smtp aggregates the DNS records used for SMTP domain authentication and reporting (SPF, DKIM, DMARC, MTA-STS, TLSRPT).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainRecords

type DomainRecords struct {
	TLSRPT tlsrpt.Record `mapstructure:"tls-rpt"`
	DKIM   dkim.Record   `mapstructure:"dkim"`
	DMARC  dmarc.Record  `mapstructure:"dmarc"`
	MTASTS mtasts.Record `mapstructure:"mta-sts"`
	SPF    spf.Record    `mapstructure:"spf"`
}

DomainRecords holds all the DNS records required for domain authentication.

func (*DomainRecords) Render

func (r *DomainRecords) Render(data any) error

Render expands the Go template fields of the records that support it (DMARC, SPF).

type TemplatedRecord

type TemplatedRecord interface {
	Render(data any) error
	Empty() bool
}

TemplatedRecord defines an interface for domain records that support templating.

Directories

Path Synopsis
Package dkim provides utilities for working with DKIM (DomainKeys Identified Mail) records.
Package dkim provides utilities for working with DKIM (DomainKeys Identified Mail) records.
Package dmarc provides types for building a DMARC DNS TXT record.
Package dmarc provides types for building a DMARC DNS TXT record.
internal
txtchunk
Package txtchunk renders DNS TXT record values as zone-file text.
Package txtchunk renders DNS TXT record values as zone-file text.
Package mtasts provides types for building and serving an MTA-STS policy.
Package mtasts provides types for building and serving an MTA-STS policy.
Package mx provides a DNS MX record type for use with connect tunnels.
Package mx provides a DNS MX record type for use with connect tunnels.
Package spf provides types for building an SPF DNS TXT record.
Package spf provides types for building an SPF DNS TXT record.
Package tlsrpt provides types for building a TLSRPT (SMTP TLS Reporting) DNS TXT record.
Package tlsrpt provides types for building a TLSRPT (SMTP TLS Reporting) DNS TXT record.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL