jimmystewpot / spf

SPF (Sender Policy Framework) implementation in Go [mirror]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blitiri.com.ar/go/spf

GoDoc Build Status Go Report Card Coverage Status

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

The API is quite simple: it has only one main function to perform the SPF check, similar to the one suggested in the RFC.

// 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 use the domain.
}

See the package documentation for more details.

Status

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, chasquid@googlegroups.com.

To subscribe, send an email to chasquid+subscribe@googlegroups.com.

You can also browse the archives.

About

SPF (Sender Policy Framework) implementation in Go [mirror]

License:Other


Languages

Language:Go 100.0%