All Projects → asggo → spf

asggo / spf

Licence: other
Parse SPF record and determine if client IP is allowed to send email.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to spf

sender policy flattener
Compact large SPF chains into flat blocks of IP addresses
Stars: ✭ 25 (-10.71%)
Mutual labels:  spf, sender-policy-framework, spf-record
Maddy
✉️ Composable all-in-one mail server.
Stars: ✭ 2,800 (+9900%)
Mutual labels:  spf
Haraka
A fast, highly extensible, and event driven SMTP server
Stars: ✭ 4,069 (+14432.14%)
Mutual labels:  spf
smf-spf
It's a lightweight, fast and reliable Sendmail milter that implements the Sender Policy Framework
Stars: ✭ 12 (-57.14%)
Mutual labels:  spf
postfix-relay
Postfix SMTP relay docker image
Stars: ✭ 76 (+171.43%)
Mutual labels:  spf
checkdmarc
A parser for SPF and DMARC DNS records
Stars: ✭ 124 (+342.86%)
Mutual labels:  spf
mailauth
Command line utility and a Node.js library for email authentication
Stars: ✭ 57 (+103.57%)
Mutual labels:  spf
toolbox-wiki
Internet.nl toolbox - how-to's for modern mail security standards (DMARC, DKIM, SPF and DANE)
Stars: ✭ 96 (+242.86%)
Mutual labels:  spf
mailsec-check
Another utility to analyze state of deployment of security-related email protocols.
Stars: ✭ 37 (+32.14%)
Mutual labels:  spf
Hermes-Secure-Email-Gateway
Hermes Secure Email Gateway is a Free Open Source Ubuntu 18.04 or 20.04 Server based Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. It features the latest email authentication techniques such as SPF, DKIM and DMARC.
Stars: ✭ 35 (+25%)
Mutual labels:  spf
thundersec
ThunderSec is a security plugin for Mozilla Thunderbird that creates several pieces of additional security functionality, including DNSBL, RBL, SURBL, DKIM and SPF.
Stars: ✭ 42 (+50%)
Mutual labels:  spf
gdns
Tools to work with the Google DNS over HTTPS API in R
Stars: ✭ 23 (-17.86%)
Mutual labels:  spf-record

Package spf

Documentation

Package spf parses an SPF record and determines if a given IP address is allowed to send email based on that record. SPF handles all of the mechanisms defined at http://www.open-spf.org/SPF_Record_Syntax/.

Example

package main

import "github.com/asggo/spf"

func main() {

        SMTPClientIP := "1.1.1.1"
        envelopeFrom := "[email protected]"

        result, err := spf.SPFTest(SMTPClientIP, envelopeFrom)
        if err != nil {
                panic(err)
        }

        switch result {
        case spf.Pass:
                // allow action
        case spf.Fail:
                // deny action
        }
	//...
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].