1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Files
go-chasquid-smtp/cmd/spf-check/spf-check.go
Alberto Bertogli 41d960590d smtpsrv: Use spf.CheckHostWithSender
The spf library has gained support for macros, but to process them
properly, a new function needs to be called with the full sender
address, spf.CheckHostWithSender.

This patch updates chasquid's calls to the new API.
2019-10-14 19:37:14 +01:00

24 lines
367 B
Go

// Command line tool for playing with the SPF library.
//
// Not for use in production, just development and experimentation.
// +build !coverage
package main
import (
"flag"
"fmt"
"net"
"blitiri.com.ar/go/spf"
)
func main() {
flag.Parse()
r, err := spf.CheckHostWithSender(
net.ParseIP(flag.Arg(0)), "", flag.Arg(1))
fmt.Println(r)
fmt.Println(err)
}