spf
spf copied to clipboard
SPF (Sender Policy Framework) implementation in Go [mirror]
blitiri.com.ar/go/spf
spf is an open source implementation of the Sender Policy Framework (SPF) in Go.
It is used by the chasquid and maddy SMTP servers.
Example
// Check if `sender` is authorized to send from the given `ip`. The `domain`
// is used if the sender doesn't have one.
result, err := spf.CheckHostWithSender(ip, domain, sender)
if result == spf.Fail {
// Not authorized to send.
}
See the package documentation for more details.
Status
All SPF mechanisms, modifiers, and macros are supported.
The API should be considered stable. Major version changes will be announced to the mailing list (details below).
Contact
If you have any questions, comments or patches please send them to the mailing
list, [email protected]
.
To subscribe, send an email to [email protected]
.
You can also browse the archives.