Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
Status CheckStatus `json:"status"`
Detail string `json:"detail,omitempty"`
}
CheckResult holds the outcome of a single authentication check.
type CheckStatus ¶
type CheckStatus string
CheckStatus represents the result of an authentication check.
const ( StatusPass CheckStatus = "pass" StatusFail CheckStatus = "fail" StatusNone CheckStatus = "none" StatusTempError CheckStatus = "temperror" StatusPermError CheckStatus = "permerror" )
type Result ¶
type Result struct {
SPF CheckResult `json:"spf"`
DKIM CheckResult `json:"dkim"`
}
Result aggregates SPF and DKIM check results.
func Check ¶
Check runs SPF and DKIM verification on an inbound message. remoteIP is the IP address of the SMTP client that connected to us. senderEmail is the envelope sender (MAIL FROM). rawMessage is the full RFC 2822 message including headers.
func (*Result) DomainAuthenticated ¶
DomainAuthenticated returns true if at least one domain-level check passed.
Click to show internal directories.
Click to hide internal directories.