Documentation
¶
Overview ¶
Package mtasts handles SMTP MTA Strict Transport Security.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct { Version string `json:"version"` // The expected behavior of a sending MTA in the case of a policy validation // failure. Mode PolicyMode `json:"mode"` // Max lifetime of the policy, in seconds. MaxAge time.Duration `json:"max_age"` // One or more patterns matching the expected MX for this domain. MX []string `json:"mx"` }
A Policy is a committment by the Policy Domain to support PKIX authenticated TLS for the specified MX hosts.
type PolicyMode ¶
type PolicyMode string
A PolicyMode describes the expected behavior of a sending MTA in the case of a policy validation failure.
const ( // Sending MTAs treat STS policy failures as a mail delivery error, and MUST // NOT deliver the message to this host. ModeEnforce PolicyMode = "enforce" // Sending MTAs merely send a report indicating policy application failures. ModeReport = "report" )
Click to show internal directories.
Click to hide internal directories.