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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.