Diff of the two buildlogs: -- --- b1/build.log 2024-11-30 09:34:25.573961402 +0000 +++ b2/build.log 2024-11-30 09:35:31.027008788 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 2 03:56:41 -12 2026 -I: pbuilder-time-stamp: 1767369401 +I: Current time: Sat Nov 30 23:34:27 +14 2024 +I: pbuilder-time-stamp: 1732959267 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -27,54 +27,86 @@ dpkg-source: info: unpacking golang-blitiri-go-spf_1.5.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/60666/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Nov 30 09:34 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='842437e2cb7340d9a5e211952eae8ef2' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='60666' - PS1='# ' - PS2='> ' + INVOCATION_ID=2b5ccf3eb61c44d7bb55e9a4a790e86e + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=19558 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.rFM9RFb4/pbuilderrc_oYCB --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.rFM9RFb4/b1 --logfile b1/build.log golang-blitiri-go-spf_1.5.1-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.rFM9RFb4/pbuilderrc_fsyv --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.rFM9RFb4/b2 --logfile b2/build.log golang-blitiri-go-spf_1.5.1-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos6-i386 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/60666/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -152,7 +184,7 @@ Get: 34 http://deb.debian.org/debian unstable/main i386 golang-go i386 2:1.23~2 [44.3 kB] Get: 35 http://deb.debian.org/debian unstable/main i386 golang-any i386 2:1.23~2 [5168 B] Get: 36 http://deb.debian.org/debian unstable/main i386 golang-gopkg-yaml.v3-dev all 3.0.1-3 [74.3 kB] -Fetched 64.4 MB in 1s (89.6 MB/s) +Fetched 64.4 MB in 1s (59.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19956 files and directories currently installed.) @@ -311,7 +343,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-blitiri-go-spf-1.5.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-blitiri-go-spf_1.5.1-1_source.changes +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-blitiri-go-spf-1.5.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-blitiri-go-spf_1.5.1-1_source.changes dpkg-buildpackage: info: source package golang-blitiri-go-spf dpkg-buildpackage: info: source version 1.5.1-1 dpkg-buildpackage: info: source distribution unstable @@ -329,66 +365,66 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-i686-linux-gnu && go install -trimpath -v -p 22 blitiri.com.ar/go/spf blitiri.com.ar/go/spf/internal/dnstest -internal/nettrace -internal/profilerecord + cd obj-i686-linux-gnu && go install -trimpath -v -p 10 blitiri.com.ar/go/spf blitiri.com.ar/go/spf/internal/dnstest internal/goarch -math/bits -internal/itoa -internal/unsafeheader -internal/goos -internal/godebugs internal/coverage/rtcov -unicode/utf8 +internal/cpu +internal/godebugs +internal/unsafeheader internal/byteorder -internal/race -internal/msan internal/goexperiment -cmp -sync/atomic -internal/asan -internal/cpu -internal/runtime/syscall +internal/goos internal/runtime/atomic -unicode +internal/profilerecord +internal/abi +internal/runtime/syscall runtime/internal/math +internal/race runtime/internal/sys -internal/abi +sync/atomic +internal/asan internal/chacha8rand -math +internal/itoa +internal/msan +cmp +math/bits +unicode/utf8 +internal/nettrace +unicode internal/runtime/exithook internal/bytealg +math internal/stringslite runtime -iter internal/weak +iter internal/reflectlite sync slices -internal/bisect internal/singleflight internal/testlog +internal/bisect runtime/cgo errors -internal/godebug sort +internal/godebug internal/oserror -path +strconv io math/rand/v2 vendor/golang.org/x/net/dns/dnsmessage -strconv -syscall -bytes +path strings +bytes +syscall +reflect internal/concurrent unique -net/netip regexp/syntax -reflect +net/netip regexp -internal/syscall/execenv internal/syscall/unix +internal/syscall/execenv time internal/fmtsort context @@ -402,7 +438,7 @@ blitiri.com.ar/go/spf/internal/dnstest blitiri.com.ar/go/spf dh_auto_test -O--buildsystem=golang - cd obj-i686-linux-gnu && go test -vet=off -v -p 22 blitiri.com.ar/go/spf blitiri.com.ar/go/spf/internal/dnstest + cd obj-i686-linux-gnu && go test -vet=off -v -p 10 blitiri.com.ar/go/spf blitiri.com.ar/go/spf/internal/dnstest ? blitiri.com.ar/go/spf/internal/dnstest [no test files] === RUN TestBasic spf.go:308: check "domain" 0 0 @@ -1190,6 +1226,13 @@ spf.go:397: all: fail yml_test.go:260: success: fail, matched all [test2] yml_test.go:162: suite: Regexp edge cases for "a", "mx" and "ptr" + yml_test.go:167: domain expmx.net + yml_test.go:169: SPF: [v=spf1 exp=mx:mymx.com ~all] + yml_test.go:169: MX: {10 mymx.com} + yml_test.go:167: domain mymx.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain expptr.net + yml_test.go:169: SPF: [v=spf1 exp=ptr:lalala.com ~all] yml_test.go:167: domain 4.3.2.1.in-addr.arpa yml_test.go:169: PTR: [ptr:lalala.com.] yml_test.go:167: domain ptr:lalala.com @@ -1198,13 +1241,6 @@ yml_test.go:169: SPF: [v=spf1 ip6:a::a ~all] yml_test.go:167: domain a2.net yml_test.go:169: SPF: [v=spf1 ip6:1a0a:cccc::/29 ~all] - yml_test.go:167: domain expmx.net - yml_test.go:169: SPF: [v=spf1 exp=mx:mymx.com ~all] - yml_test.go:169: MX: {10 mymx.com} - yml_test.go:167: domain mymx.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain expptr.net - yml_test.go:169: SPF: [v=spf1 exp=ptr:lalala.com ~all] yml_test.go:251: test exp-contains-ptr yml_test.go:253: checkhost 1.2.3.4 foobar@expptr.net spf.go:308: check "expptr.net" 0 0 @@ -1233,12 +1269,12 @@ spf.go:397: all: softfail yml_test.go:260: success: softfail, matched all [exp-contains-mx] yml_test.go:162: suite: Error on PTR forward resolution + yml_test.go:167: domain lalala.com + yml_test.go:169: TIMEOUT yml_test.go:167: domain domain.net yml_test.go:169: SPF: [v=spf1 ptr:lalala.com ~all] yml_test.go:167: domain 4.3.2.1.in-addr.arpa yml_test.go:169: PTR: [lalala.com] - yml_test.go:167: domain lalala.com - yml_test.go:169: TIMEOUT yml_test.go:251: test broken-ptr-forward yml_test.go:253: checkhost 1.2.3.4 foo@domain.net spf.go:308: check "domain.net" 0 0 @@ -1272,17 +1308,6 @@ spf.go:426: "exists:%{h}.com" pass, matched exists yml_test.go:260: success: pass, matched exists [resolve-h-macros] yml_test.go:162: suite: Only include the first 10 PTR results - yml_test.go:167: domain dom04.com - yml_test.go:169: A: [127.0.0.4] - yml_test.go:167: domain dom07.com - yml_test.go:169: A: [127.0.0.7] - yml_test.go:167: domain dom08.com - yml_test.go:169: A: [127.0.0.8] - yml_test.go:167: domain dom09.com - yml_test.go:169: A: [127.0.0.9] - yml_test.go:167: domain domain.net - yml_test.go:169: A: [127.0.0.1] - yml_test.go:169: SPF: [v=spf1 ptr ~all] yml_test.go:167: domain 4.3.2.1.in-addr.arpa yml_test.go:169: PTR: [dom01.com] yml_test.go:169: PTR: [dom02.com] @@ -1295,18 +1320,29 @@ yml_test.go:169: PTR: [dom09.com] yml_test.go:169: PTR: [dom10.com] yml_test.go:169: PTR: [domain.net] + yml_test.go:167: domain dom01.com + yml_test.go:169: A: [127.0.0.1] yml_test.go:167: domain dom02.com yml_test.go:169: A: [127.0.0.2] + yml_test.go:167: domain dom03.com + yml_test.go:169: A: [127.0.0.3] yml_test.go:167: domain dom06.com yml_test.go:169: A: [127.0.0.6] - yml_test.go:167: domain dom10.com - yml_test.go:169: A: [127.0.0.10] - yml_test.go:167: domain dom01.com + yml_test.go:167: domain dom07.com + yml_test.go:169: A: [127.0.0.7] + yml_test.go:167: domain domain.net yml_test.go:169: A: [127.0.0.1] - yml_test.go:167: domain dom03.com - yml_test.go:169: A: [127.0.0.3] + yml_test.go:169: SPF: [v=spf1 ptr ~all] + yml_test.go:167: domain dom04.com + yml_test.go:169: A: [127.0.0.4] yml_test.go:167: domain dom05.com yml_test.go:169: A: [127.0.0.5] + yml_test.go:167: domain dom08.com + yml_test.go:169: A: [127.0.0.8] + yml_test.go:167: domain dom09.com + yml_test.go:169: A: [127.0.0.9] + yml_test.go:167: domain dom10.com + yml_test.go:169: A: [127.0.0.10] yml_test.go:251: test only-first-10-ptr yml_test.go:253: checkhost 1.2.3.4 foo@domain.net spf.go:308: check "domain.net" 0 0 @@ -1326,22 +1362,16 @@ spf.go:397: all: softfail yml_test.go:260: success: softfail, matched all [only-first-10-ptr] yml_test.go:162: suite: Resolution limits - yml_test.go:167: domain d15 - yml_test.go:169: SPF: [v=spf1 include:d25 ~all] yml_test.go:167: domain d23 yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain d24 yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:167: domain d12 - yml_test.go:169: SPF: [v=spf1 include:d22 ~all] - yml_test.go:167: domain d14 - yml_test.go:169: SPF: [v=spf1 include:d24 ~all] - yml_test.go:167: domain d00 - yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:167: domain d11 - yml_test.go:169: SPF: [v=spf1 include:d21 ~all] + yml_test.go:167: domain bad.com + yml_test.go:169: SPF: [v=spf1 include:d00 include:d11 include:d12 include:d13 include:d14 include:d15 -all] yml_test.go:167: domain d13 yml_test.go:169: SPF: [v=spf1 include:d23 ~all] + yml_test.go:167: domain d15 + yml_test.go:169: SPF: [v=spf1 include:d25 ~all] yml_test.go:167: domain d21 yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain d22 @@ -1350,8 +1380,14 @@ yml_test.go:169: SPF: [v=spf1 all] yml_test.go:167: domain okay.com yml_test.go:169: SPF: [v=spf1 include:d11 include:d12 include:d13 include:d14 include:d15 -all] - yml_test.go:167: domain bad.com - yml_test.go:169: SPF: [v=spf1 include:d00 include:d11 include:d12 include:d13 include:d14 include:d15 -all] + yml_test.go:167: domain d00 + yml_test.go:169: SPF: [v=spf1 -all] + yml_test.go:167: domain d11 + yml_test.go:169: SPF: [v=spf1 include:d21 ~all] + yml_test.go:167: domain d12 + yml_test.go:169: SPF: [v=spf1 include:d22 ~all] + yml_test.go:167: domain d14 + yml_test.go:169: SPF: [v=spf1 include:d24 ~all] yml_test.go:251: test resolution-with-10-lookups yml_test.go:253: checkhost 1.2.3.4 foo@okay.com spf.go:308: check "okay.com" 0 0 @@ -1428,14 +1464,14 @@ spf.go:401: "include:d15" permerror, lookup limit reached yml_test.go:260: success: permerror, lookup limit reached [resolution-with-11-lookups] yml_test.go:162: suite: MX resolution limits + yml_test.go:167: domain mx10 + yml_test.go:169: SPF: [v=spf1 mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain all] yml_test.go:167: domain mx11 yml_test.go:169: SPF: [v=spf1 mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain all] yml_test.go:167: domain domain yml_test.go:169: MX: {1 blah1} yml_test.go:169: MX: {2 blah2} yml_test.go:169: MX: {3 blah3} - yml_test.go:167: domain mx10 - yml_test.go:169: SPF: [v=spf1 mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain mx:domain all] yml_test.go:251: test mx-resolution-10-terms yml_test.go:253: checkhost 1.2.3.4 foo@mx10 spf.go:308: check "mx10" 0 0 @@ -1491,12 +1527,6 @@ spf.go:373: lookup limit reached yml_test.go:260: success: permerror, lookup limit reached [mx-resolution-11-terms] yml_test.go:162: suite: NXDOMAIN tests - yml_test.go:167: domain d02 - yml_test.go:169: SPF: [v=spf1 include:doesnotexist all] - yml_test.go:167: domain d03 - yml_test.go:169: SPF: [v=spf1 redirect=doesnotexist] - yml_test.go:167: domain sender - yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain d00 yml_test.go:169: SPF: [v=spf1 mx -all] yml_test.go:169: MX: {10 doesnotexist} @@ -1505,6 +1535,12 @@ yml_test.go:169: SPF: [v=spf1 mx ip4:1.2.3.4 -all] yml_test.go:169: MX: {10 doesnotexist} yml_test.go:169: MX: {20 doesnotexist} + yml_test.go:167: domain d02 + yml_test.go:169: SPF: [v=spf1 include:doesnotexist all] + yml_test.go:167: domain d03 + yml_test.go:169: SPF: [v=spf1 redirect=doesnotexist] + yml_test.go:167: domain sender + yml_test.go:169: A: [1.2.3.4] yml_test.go:251: test one-mx-not-found yml_test.go:253: checkhost 1.2.3.4 foo@d00 spf.go:308: check "d00" 0 0 @@ -1547,32 +1583,27 @@ --- PASS: TestOurs (0.01s) === RUN TestRFC4408 yml_test.go:162: suite: Initial processing + yml_test.go:167: domain hosed3.example.com + yml_test.go:169: SPF: [v=spf1 a:example.net –all] yml_test.go:167: domain example.com yml_test.go:169: TIMEOUT - yml_test.go:167: domain example.net - yml_test.go:169: SPF: [v=spf1 -all exp=exp.example.net] yml_test.go:167: domain a.example.net yml_test.go:169: SPF: [v=spf1 -all exp=exp.example.net] - yml_test.go:167: domain exp.example.net - yml_test.go:169: TXT: [%{l}] - yml_test.go:167: domain fine.example.com - yml_test.go:169: TXT: [v=spf1 a -all] yml_test.go:167: domain a12345678901234567890123456789012345678901234567890123456789012.example.com yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:167: domain hosed.example.com - yml_test.go:169: SPF: [v=spf1 a:garbage.example.net -all] yml_test.go:167: domain hosed2.example.com yml_test.go:169: SPF: [v=spf1 €a:example.net -all] - yml_test.go:167: domain hosed3.example.com - yml_test.go:169: SPF: [v=spf1 a:example.net –all] yml_test.go:167: domain nothosed.example.com yml_test.go:169: SPF: [v=spf1 a:example.net -all] yml_test.go:169: SPF: [–] - yml_test.go:251: test domain-literal - yml_test.go:253: checkhost 1.2.3.5 foo@[1.2.3.5] - spf.go:308: check "[1.2.3.5]" 0 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [domain-literal] + yml_test.go:167: domain fine.example.com + yml_test.go:169: TXT: [v=spf1 a -all] + yml_test.go:167: domain example.net + yml_test.go:169: SPF: [v=spf1 -all exp=exp.example.net] + yml_test.go:167: domain exp.example.net + yml_test.go:169: TXT: [%{l}] + yml_test.go:167: domain hosed.example.com + yml_test.go:169: SPF: [v=spf1 a:garbage.example.net -all] yml_test.go:251: test non-ascii-non-spf yml_test.go:253: checkhost 1.2.3.4 foobar@nothosed.example.com spf.go:308: check "nothosed.example.com" 0 0 @@ -1581,27 +1612,17 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [non-ascii-non-spf] - yml_test.go:251: test emptylabel - yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A...example.com - spf.go:308: check "A...example.com" 0 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [emptylabel] - yml_test.go:251: test helo-not-fqdn - yml_test.go:253: checkhost 1.2.3.5 - spf.go:308: check "A2345678" 0 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [helo-not-fqdn] + yml_test.go:251: test longlabel + yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com + spf.go:308: check "A12345678901234567890123456789012345678901234567890123456789012.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [longlabel] yml_test.go:251: test helo-domain-literal yml_test.go:253: checkhost 1.2.3.5 spf.go:308: check "[1.2.3.5]" 0 0 spf.go:314: dns domain not found: lookup : domain not found (for testing) yml_test.go:260: success: none, no DNS record found [helo-domain-literal] - yml_test.go:251: test nolocalpart - yml_test.go:253: checkhost 1.2.3.4 @example.net - spf.go:308: check "example.net" 0 0 - spf.go:330: dns record "v=spf1 -all exp=exp.example.net" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [nolocalpart] yml_test.go:251: test non-ascii-result yml_test.go:253: checkhost 1.2.3.4 foobar@hosed3.example.com spf.go:308: check "hosed3.example.com" 0 0 @@ -1610,6 +1631,11 @@ spf.go:514: void lookup: nxdomain spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [non-ascii-result] + yml_test.go:251: test domain-literal + yml_test.go:253: checkhost 1.2.3.5 foo@[1.2.3.5] + spf.go:308: check "[1.2.3.5]" 0 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + yml_test.go:260: success: none, no DNS record found [domain-literal] yml_test.go:251: test two-spaces yml_test.go:253: checkhost 1.2.3.4 actually@fine.example.com spf.go:308: check "fine.example.com" 0 0 @@ -1623,19 +1649,23 @@ spf.go:308: check "A123456789012345678901234567890123456789012345678901234567890123.example.com" 0 0 spf.go:314: dns domain not found: lookup : domain not found (for testing) yml_test.go:260: success: none, no DNS record found [toolonglabel] - yml_test.go:251: test longlabel - yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com - spf.go:308: check "A12345678901234567890123456789012345678901234567890123456789012.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all" + yml_test.go:251: test emptylabel + yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A...example.com + spf.go:308: check "A...example.com" 0 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + yml_test.go:260: success: none, no DNS record found [emptylabel] + yml_test.go:251: test helo-not-fqdn + yml_test.go:253: checkhost 1.2.3.5 + spf.go:308: check "A2345678" 0 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + yml_test.go:260: success: none, no DNS record found [helo-not-fqdn] + yml_test.go:251: test nolocalpart + yml_test.go:253: checkhost 1.2.3.4 @example.net + spf.go:308: check "example.net" 0 0 + spf.go:330: dns record "v=spf1 -all exp=exp.example.net" spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [longlabel] + yml_test.go:260: success: fail, matched all [nolocalpart] yml_test.go:162: suite: Record lookup - yml_test.go:167: domain nospftxttimeout.example.net - yml_test.go:169: SPF: [v=spf3 !a:yahoo.com -all] - yml_test.go:169: TXT: [NONE] - yml_test.go:169: TIMEOUT - yml_test.go:167: domain alltimeout.example.net - yml_test.go:169: TIMEOUT yml_test.go:167: domain both.example.net yml_test.go:169: TXT: [v=spf1 -all] yml_test.go:169: SPF: [v=spf1 -all] @@ -1651,16 +1681,12 @@ yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:169: TXT: [NONE] yml_test.go:169: TIMEOUT - yml_test.go:251: test txttimeout - yml_test.go:253: checkhost 1.2.3.4 foo@txttimeout.example.net - spf.go:308: check "txttimeout.example.net" 0 0 - spf.go:318: dns temp error: lookup : test timeout error - yml_test.go:260: success: temperror, lookup : test timeout error [txttimeout] - yml_test.go:251: test nospftxttimeout - yml_test.go:253: checkhost 1.2.3.4 foo@nospftxttimeout.example.net - spf.go:308: check "nospftxttimeout.example.net" 0 0 - spf.go:318: dns temp error: lookup : test timeout error - yml_test.go:260: success: temperror, lookup : test timeout error [nospftxttimeout] + yml_test.go:167: domain nospftxttimeout.example.net + yml_test.go:169: SPF: [v=spf3 !a:yahoo.com -all] + yml_test.go:169: TXT: [NONE] + yml_test.go:169: TIMEOUT + yml_test.go:167: domain alltimeout.example.net + yml_test.go:169: TIMEOUT yml_test.go:251: test alltimeout yml_test.go:253: checkhost 1.2.3.4 foo@alltimeout.example.net spf.go:308: check "alltimeout.example.net" 0 0 @@ -1688,41 +1714,84 @@ spf.go:308: check "spftimeout.example.net" 0 0 spf.go:318: dns temp error: lookup : test timeout error yml_test.go:260: success: temperror, lookup : test timeout error [spftimeout] + yml_test.go:251: test txttimeout + yml_test.go:253: checkhost 1.2.3.4 foo@txttimeout.example.net + spf.go:308: check "txttimeout.example.net" 0 0 + spf.go:318: dns temp error: lookup : test timeout error + yml_test.go:260: success: temperror, lookup : test timeout error [txttimeout] + yml_test.go:251: test nospftxttimeout + yml_test.go:253: checkhost 1.2.3.4 foo@nospftxttimeout.example.net + spf.go:308: check "nospftxttimeout.example.net" 0 0 + spf.go:318: dns temp error: lookup : test timeout error + yml_test.go:260: success: temperror, lookup : test timeout error [nospftxttimeout] yml_test.go:162: suite: Selecting records yml_test.go:167: domain example2.com yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:167: domain mail.example1.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain example4.com + yml_test.go:167: domain example5.com yml_test.go:169: SPF: [v=spf1 +all] yml_test.go:169: TXT: [v=spf1 -all] + yml_test.go:169: TXT: [v=spf1 +all] + yml_test.go:167: domain example7.com + yml_test.go:169: SPF: [v=spf1 -all] + yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain example9.com yml_test.go:169: SPF: [v=SpF1 ~all] - yml_test.go:167: domain example1.com - yml_test.go:169: SPF: [v=spf1] - yml_test.go:167: domain example5.com + yml_test.go:167: domain example3.com + yml_test.go:169: SPF: [v=spf10] + yml_test.go:169: SPF: [v=spf1 mx] + yml_test.go:169: MX: {0 mail.example1.com} + yml_test.go:167: domain mail.example1.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain example4.com yml_test.go:169: SPF: [v=spf1 +all] yml_test.go:169: TXT: [v=spf1 -all] - yml_test.go:169: TXT: [v=spf1 +all] yml_test.go:167: domain example6.com yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:169: SPF: [V=sPf1 +all] - yml_test.go:167: domain example7.com - yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain example8.com yml_test.go:169: SPF: [V=spf1 -all] yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:169: TXT: [v=spf1 +all] - yml_test.go:167: domain example3.com - yml_test.go:169: SPF: [v=spf10] - yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:169: MX: {0 mail.example1.com} + yml_test.go:167: domain example1.com + yml_test.go:169: SPF: [v=spf1] + yml_test.go:251: test multispf2 + yml_test.go:253: checkhost 1.2.3.4 foo@example8.com + spf.go:308: check "example8.com" 0 0 + spf.go:330: dns record "v=spf1 +all" + spf.go:397: all: pass + yml_test.go:260: success: pass, matched all [multispf2] + yml_test.go:251: test nospf + yml_test.go:253: checkhost 1.2.3.4 foo@mail.example1.com + spf.go:308: check "mail.example1.com" 0 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + yml_test.go:260: success: none, no DNS record found [nospf] + yml_test.go:251: test case-insensitive + yml_test.go:253: checkhost 1.2.3.4 foo@example9.com + spf.go:308: check "example9.com" 0 0 + spf.go:330: dns record "v=SpF1 ~all" + spf.go:397: all: softfail + yml_test.go:260: success: softfail, matched all [case-insensitive] yml_test.go:251: test nospace1 yml_test.go:253: checkhost 1.2.3.4 foo@example2.com spf.go:308: check "example2.com" 0 0 spf.go:330: dns record "" yml_test.go:260: success: none, no DNS record found [nospace1] + yml_test.go:251: test spfoverride + yml_test.go:253: checkhost 1.2.3.4 foo@example4.com + spf.go:308: check "example4.com" 0 0 + spf.go:330: dns record "v=spf1 -all" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [spfoverride] + yml_test.go:251: test multitxt1 + yml_test.go:253: checkhost 1.2.3.4 foo@example5.com + spf.go:308: check "example5.com" 0 0 + spf.go:322: multiple dns records + yml_test.go:260: success: permerror, multiple matching DNS records [multitxt1] + yml_test.go:251: test multispf1 + yml_test.go:253: checkhost 1.2.3.4 foo@example7.com + spf.go:308: check "example7.com" 0 0 + spf.go:322: multiple dns records + yml_test.go:260: success: permerror, multiple matching DNS records [multispf1] yml_test.go:251: test empty yml_test.go:253: checkhost 1.2.3.4 foo@example1.com spf.go:308: check "example1.com" 0 0 @@ -1738,77 +1807,38 @@ spf.go:831: mx match: 1.2.3.4, 1.2.3.4, [, ] spf.go:411: "mx" pass, matched mx yml_test.go:260: success: pass, matched mx [nospace2] - yml_test.go:251: test spfoverride - yml_test.go:253: checkhost 1.2.3.4 foo@example4.com - spf.go:308: check "example4.com" 0 0 - spf.go:330: dns record "v=spf1 -all" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [spfoverride] - yml_test.go:251: test multitxt1 - yml_test.go:253: checkhost 1.2.3.4 foo@example5.com - spf.go:308: check "example5.com" 0 0 - spf.go:322: multiple dns records - yml_test.go:260: success: permerror, multiple matching DNS records [multitxt1] - yml_test.go:251: test nospf - yml_test.go:253: checkhost 1.2.3.4 foo@mail.example1.com - spf.go:308: check "mail.example1.com" 0 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [nospf] yml_test.go:251: test multitxt2 yml_test.go:253: checkhost 1.2.3.4 foo@example6.com spf.go:308: check "example6.com" 0 0 spf.go:322: multiple dns records yml_test.go:260: success: permerror, multiple matching DNS records [multitxt2] - yml_test.go:251: test multispf1 - yml_test.go:253: checkhost 1.2.3.4 foo@example7.com - spf.go:308: check "example7.com" 0 0 - spf.go:322: multiple dns records - yml_test.go:260: success: permerror, multiple matching DNS records [multispf1] - yml_test.go:251: test multispf2 - yml_test.go:253: checkhost 1.2.3.4 foo@example8.com - spf.go:308: check "example8.com" 0 0 - spf.go:330: dns record "v=spf1 +all" - spf.go:397: all: pass - yml_test.go:260: success: pass, matched all [multispf2] - yml_test.go:251: test case-insensitive - yml_test.go:253: checkhost 1.2.3.4 foo@example9.com - spf.go:308: check "example9.com" 0 0 - spf.go:330: dns record "v=SpF1 ~all" - spf.go:397: all: softfail - yml_test.go:260: success: softfail, matched all [case-insensitive] yml_test.go:162: suite: Record evaluation - yml_test.go:167: domain t10.example.com - yml_test.go:169: SPF: [v=spf1 a:mail.example...com -all] - yml_test.go:167: domain t11.example.com - yml_test.go:169: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] - yml_test.go:167: domain t12.example.com - yml_test.go:169: SPF: [v=spf1 a:%{H}.bar -all] - yml_test.go:167: domain t1.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 -all moo] - yml_test.go:167: domain t3.example.com - yml_test.go:169: SPF: [v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:167: domain t7.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4] - yml_test.go:167: domain t9.example.com - yml_test.go:169: SPF: [v=spf1 a:foo-bar -all] - yml_test.go:167: domain t6.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 redirect=t2.example.com] yml_test.go:167: domain t8.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 redirect:t2.example.com] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain t2.example.com - yml_test.go:169: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] + yml_test.go:167: domain t9.example.com + yml_test.go:169: SPF: [v=spf1 a:foo-bar -all] + yml_test.go:167: domain t12.example.com + yml_test.go:169: SPF: [v=spf1 a:%{H}.bar -all] + yml_test.go:167: domain t3.example.com + yml_test.go:169: SPF: [v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:167: domain t4.example.com yml_test.go:169: SPF: [v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all] + yml_test.go:167: domain t2.example.com + yml_test.go:169: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:167: domain t5.example.com yml_test.go:169: SPF: [v=spf1 redirect=t5.example.com ~all] - yml_test.go:251: test redirect-after-mechanisms1 - yml_test.go:253: checkhost 1.2.3.4 foo@t5.example.com - spf.go:308: check "t5.example.com" 0 0 - spf.go:330: dns record "v=spf1 redirect=t5.example.com ~all" - spf.go:397: all: softfail - yml_test.go:260: success: softfail, matched all [redirect-after-mechanisms1] + yml_test.go:167: domain t6.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 redirect=t2.example.com] + yml_test.go:167: domain t10.example.com + yml_test.go:169: SPF: [v=spf1 a:mail.example...com -all] + yml_test.go:167: domain t11.example.com + yml_test.go:169: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain t1.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 -all moo] yml_test.go:251: test invalid-domain-empty-label yml_test.go:253: checkhost 1.2.3.4 foo@t10.example.com spf.go:308: check "t10.example.com" 0 0 @@ -1833,12 +1863,12 @@ spf.go:330: dns record "v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all" spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [modifier-charset-bad1] - yml_test.go:251: test modifier-charset-bad2 - yml_test.go:253: checkhost 1.2.3.4 foo@t4.example.com - spf.go:308: check "t4.example.com" 0 0 - spf.go:330: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [modifier-charset-bad2] + yml_test.go:251: test redirect-after-mechanisms1 + yml_test.go:253: checkhost 1.2.3.4 foo@t5.example.com + spf.go:308: check "t5.example.com" 0 0 + spf.go:330: dns record "v=spf1 redirect=t5.example.com ~all" + spf.go:397: all: softfail + yml_test.go:260: success: softfail, matched all [redirect-after-mechanisms1] yml_test.go:251: test default-result yml_test.go:253: checkhost 1.2.3.5 foo@t7.example.com spf.go:308: check "t7.example.com" 0 0 @@ -1853,7 +1883,15 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [invalid-domain-long] + yml_test.go:251: test modifier-charset-bad2 + yml_test.go:253: checkhost 1.2.3.4 foo@t4.example.com + spf.go:308: check "t4.example.com" 0 0 + spf.go:330: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [modifier-charset-bad2] yml_test.go:162: suite: ALL mechanism syntax + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 -all.] yml_test.go:167: domain e2.example.com @@ -1864,8 +1902,12 @@ yml_test.go:169: SPF: [v=spf1 ?all] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 all -all] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] + yml_test.go:251: test all-double + yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 all -all" + spf.go:397: all: pass + yml_test.go:260: success: pass, matched all [all-double] yml_test.go:251: test all-dot yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com spf.go:308: check "e1.example.com" 0 0 @@ -1890,13 +1932,11 @@ spf.go:330: dns record "v=spf1 ?all" spf.go:397: all: neutral yml_test.go:260: success: neutral, matched all [all-neutral] - yml_test.go:251: test all-double - yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 all -all" - spf.go:397: all: pass - yml_test.go:260: success: pass, matched all [all-double] yml_test.go:162: suite: PTR mechanism syntax + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 ptr/0 -all] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 ptr:example.com -all] yml_test.go:167: domain 4.3.2.1.in-addr.arpa yml_test.go:169: PTR: [e3.example.com] yml_test.go:169: PTR: [e4.example.com] @@ -1913,10 +1953,18 @@ yml_test.go:169: SPF: [v=spf1 ptr:] yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 ptr/0 -all] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 ptr:example.com -all] + yml_test.go:251: test ptr-empty-domain + yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 ptr:" + spf.go:421: "ptr:" permerror, invalid domain + yml_test.go:260: success: permerror, invalid domain [ptr-empty-domain] + yml_test.go:251: test ptr-cidr + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 ptr/0 -all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [ptr-cidr] yml_test.go:251: test ptr-match-target yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -1955,88 +2003,99 @@ spf.go:604: ptr match: "e3.example.com." spf.go:421: "ptr" pass, matched ptr yml_test.go:260: success: pass, matched ptr [ptr-match-ip6] - yml_test.go:251: test ptr-empty-domain - yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 ptr:" - spf.go:421: "ptr:" permerror, invalid domain - yml_test.go:260: success: permerror, invalid domain [ptr-empty-domain] - yml_test.go:251: test ptr-cidr - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 ptr/0 -all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [ptr-cidr] yml_test.go:162: suite: A mechanism syntax - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 a:example.com:8080] yml_test.go:167: domain e8b.example.com yml_test.go:169: A: [1.2.3.5] yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] yml_test.go:169: SPF: [v=spf1 a//64 -all] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 a:abc.123] - yml_test.go:167: domain e6a.example.com - yml_test.go:169: SPF: [v=spf1 a/33 -all] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 a//129 -all] - yml_test.go:167: domain e8a.example.com - yml_test.go:169: A: [1.2.3.5] - yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:169: SPF: [v=spf1 a/24 -all] yml_test.go:167: domain e10.example.com yml_test.go:169: SPF: [v=spf1 a:foo.example.com/24] - yml_test.go:167: domain e11.example.com - yml_test.go:169: SPF: [v=spf1 a:foo:bar/baz.example.com] - yml_test.go:167: domain foo:bar/baz.example.com - yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e2.example.com yml_test.go:169: A: [1.1.1.1] yml_test.go:169: AAAA: [1234::2] yml_test.go:169: SPF: [v=spf1 a/0 -all] - yml_test.go:167: domain e8e.example.com - yml_test.go:169: A: [1.2.3.5] - yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:169: SPF: [v=spf1 a/24/64 -all] - yml_test.go:167: domain e12.example.com - yml_test.go:169: SPF: [v=spf1 a:example.-com] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 a:111.222.33.44] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 a:abc.123] yml_test.go:167: domain e5a.example.com yml_test.go:169: SPF: [v=spf1 a:museum] + yml_test.go:167: domain e6a.example.com + yml_test.go:169: SPF: [v=spf1 a/33 -all] + yml_test.go:167: domain e2a.example.com + yml_test.go:169: AAAA: [1234::1] + yml_test.go:169: SPF: [v=spf1 a//0 -all] + yml_test.go:167: domain e2b.example.com + yml_test.go:169: A: [1.1.1.1] + yml_test.go:169: SPF: [v=spf1 a//0 -all] yml_test.go:167: domain e13.example.com yml_test.go:169: SPF: [v=spf1 a:] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 a/0 -all] - yml_test.go:167: domain e8.example.com + yml_test.go:167: domain e12.example.com + yml_test.go:169: SPF: [v=spf1 a:example.-com] + yml_test.go:167: domain foo.example.xn--zckzah + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain e8a.example.com yml_test.go:169: A: [1.2.3.5] yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:169: SPF: [v=spf1 a/24//64 -all] - yml_test.go:167: domain foo.example.xn--zckzah + yml_test.go:169: SPF: [v=spf1 a/24 -all] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 a:example.com:8080] + yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 a//33 -all] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 a:foo.example.com] yml_test.go:167: domain ipv6.example.com yml_test.go:169: AAAA: [1234::1] yml_test.go:169: A: [1.1.1.1] yml_test.go:169: SPF: [v=spf1 a -all] - yml_test.go:167: domain e2a.example.com - yml_test.go:169: AAAA: [1234::1] - yml_test.go:169: SPF: [v=spf1 a//0 -all] - yml_test.go:167: domain e2b.example.com - yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: SPF: [v=spf1 a//0 -all] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 a:foo.example.com] - yml_test.go:167: domain e5b.example.com - yml_test.go:169: SPF: [v=spf1 a:museum.] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 a:111.222.33.44] + yml_test.go:167: domain e8.example.com + yml_test.go:169: A: [1.2.3.5] + yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:169: SPF: [v=spf1 a/24//64 -all] + yml_test.go:167: domain e8e.example.com + yml_test.go:169: A: [1.2.3.5] + yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:169: SPF: [v=spf1 a/24/64 -all] yml_test.go:167: domain foo.example.com yml_test.go:169: A: [1.1.1.1] yml_test.go:169: A: [1.2.3.5] - yml_test.go:167: domain mail.example.com + yml_test.go:167: domain e11.example.com + yml_test.go:169: SPF: [v=spf1 a:foo:bar/baz.example.com] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 a//33 -all] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 a//129 -all] + yml_test.go:167: domain foo:bar/baz.example.com yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e14.example.com yml_test.go:169: SPF: [v=spf1 a:foo.example.xn--zckzah -all] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 a/0 -all] + yml_test.go:167: domain e5b.example.com + yml_test.go:169: SPF: [v=spf1 a:museum.] + yml_test.go:251: test a-cidr6 + yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//33 -all" + spf.go:747: masks on "a//33", "e6.example.com": "e6.example.com" [, /33] + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-cidr6] + yml_test.go:251: test a-cidr6-0-nxdomain + yml_test.go:253: checkhost 1234::1 foo@e2b.example.com + spf.go:308: check "e2b.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//0 -all" + spf.go:747: masks on "a//0", "e2b.example.com": "e2b.example.com" [, /0] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-cidr6-0-nxdomain] + yml_test.go:251: test a-multi-ip1 + yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:foo.example.com/24" + spf.go:747: masks on "a:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] + spf.go:406: "a:foo.example.com/24" pass, matched a + yml_test.go:260: success: pass, matched a [a-multi-ip1] yml_test.go:251: test a-nxdomain yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com spf.go:308: check "e1.example.com" 0 0 @@ -2045,14 +2104,36 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [a-nxdomain] - yml_test.go:251: test a-dash-in-toplabel - yml_test.go:253: checkhost 1.2.3.4 foo@e14.example.com - spf.go:308: check "e14.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:foo.example.xn--zckzah -all" - spf.go:747: masks on "a:foo.example.xn--zckzah", "e14.example.com": "foo.example.xn--zckzah" [, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] - spf.go:406: "a:foo.example.xn--zckzah" pass, matched a - yml_test.go:260: success: pass, matched a [a-dash-in-toplabel] + yml_test.go:251: test a-cidr4-0 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/0 -all" + spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] + spf.go:768: a match: 1.2.3.4, 1.1.1.1, [/0, ] + spf.go:406: "a/0" pass, matched a + yml_test.go:260: success: pass, matched a [a-cidr4-0] + yml_test.go:251: test a-cidr6-0-ip6 + yml_test.go:253: checkhost 1234::1 foo@e2a.example.com + spf.go:308: check "e2a.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//0 -all" + spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] + spf.go:768: a match: 1234::1, 1234::1, [, /0] + spf.go:406: "a//0" pass, matched a + yml_test.go:260: success: pass, matched a [a-cidr6-0-ip6] + yml_test.go:251: test a-cidr4-0-ip6 + yml_test.go:253: checkhost 1234::1 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/0 -all" + spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-cidr4-0-ip6] + yml_test.go:251: test a-cidr6-0-ip4 + yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:308: check "e2a.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//0 -all" + spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4] yml_test.go:251: test a-bad-cidr6 yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com spf.go:308: check "e7.example.com" 0 0 @@ -2060,6 +2141,14 @@ spf.go:747: masks on "a//129", "e7.example.com": "" [, ] spf.go:406: "a//129" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [a-bad-cidr6] + yml_test.go:251: test a-multi-ip2 + yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:foo.example.com/24" + spf.go:747: masks on "a:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] + spf.go:406: "a:foo.example.com/24" pass, matched a + yml_test.go:260: success: pass, matched a [a-multi-ip2] yml_test.go:251: test a-dual-cidr-ip4-err yml_test.go:253: checkhost 1.2.3.4 foo@e8e.example.com spf.go:308: check "e8e.example.com" 0 0 @@ -2067,14 +2156,6 @@ spf.go:747: masks on "a/24/64", "e8e.example.com": "" [, ] spf.go:406: "a/24/64" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [a-dual-cidr-ip4-err] - yml_test.go:251: test a-cidr4-0 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/0 -all" - spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] - spf.go:768: a match: 1.2.3.4, 1.1.1.1, [/0, ] - spf.go:406: "a/0" pass, matched a - yml_test.go:260: success: pass, matched a [a-cidr4-0] yml_test.go:251: test a-ip6-dualstack yml_test.go:253: checkhost 1234::1 foo@ipv6.example.com spf.go:308: check "ipv6.example.com" 0 0 @@ -2083,35 +2164,28 @@ spf.go:768: a match: 1234::1, 1234::1, [, ] spf.go:406: "a" pass, matched a yml_test.go:260: success: pass, matched a [a-ip6-dualstack] - yml_test.go:251: test a-cidr6-0-ip4 - yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:308: check "e2a.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//0 -all" - spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4] - yml_test.go:251: test a-cidr6-0-nxdomain - yml_test.go:253: checkhost 1234::1 foo@e2b.example.com - spf.go:308: check "e2b.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//0 -all" - spf.go:747: masks on "a//0", "e2b.example.com": "e2b.example.com" [, /0] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr6-0-nxdomain] - yml_test.go:251: test a-cidr6-0-ip4mapped - yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:308: check "e2a.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//0 -all" - spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] + yml_test.go:251: test a-dual-cidr-ip4-default + yml_test.go:253: checkhost 1.2.3.4 foo@e8b.example.com + spf.go:308: check "e8b.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//64 -all" + spf.go:747: masks on "a//64", "e8b.example.com": "e8b.example.com" [, /64] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4mapped] - yml_test.go:251: test a-cidr6 - yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//33 -all" - spf.go:747: masks on "a//33", "e6.example.com": "e6.example.com" [, /33] - spf.go:514: void lookup: nxdomain + yml_test.go:260: success: fail, matched all [a-dual-cidr-ip4-default] + yml_test.go:251: test a-dual-cidr-ip6-default + yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com + spf.go:308: check "e8a.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/24 -all" + spf.go:747: masks on "a/24", "e8a.example.com": "e8a.example.com" [/24, ] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr6] + yml_test.go:260: success: fail, matched all [a-dual-cidr-ip6-default] + yml_test.go:251: test a-dash-in-toplabel + yml_test.go:253: checkhost 1.2.3.4 foo@e14.example.com + spf.go:308: check "e14.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:foo.example.xn--zckzah -all" + spf.go:747: masks on "a:foo.example.xn--zckzah", "e14.example.com": "foo.example.xn--zckzah" [, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] + spf.go:406: "a:foo.example.xn--zckzah" pass, matched a + yml_test.go:260: success: pass, matched a [a-dash-in-toplabel] yml_test.go:251: test a-bad-cidr4 yml_test.go:253: checkhost 1.2.3.4 foo@e6a.example.com spf.go:308: check "e6a.example.com" 0 0 @@ -2119,44 +2193,6 @@ spf.go:747: masks on "a/33", "e6a.example.com": "" [, ] spf.go:406: "a/33" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [a-bad-cidr4] - yml_test.go:251: test a-dual-cidr-ip6-match - yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/24//64 -all" - spf.go:747: masks on "a/24//64", "e8.example.com": "e8.example.com" [/24, /64] - spf.go:768: a match: 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, [/24, /64] - spf.go:406: "a/24//64" pass, matched a - yml_test.go:260: success: pass, matched a [a-dual-cidr-ip6-match] - yml_test.go:251: test a-cidr4-0-ip6 - yml_test.go:253: checkhost 1234::1 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/0 -all" - spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr4-0-ip6] - yml_test.go:251: test a-dual-cidr-ip4-default - yml_test.go:253: checkhost 1.2.3.4 foo@e8b.example.com - spf.go:308: check "e8b.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//64 -all" - spf.go:747: masks on "a//64", "e8b.example.com": "e8b.example.com" [, /64] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-dual-cidr-ip4-default] - yml_test.go:251: test a-multi-ip1 - yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:foo.example.com/24" - spf.go:747: masks on "a:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] - spf.go:406: "a:foo.example.com/24" pass, matched a - yml_test.go:260: success: pass, matched a [a-multi-ip1] - yml_test.go:251: test a-multi-ip2 - yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:foo.example.com/24" - spf.go:747: masks on "a:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] - spf.go:406: "a:foo.example.com/24" pass, matched a - yml_test.go:260: success: pass, matched a [a-multi-ip2] yml_test.go:251: test a-dual-cidr-ip4-match yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com spf.go:308: check "e8.example.com" 0 0 @@ -2165,52 +2201,70 @@ spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, /64] spf.go:406: "a/24//64" pass, matched a yml_test.go:260: success: pass, matched a [a-dual-cidr-ip4-match] - yml_test.go:251: test a-cidr6-0-ip6 - yml_test.go:253: checkhost 1234::1 foo@e2a.example.com + yml_test.go:251: test a-dual-cidr-ip6-match + yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/24//64 -all" + spf.go:747: masks on "a/24//64", "e8.example.com": "e8.example.com" [/24, /64] + spf.go:768: a match: 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, [/24, /64] + spf.go:406: "a/24//64" pass, matched a + yml_test.go:260: success: pass, matched a [a-dual-cidr-ip6-match] + yml_test.go:251: test a-cidr6-0-ip4mapped + yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 spf.go:330: dns record "v=spf1 a//0 -all" spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] - spf.go:768: a match: 1234::1, 1234::1, [, /0] - spf.go:406: "a//0" pass, matched a - yml_test.go:260: success: pass, matched a [a-cidr6-0-ip6] - yml_test.go:251: test a-dual-cidr-ip6-default - yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com - spf.go:308: check "e8a.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/24 -all" - spf.go:747: masks on "a/24", "e8a.example.com": "e8a.example.com" [/24, ] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-dual-cidr-ip6-default] + yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4mapped] yml_test.go:162: suite: Include mechanism semantics and syntax - yml_test.go:167: domain ip8.example.com - yml_test.go:169: TIMEOUT + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 include:erehwon.example.com -all] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 include:ip5.example.com/24 -all] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain ip7.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.7 ?all] + yml_test.go:167: domain erehwon.example.com + yml_test.go:169: TXT: [v=spfl am not an SPF record] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 include:e6.example.com -all] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 include +all] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 include: -all] - yml_test.go:167: domain ip6.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.6 ~all] yml_test.go:167: domain ip5.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.5 -all] - yml_test.go:167: domain erehwon.example.com - yml_test.go:169: TXT: [v=spfl am not an SPF record] + yml_test.go:167: domain ip6.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.6 ~all] + yml_test.go:167: domain ip8.example.com + yml_test.go:169: TIMEOUT yml_test.go:167: domain e2.example.com yml_test.go:169: SPF: [v=spf1 include:ip6.example.com all] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 include:ip5.example.com ~all] + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 include: -all] yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 include:ip7.example.com -all] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 include:ip8.example.com -all] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 include:e6.example.com -all] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 include:erehwon.example.com -all] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 include:ip5.example.com/24 -all] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 include:ip5.example.com ~all] - yml_test.go:167: domain ip7.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.7 ?all] + yml_test.go:251: test include-fail + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:ip5.example.com ~all" + spf.go:308: check "ip5.example.com" 1 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.5 -all" + spf.go:397: all: fail + spf.go:397: all: softfail + yml_test.go:260: success: softfail, matched all [include-fail] + yml_test.go:251: test include-softfail + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:ip6.example.com all" + spf.go:308: check "ip6.example.com" 1 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.6 ~all" + spf.go:397: all: softfail + spf.go:397: all: pass + yml_test.go:260: success: pass, matched all [include-softfail] yml_test.go:251: test include-neutral yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com spf.go:308: check "e3.example.com" 0 0 @@ -2228,13 +2282,6 @@ spf.go:318: dns temp error: lookup : test timeout error spf.go:401: "include:ip8.example.com" temperror, lookup : test timeout error yml_test.go:260: success: temperror, lookup : test timeout error [include-temperror] - yml_test.go:251: test include-cidr - yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com - spf.go:308: check "e9.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:ip5.example.com/24 -all" - spf.go:874: macro contains / - spf.go:401: "include:ip5.example.com/24" permerror, invalid macro - yml_test.go:260: success: permerror, invalid macro [include-cidr] yml_test.go:251: test include-none yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com spf.go:308: check "e7.example.com" 0 0 @@ -2243,15 +2290,14 @@ spf.go:330: dns record "" spf.go:401: "include:erehwon.example.com" permerror, no DNS record found yml_test.go:260: success: permerror, no DNS record found [include-none] - yml_test.go:251: test include-fail - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:ip5.example.com ~all" - spf.go:308: check "ip5.example.com" 1 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.5 -all" - spf.go:397: all: fail - spf.go:397: all: softfail - yml_test.go:260: success: softfail, matched all [include-fail] + yml_test.go:251: test include-empty-domain + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 include: -all" + spf.go:308: check "" 1 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + spf.go:401: "include:" permerror, no DNS record found + yml_test.go:260: success: permerror, no DNS record found [include-empty-domain] yml_test.go:251: test include-permerror yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 @@ -2267,82 +2313,73 @@ spf.go:330: dns record "v=spf1 include +all" spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [include-syntax-error] - yml_test.go:251: test include-empty-domain - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 include: -all" - spf.go:308: check "" 1 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - spf.go:401: "include:" permerror, no DNS record found - yml_test.go:260: success: permerror, no DNS record found [include-empty-domain] - yml_test.go:251: test include-softfail - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:ip6.example.com all" - spf.go:308: check "ip6.example.com" 1 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.6 ~all" - spf.go:397: all: softfail - spf.go:397: all: pass - yml_test.go:260: success: pass, matched all [include-softfail] + yml_test.go:251: test include-cidr + yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com + spf.go:308: check "e9.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:ip5.example.com/24 -all" + spf.go:874: macro contains / + spf.go:401: "include:ip5.example.com/24" permerror, invalid macro + yml_test.go:260: success: permerror, invalid macro [include-cidr] yml_test.go:162: suite: MX mechanism syntax - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e13.example.com - yml_test.go:169: SPF: [v=spf1 mx: -all] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 mx/0 -all] - yml_test.go:169: MX: {0 e1.example.com} yml_test.go:167: domain e2b.example.com yml_test.go:169: A: [1.1.1.1] yml_test.go:169: MX: {0 e2b.example.com} yml_test.go:169: SPF: [v=spf1 mx//0 -all] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 mx:example.com:8080] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 mx:foo.example.com] + yml_test.go:167: domain e6a.example.com + yml_test.go:169: SPF: [v=spf1 mx/33 -all] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 mx] + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain foo1.example.com yml_test.go:169: A: [1.1.1.1] yml_test.go:169: A: [1.2.3.5] - yml_test.go:167: domain e11.example.com - yml_test.go:169: SPF: [v=spf1 mx:foo:bar/baz.example.com] - yml_test.go:167: domain e2a.example.com - yml_test.go:169: AAAA: [1234::1] - yml_test.go:169: MX: {0 e2a.example.com} - yml_test.go:169: SPF: [v=spf1 mx//0 -all] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 mx:abc.123] - yml_test.go:167: domain e6a.example.com - yml_test.go:169: SPF: [v=spf1 mx/33 -all] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 mx//129 -all] - yml_test.go:167: domain e10.example.com - yml_test.go:169: SPF: [v=spf1 mx:foo.example.com/24] yml_test.go:167: domain e12.example.com yml_test.go:169: SPF: [v=spf1 mx:example.-com] yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] yml_test.go:169: MX: {0 } yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:167: domain e2.example.com - yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: AAAA: [1234::2] - yml_test.go:169: MX: {0 e2.example.com} - yml_test.go:169: SPF: [v=spf1 mx/0 -all] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 mx:foo.example.com] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 mx//33 -all] - yml_test.go:167: domain foo.example.com - yml_test.go:169: MX: {0 foo1.example.com} yml_test.go:167: domain foo:bar/baz.example.com yml_test.go:169: MX: {0 foo:bar/baz.example.com} yml_test.go:169: A: [1.2.3.4] - yml_test.go:251: test mx-bad-cidr4 - yml_test.go:253: checkhost 1.2.3.4 foo@e6a.example.com - spf.go:308: check "e6a.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx/33 -all" - spf.go:780: masks on "mx/33", "e6a.example.com": "" [, ] - spf.go:411: "mx/33" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [mx-bad-cidr4] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 mx:abc.123] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 mx//129 -all] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 mx:example.com:8080] + yml_test.go:167: domain e10.example.com + yml_test.go:169: SPF: [v=spf1 mx:foo.example.com/24] + yml_test.go:167: domain foo.example.com + yml_test.go:169: MX: {0 foo1.example.com} + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 mx/0 -all] + yml_test.go:169: MX: {0 e1.example.com} + yml_test.go:167: domain e2.example.com + yml_test.go:169: A: [1.1.1.1] + yml_test.go:169: AAAA: [1234::2] + yml_test.go:169: MX: {0 e2.example.com} + yml_test.go:169: SPF: [v=spf1 mx/0 -all] + yml_test.go:167: domain e2a.example.com + yml_test.go:169: AAAA: [1234::1] + yml_test.go:169: MX: {0 e2a.example.com} + yml_test.go:169: SPF: [v=spf1 mx//0 -all] + yml_test.go:167: domain e11.example.com + yml_test.go:169: SPF: [v=spf1 mx:foo:bar/baz.example.com] + yml_test.go:167: domain e13.example.com + yml_test.go:169: SPF: [v=spf1 mx: -all] + yml_test.go:251: test mx-cidr6-0-ip4mapped + yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:308: check "e2a.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx//0 -all" + spf.go:780: masks on "mx//0", "e2a.example.com": "e2a.example.com" [, /0] + spf.go:828: mx ips: [1234::1] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [mx-cidr6-0-ip4mapped] yml_test.go:251: test mx-cidr6-0-ip6 yml_test.go:253: checkhost 1234::1 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 @@ -2352,14 +2389,14 @@ spf.go:831: mx match: 1234::1, 1234::1, [, /0] spf.go:411: "mx//0" pass, matched mx yml_test.go:260: success: pass, matched mx [mx-cidr6-0-ip6] - yml_test.go:251: test mx-cidr6-0-nxdomain - yml_test.go:253: checkhost 1234::1 foo@e2b.example.com - spf.go:308: check "e2b.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx//0 -all" - spf.go:780: masks on "mx//0", "e2b.example.com": "e2b.example.com" [, /0] - spf.go:828: mx ips: [1.1.1.1] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-cidr6-0-nxdomain] + yml_test.go:251: test mx-implicit + yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx" + spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [mx-implicit] yml_test.go:251: test mx-cidr6 yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 @@ -2368,22 +2405,21 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [mx-cidr6] - yml_test.go:251: test mx-bad-cidr6 - yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com - spf.go:308: check "e7.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx//129 -all" - spf.go:780: masks on "mx//129", "e7.example.com": "" [, ] - spf.go:411: "mx//129" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [mx-bad-cidr6] - yml_test.go:251: test mx-cidr4-0 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 + yml_test.go:251: test mx-bad-cidr4 + yml_test.go:253: checkhost 1.2.3.4 foo@e6a.example.com + spf.go:308: check "e6a.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx/33 -all" + spf.go:780: masks on "mx/33", "e6a.example.com": "" [, ] + spf.go:411: "mx/33" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [mx-bad-cidr4] + yml_test.go:251: test mx-nxdomain + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 spf.go:330: dns record "v=spf1 mx/0 -all" - spf.go:780: masks on "mx/0", "e2.example.com": "e2.example.com" [/0, ] - spf.go:828: mx ips: [1.1.1.1 1234::2] - spf.go:831: mx match: 1.2.3.4, 1.1.1.1, [/0, ] - spf.go:411: "mx/0" pass, matched mx - yml_test.go:260: success: pass, matched mx [mx-cidr4-0] + spf.go:780: masks on "mx/0", "e1.example.com": "e1.example.com" [/0, ] + spf.go:828: mx ips: [] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [mx-nxdomain] yml_test.go:251: test mx-cidr4-0-ip6 yml_test.go:253: checkhost 1234::1 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -2392,22 +2428,30 @@ spf.go:828: mx ips: [1.1.1.1 1234::2] spf.go:397: all: fail yml_test.go:260: success: fail, matched all [mx-cidr4-0-ip6] - yml_test.go:251: test mx-cidr6-0-ip4mapped - yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:308: check "e2a.example.com" 0 0 + yml_test.go:251: test mx-cidr4-0 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx/0 -all" + spf.go:780: masks on "mx/0", "e2.example.com": "e2.example.com" [/0, ] + spf.go:828: mx ips: [1.1.1.1 1234::2] + spf.go:831: mx match: 1.2.3.4, 1.1.1.1, [/0, ] + spf.go:411: "mx/0" pass, matched mx + yml_test.go:260: success: pass, matched mx [mx-cidr4-0] + yml_test.go:251: test mx-cidr6-0-nxdomain + yml_test.go:253: checkhost 1234::1 foo@e2b.example.com + spf.go:308: check "e2b.example.com" 0 0 spf.go:330: dns record "v=spf1 mx//0 -all" - spf.go:780: masks on "mx//0", "e2a.example.com": "e2a.example.com" [, /0] - spf.go:828: mx ips: [1234::1] + spf.go:780: masks on "mx//0", "e2b.example.com": "e2b.example.com" [, /0] + spf.go:828: mx ips: [1.1.1.1] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-cidr6-0-ip4mapped] - yml_test.go:251: test mx-implicit - yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx" - spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [mx-implicit] + yml_test.go:260: success: fail, matched all [mx-cidr6-0-nxdomain] + yml_test.go:251: test mx-bad-cidr6 + yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com + spf.go:308: check "e7.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx//129 -all" + spf.go:780: masks on "mx//129", "e7.example.com": "" [, ] + spf.go:411: "mx//129" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [mx-bad-cidr6] yml_test.go:251: test mx-multi-ip1 yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com spf.go:308: check "e10.example.com" 0 0 @@ -2426,14 +2470,6 @@ spf.go:831: mx match: 1.2.3.4, 1.2.3.5, [/24, ] spf.go:411: "mx:foo.example.com/24" pass, matched mx yml_test.go:260: success: pass, matched mx [mx-multi-ip2] - yml_test.go:251: test mx-nxdomain - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx/0 -all" - spf.go:780: masks on "mx/0", "e1.example.com": "e1.example.com" [/0, ] - spf.go:828: mx ips: [] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-nxdomain] yml_test.go:251: test mx-cidr6-0-ip4 yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 @@ -2451,24 +2487,24 @@ spf.go:444: fallback to neutral yml_test.go:260: success: neutral, [mx-empty] yml_test.go:162: suite: EXISTS mechanism syntax - yml_test.go:167: domain mail6.example.com - yml_test.go:169: AAAA: [CAFE:BABE::4] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 exists:mail.example.com] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 exists:mail6.example.com -all] yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain err.example.com - yml_test.go:169: TIMEOUT - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 exists:] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 exists:mail6.example.com -all] yml_test.go:167: domain e2.example.com yml_test.go:169: SPF: [v=spf1 exists] yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 exists:mail.example.com/24] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 exists:mail.example.com] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 exists:err.example.com -all] + yml_test.go:167: domain mail6.example.com + yml_test.go:169: AAAA: [CAFE:BABE::4] + yml_test.go:167: domain err.example.com + yml_test.go:169: TIMEOUT + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 exists:] yml_test.go:251: test exists-empty-domain yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com spf.go:308: check "e1.example.com" 0 0 @@ -2515,26 +2551,33 @@ spf.go:426: "exists:err.example.com" temperror, lookup : test timeout error yml_test.go:260: success: temperror, lookup : test timeout error [exists-dnserr] yml_test.go:162: suite: IP4 mechanism syntax - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/032 -all] + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4:8080] yml_test.go:167: domain e9.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.1.1.1/0 -all] yml_test.go:167: domain e2.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/32 -all] yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/33 -all] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/032 -all] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 ip4] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4//32] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4:8080] + yml_test.go:251: test cidr4-32 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.4/32 -all" + spf.go:527: ip match: 1.2.3.4/32 contains 1.2.3.4 + spf.go:416: "ip4:1.2.3.4/32" pass, matched ip + yml_test.go:260: success: pass, matched ip [cidr4-32] yml_test.go:251: test cidr4-33 yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com spf.go:308: check "e3.example.com" 0 0 @@ -2547,6 +2590,18 @@ spf.go:330: dns record "v=spf1 ip4:1.2.3" spf.go:416: "ip4:1.2.3" permerror, invalid ipX value yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-short] + yml_test.go:251: test bad-ip4-port + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.4:8080" + spf.go:416: "ip4:1.2.3.4:8080" permerror, invalid ipX value + yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-port] + yml_test.go:251: test ip4-dual-cidr + yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.4//32" + spf.go:416: "ip4:1.2.3.4//32" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [ip4-dual-cidr] yml_test.go:251: test ip4-mapped-ip6 yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com spf.go:308: check "e7.example.com" 0 0 @@ -2561,32 +2616,15 @@ spf.go:527: ip match: 0.0.0.0/0 contains 1.2.3.4 spf.go:416: "ip4:1.1.1.1/0" pass, matched ip yml_test.go:260: success: pass, matched ip [cidr4-0] - yml_test.go:251: test cidr4-32 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.4/32 -all" - spf.go:527: ip match: 1.2.3.4/32 contains 1.2.3.4 - spf.go:416: "ip4:1.2.3.4/32" pass, matched ip - yml_test.go:260: success: pass, matched ip [cidr4-32] yml_test.go:251: test bare-ip4 yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 spf.go:330: dns record "v=spf1 ip4" spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [bare-ip4] - yml_test.go:251: test bad-ip4-port - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.4:8080" - spf.go:416: "ip4:1.2.3.4:8080" permerror, invalid ipX value - yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-port] - yml_test.go:251: test ip4-dual-cidr - yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.4//32" - spf.go:416: "ip4:1.2.3.4//32" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [ip4-dual-cidr] yml_test.go:162: suite: IP6 mechanism syntax + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 -all ip6] yml_test.go:167: domain e2.example.com @@ -2599,39 +2637,12 @@ yml_test.go:169: SPF: [v=spf1 ip6:CAFE:BABE:8000::/33] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 ip6::CAFE::BABE] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:251: test cidr6-0-ip4 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [cidr6-0-ip4] - yml_test.go:251: test cidr6-0 - yml_test.go:253: checkhost deaf:babe::cab:fee foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" - spf.go:527: ip match: ::/0 contains deaf:babe::cab:fee - spf.go:416: "ip6:::1.1.1.1/0" pass, matched ip - yml_test.go:260: success: pass, matched ip [cidr6-0] yml_test.go:251: test cidr6-129 yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com spf.go:308: check "e3.example.com" 0 0 spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/129" spf.go:416: "ip6:::1.1.1.1/129" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [cidr6-129] - yml_test.go:251: test cidr6-ip4 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [cidr6-ip4] - yml_test.go:251: test cidr6-bad - yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1//33" - spf.go:416: "ip6:::1.1.1.1//33" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [cidr6-bad] yml_test.go:251: test cidr6-33 yml_test.go:253: checkhost cafe:babe:8000:: foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 @@ -2645,89 +2656,155 @@ spf.go:330: dns record "v=spf1 ip6:CAFE:BABE:8000::/33" spf.go:444: fallback to neutral yml_test.go:260: success: neutral, [cidr6-33-ip4] + yml_test.go:251: test cidr6-ip4 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [cidr6-ip4] + yml_test.go:251: test cidr6-0 + yml_test.go:253: checkhost deaf:babe::cab:fee foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" + spf.go:527: ip match: ::/0 contains deaf:babe::cab:fee + spf.go:416: "ip6:::1.1.1.1/0" pass, matched ip + yml_test.go:260: success: pass, matched ip [cidr6-0] + yml_test.go:251: test cidr6-bad + yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1//33" + spf.go:416: "ip6:::1.1.1.1//33" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [cidr6-bad] yml_test.go:251: test ip6-bad1 yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 spf.go:330: dns record "v=spf1 ip6::CAFE::BABE" spf.go:416: "ip6::CAFE::BABE" permerror, invalid ipX value yml_test.go:260: success: permerror, invalid ipX value [ip6-bad1] + yml_test.go:251: test cidr6-0-ip4 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [cidr6-0-ip4] yml_test.go:162: suite: Semantics of exp and other modifiers - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=exp2.example.com] - yml_test.go:167: domain exp3.example.com - yml_test.go:169: TXT: [Correct!] + yml_test.go:167: domain exp1.example.com + yml_test.go:169: TXT: [No-see-um] + yml_test.go:167: domain e11msg.example.com + yml_test.go:169: TXT: [Answer a fool according to his folly.] + yml_test.go:169: TXT: [Do not answer a fool according to his folly.] + yml_test.go:167: domain e13.example.com + yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all] yml_test.go:167: domain e19.example.com yml_test.go:169: SPF: [v=spf1 default=pass] - yml_test.go:167: domain badexp.example.com - yml_test.go:169: TXT: [Explanation] + yml_test.go:167: domain e21msg.example.com + yml_test.go:169: TIMEOUT + yml_test.go:167: domain e22.example.com + yml_test.go:169: SPF: [v=spf1 exp=mail.example.com -all] + yml_test.go:167: domain e21.example.com + yml_test.go:169: SPF: [v=spf1 exp=e21msg.example.com -all] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=exp4.example.com] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 -all foo=%abc] + yml_test.go:167: domain e13msg.example.com + yml_test.go:169: TXT: [The %{x}-files.] + yml_test.go:167: domain e14.example.com + yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] + yml_test.go:167: domain e20.example.com + yml_test.go:169: SPF: [v=spf1 default=+] + yml_test.go:167: domain e16.example.com + yml_test.go:169: SPF: [v=spf1 exp=-all] + yml_test.go:167: domain twoexp.example.com + yml_test.go:169: TXT: [one] + yml_test.go:169: TXT: [two] + yml_test.go:167: domain exp2.example.com + yml_test.go:169: TXT: [See me.] + yml_test.go:167: domain exp4.example.com + yml_test.go:169: TXT: [%{l} in implementation] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 =all] yml_test.go:167: domain e11.example.com yml_test.go:169: SPF: [v=spf1 -all exp=e11msg.example.com] yml_test.go:167: domain e12.example.com yml_test.go:169: SPF: [v=spf1 exp= -all] - yml_test.go:167: domain e13.example.com - yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all] yml_test.go:167: domain e15.example.com yml_test.go:169: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] - yml_test.go:167: domain e21msg.example.com - yml_test.go:169: TIMEOUT - yml_test.go:167: domain e22.example.com - yml_test.go:169: SPF: [v=spf1 exp=mail.example.com -all] - yml_test.go:167: domain twoexp.example.com - yml_test.go:169: TXT: [one] - yml_test.go:169: TXT: [two] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] - yml_test.go:167: domain exp4.example.com - yml_test.go:169: TXT: [%{l} in implementation] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 1up=foo] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] - yml_test.go:167: domain exp2.example.com - yml_test.go:169: TXT: [See me.] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=exp4.example.com] - yml_test.go:167: domain e11msg.example.com - yml_test.go:169: TXT: [Answer a fool according to his folly.] - yml_test.go:169: TXT: [Do not answer a fool according to his folly.] - yml_test.go:167: domain e13msg.example.com - yml_test.go:169: TXT: [The %{x}-files.] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=exp2.example.com] + yml_test.go:167: domain exp3.example.com + yml_test.go:169: TXT: [Correct!] yml_test.go:167: domain tworecs.example.com yml_test.go:169: SPF: [v=spf1 exp=twoexp.example.com -all] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 -all foo=%abc] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] yml_test.go:167: domain e10.example.com yml_test.go:169: SPF: [v=spf1 redirect=erehwon.example.com] - yml_test.go:167: domain e14.example.com - yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] + yml_test.go:167: domain badexp.example.com + yml_test.go:169: TXT: [Explanation] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 1up=foo] yml_test.go:167: domain e17.example.com yml_test.go:169: SPF: [v=spf1 redirect=-all ?all] yml_test.go:167: domain e18.example.com yml_test.go:169: SPF: [v=spf1 ?all redirect=] - yml_test.go:167: domain e21.example.com - yml_test.go:169: SPF: [v=spf1 exp=e21msg.example.com -all] - yml_test.go:167: domain e16.example.com - yml_test.go:169: SPF: [v=spf1 exp=-all] yml_test.go:167: domain nonascii.example.com yml_test.go:169: SPF: [v=spf1 exp=badexp.example.com -all] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:167: domain exp1.example.com - yml_test.go:169: TXT: [No-see-um] - yml_test.go:167: domain e20.example.com - yml_test.go:169: SPF: [v=spf1 default=+] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:251: test redirect-none + yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 redirect=erehwon.example.com" + spf.go:308: check "erehwon.example.com" 1 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + spf.go:434: "redirect=erehwon.example.com": permerror, no DNS record found + yml_test.go:260: success: permerror, no DNS record found [redirect-none] + yml_test.go:251: test dorky-sentinel + yml_test.go:253: checkhost 1.2.3.4 Macro Error@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=exp4.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [dorky-sentinel] + yml_test.go:251: test exp-multiple-txt + yml_test.go:253: checkhost 1.2.3.4 foo@e11.example.com + spf.go:308: check "e11.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e11msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [exp-multiple-txt] + yml_test.go:251: test explanation-syntax-error + yml_test.go:253: checkhost 1.2.3.4 foo@e13.example.com + spf.go:308: check "e13.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=e13msg.example.com -all" + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [explanation-syntax-error] yml_test.go:251: test redirect-twice yml_test.go:253: checkhost 1.2.3.4 foo@e15.example.com spf.go:308: check "e15.example.com" 0 0 spf.go:330: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" spf.go:353: too many redirects yml_test.go:260: success: permerror, invalid domain [redirect-twice] + yml_test.go:251: test non-ascii-exp + yml_test.go:253: checkhost 1.2.3.4 foobar@nonascii.example.com + spf.go:308: check "nonascii.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=badexp.example.com -all" + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [non-ascii-exp] + yml_test.go:251: test two-exp-records + yml_test.go:253: checkhost 1.2.3.4 foobar@tworecs.example.com + spf.go:308: check "tworecs.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=twoexp.example.com -all" + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [two-exp-records] yml_test.go:251: test redirect-cancels-exp yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com spf.go:308: check "e1.example.com" 0 0 @@ -2751,19 +2828,13 @@ spf.go:434: "redirect=e4.example.com": fail, matched all spf.go:397: all: fail yml_test.go:260: success: fail, matched all [include-ignores-exp] - yml_test.go:251: test exp-multiple-txt - yml_test.go:253: checkhost 1.2.3.4 foo@e11.example.com - spf.go:308: check "e11.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e11msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-multiple-txt] - yml_test.go:251: test exp-no-txt - yml_test.go:253: checkhost 1.2.3.4 foo@e22.example.com - spf.go:308: check "e22.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=mail.example.com -all" + yml_test.go:251: test exp-dns-error + yml_test.go:253: checkhost 1.2.3.4 foo@e21.example.com + spf.go:308: check "e21.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=e21msg.example.com -all" spf.go:430: exp= ignored spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-no-txt] + yml_test.go:260: success: fail, matched all [exp-dns-error] yml_test.go:251: test redirect-cancels-prior-exp yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com spf.go:308: check "e3.example.com" 0 0 @@ -2774,141 +2845,104 @@ spf.go:397: all: fail spf.go:434: "redirect=e4.example.com": fail, matched all yml_test.go:260: success: fail, matched all [redirect-cancels-prior-exp] - yml_test.go:251: test empty-modifier-name - yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 =all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [empty-modifier-name] - yml_test.go:251: test dorky-sentinel - yml_test.go:253: checkhost 1.2.3.4 Macro Error@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=exp4.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [dorky-sentinel] - yml_test.go:251: test exp-dns-error - yml_test.go:253: checkhost 1.2.3.4 foo@e21.example.com - spf.go:308: check "e21.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=e21msg.example.com -all" - spf.go:430: exp= ignored - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-dns-error] - yml_test.go:251: test non-ascii-exp - yml_test.go:253: checkhost 1.2.3.4 foobar@nonascii.example.com - spf.go:308: check "nonascii.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=badexp.example.com -all" - spf.go:430: exp= ignored - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [non-ascii-exp] - yml_test.go:251: test two-exp-records - yml_test.go:253: checkhost 1.2.3.4 foobar@tworecs.example.com - spf.go:308: check "tworecs.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=twoexp.example.com -all" - spf.go:430: exp= ignored - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [two-exp-records] - yml_test.go:251: test redirect-none - yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 redirect=erehwon.example.com" - spf.go:308: check "erehwon.example.com" 1 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - spf.go:434: "redirect=erehwon.example.com": permerror, no DNS record found - yml_test.go:260: success: permerror, no DNS record found [redirect-none] yml_test.go:251: test invalid-modifier yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 spf.go:330: dns record "v=spf1 1up=foo" spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [invalid-modifier] - yml_test.go:251: test explanation-syntax-error - yml_test.go:253: checkhost 1.2.3.4 foo@e13.example.com - spf.go:308: check "e13.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=e13msg.example.com -all" + yml_test.go:251: test empty-modifier-name + yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 =all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [empty-modifier-name] + yml_test.go:251: test exp-no-txt + yml_test.go:253: checkhost 1.2.3.4 foo@e22.example.com + spf.go:308: check "e22.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=mail.example.com -all" spf.go:430: exp= ignored spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [explanation-syntax-error] + yml_test.go:260: success: fail, matched all [exp-no-txt] yml_test.go:162: suite: Macro expansion rules - yml_test.go:167: domain e1e.example.com - yml_test.go:169: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=e6msg.example.com] - yml_test.go:167: domain 40.218.168.192.in-addr.arpa - yml_test.go:169: PTR: [mx.example.com] - yml_test.go:167: domain e10.example.com - yml_test.go:169: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] - yml_test.go:167: domain _spfh.example.com - yml_test.go:169: SPF: [v=spf1 -a:%{h} +all] - yml_test.go:167: domain example.com.d.spf.example.com - yml_test.go:169: SPF: [v=spf1 redirect=a.spf.example.com] - yml_test.go:167: domain e6msg.example.com - yml_test.go:169: TXT: [connect from %{p}] - yml_test.go:167: domain mx.e7.example.com - yml_test.go:169: A: [192.168.218.42] - yml_test.go:167: domain e12.example.com - yml_test.go:169: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] - yml_test.go:167: domain msg.example.com - yml_test.go:169: TXT: [This is a test.] - yml_test.go:167: domain macro%percent space%20url-space.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain 42.218.168.192.in-addr.arpa - yml_test.go:169: PTR: [mx.example.com] - yml_test.go:169: PTR: [mx.e7.example.com] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 a:%{a}.example.com -all] yml_test.go:167: domain 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa yml_test.go:169: PTR: [mx.example.com] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] - yml_test.go:167: domain example.com - yml_test.go:169: A: [192.168.90.76] - yml_test.go:169: SPF: [v=spf1 redirect=%{d}.d.spf.example.com.] - yml_test.go:167: domain e1a.example.com - yml_test.go:169: SPF: [v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all] - yml_test.go:167: domain 40.218.168.192.example.com - yml_test.go:169: TXT: [Connections from %{c} not authorized.] - yml_test.go:167: domain somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.example.com - yml_test.go:169: TXT: [Congratulations! That was tricky.] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=e4msg.example.com] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=msg8.%{D2}] yml_test.go:167: domain msg8.example.com yml_test.go:169: TXT: [http://example.com/why.html?l=%{L}] - yml_test.go:167: domain 1.2.3.4.gladstone.philip.user.example.com - yml_test.go:169: A: [127.0.0.2] yml_test.go:167: domain bar.foo.user.example.com yml_test.go:169: A: [127.0.0.2] - yml_test.go:167: domain msgbas2x.cos.example.com - yml_test.go:169: A: [192.168.218.40] yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=%{r}.example.com] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=%{ir}.example.com] + yml_test.go:167: domain msg.example.com + yml_test.go:169: TXT: [This is a test.] + yml_test.go:167: domain e1t.example.com + yml_test.go:169: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] yml_test.go:167: domain mx.example.com.ok.example.com yml_test.go:169: A: [127.0.0.2] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 a:%{H} -all] + yml_test.go:167: domain o.spf.example.com + yml_test.go:169: SPF: [v=spf1 ip4:192.168.218.40] yml_test.go:167: domain a.spf.example.com yml_test.go:169: SPF: [v=spf1 include:o.spf.example.com. ~all] yml_test.go:167: domain exp.example.com yml_test.go:169: SPF: [v=spf1 exp=msg.example.com. -all] - yml_test.go:167: domain somewhat.long.exp.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=e4msg.example.com] + yml_test.go:167: domain mx.e7.example.com + yml_test.go:169: A: [192.168.218.42] + yml_test.go:167: domain e12.example.com + yml_test.go:169: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] + yml_test.go:167: domain example.com.d.spf.example.com + yml_test.go:169: SPF: [v=spf1 redirect=a.spf.example.com] + yml_test.go:167: domain e6msg.example.com + yml_test.go:169: TXT: [connect from %{p}] + yml_test.go:167: domain 40.218.168.192.in-addr.arpa + yml_test.go:169: PTR: [mx.example.com] yml_test.go:167: domain 41.218.168.192.in-addr.arpa yml_test.go:169: PTR: [mx.example.com] yml_test.go:167: domain mx.e7.example.com.should.example.com yml_test.go:169: A: [127.0.0.2] - yml_test.go:167: domain e11.example.com - yml_test.go:169: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] - yml_test.go:167: domain o.spf.example.com - yml_test.go:169: SPF: [v=spf1 ip4:192.168.218.40] - yml_test.go:167: domain e1t.example.com - yml_test.go:169: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] + yml_test.go:167: domain 1.2.3.4.gladstone.philip.user.example.com + yml_test.go:169: A: [127.0.0.2] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=%{r}.example.com] + yml_test.go:167: domain example.com + yml_test.go:169: A: [192.168.90.76] + yml_test.go:169: SPF: [v=spf1 redirect=%{d}.d.spf.example.com.] + yml_test.go:167: domain e1e.example.com + yml_test.go:169: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=e6msg.example.com] + yml_test.go:167: domain e10.example.com + yml_test.go:169: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] + yml_test.go:167: domain msgbas2x.cos.example.com + yml_test.go:169: A: [192.168.218.40] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 a:%{a}.example.com -all] + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=msg8.%{D2}] + yml_test.go:167: domain _spfh.example.com + yml_test.go:169: SPF: [v=spf1 -a:%{h} +all] + yml_test.go:167: domain somewhat.long.exp.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] + yml_test.go:167: domain somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.example.com + yml_test.go:169: TXT: [Congratulations! That was tricky.] yml_test.go:167: domain e4msg.example.com yml_test.go:169: TXT: [%{c} is queried as %{ir}.%{v}.arpa] + yml_test.go:167: domain 42.218.168.192.in-addr.arpa + yml_test.go:169: PTR: [mx.example.com] + yml_test.go:169: PTR: [mx.e7.example.com] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 a:%{H} -all] + yml_test.go:167: domain e11.example.com + yml_test.go:169: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=%{ir}.example.com] + yml_test.go:167: domain macro%percent space%20url-space.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain 40.218.168.192.example.com + yml_test.go:169: TXT: [Connections from %{c} not authorized.] yml_test.go:167: domain mx.example.com yml_test.go:169: A: [192.168.218.41] yml_test.go:169: A: [192.168.218.42] @@ -2916,12 +2950,71 @@ yml_test.go:169: AAAA: [CAFE:BABE::3] yml_test.go:167: domain 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa yml_test.go:169: PTR: [mx.example.com] - yml_test.go:251: test invalid-trailing-macro-char - yml_test.go:253: checkhost 192.168.218.40 test@e1t.example.com - spf.go:308: check "e1t.example.com" 0 0 - spf.go:330: dns record "v=spf1 exists:foo%.sbl.example.com ?all" - spf.go:426: "exists:foo%.sbl.example.com" permerror, invalid macro - yml_test.go:260: success: permerror, invalid macro [invalid-trailing-macro-char] + yml_test.go:167: domain e1a.example.com + yml_test.go:169: SPF: [v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all] + yml_test.go:251: test p-macro-ip6-novalid + yml_test.go:253: checkhost cafe:babe::1 test@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [p-macro-ip6-novalid] + yml_test.go:251: test p-macro-ip6-valid + yml_test.go:253: checkhost cafe:babe::3 test@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [p-macro-ip6-valid] + yml_test.go:251: test hello-domain-literal + yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com + spf.go:308: check "e9.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:%{H} -all" + spf.go:747: masks on "a:%{H}", "e9.example.com": "%{H}" [, ] + spf.go:923: macro "H": ["H" "H" "" "" ""] + spf.go:1020: macro expanded "%{H}" to "%5B192.168.218.40%5D" + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [hello-domain-literal] + yml_test.go:251: test trailing-dot-exp + yml_test.go:253: checkhost 192.168.218.40 test@exp.example.com + spf.go:308: check "exp.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=msg.example.com. -all" + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [trailing-dot-exp] + yml_test.go:251: test invalid-embedded-macro-char + yml_test.go:253: checkhost 192.168.218.40 test@e1e.example.com + spf.go:308: check "e1e.example.com" 0 0 + spf.go:330: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" + spf.go:426: "exists:foo%(ir).sbl.example.com" permerror, invalid macro + yml_test.go:260: success: permerror, invalid macro [invalid-embedded-macro-char] + yml_test.go:251: test exp-txt-macro-char + yml_test.go:253: checkhost 192.168.218.40 test@e3.example.com + spf.go:308: check "e3.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=%{ir}.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [exp-txt-macro-char] + yml_test.go:251: test domain-name-truncation + yml_test.go:253: checkhost 192.168.218.40 test@somewhat.long.exp.example.com + spf.go:308: check "somewhat.long.exp.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [domain-name-truncation] + yml_test.go:251: test upper-macro + yml_test.go:253: checkhost 192.168.218.42 jack&jill=up@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=msg8.%{D2}" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [upper-macro] + yml_test.go:251: test macro-multiple-delimiters + yml_test.go:253: checkhost 1.2.3.4 foo-bar+zip+quux@e12.example.com + spf.go:308: check "e12.example.com" 0 0 + spf.go:330: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" + spf.go:923: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] + spf.go:923: macro "d2": ["d2" "d" "2" "" ""] + spf.go:1020: macro expanded "%{l2r+-}.user.%{d2}" to "bar.foo.user.example.com" + spf.go:640: exists match: 127.0.0.2 + spf.go:426: "exists:%{l2r+-}.user.%{d2}" pass, matched exists + yml_test.go:260: success: pass, matched exists [macro-multiple-delimiters] yml_test.go:251: test v-macro-ip6 yml_test.go:253: checkhost cafe:babe::1 test@e4.example.com spf.go:308: check "e4.example.com" 0 0 @@ -2936,6 +3029,18 @@ spf.go:923: macro "a": [] spf.go:406: "a:%{a}.example.com" permerror, invalid macro yml_test.go:260: success: permerror, invalid macro [undef-macro] + yml_test.go:251: test p-macro-ip4-valid + yml_test.go:253: checkhost 192.168.218.41 test@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [p-macro-ip4-valid] + yml_test.go:251: test v-macro-ip4 + yml_test.go:253: checkhost 192.168.218.40 test@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e4msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [v-macro-ip4] yml_test.go:251: test p-macro-ip4-novalid yml_test.go:253: checkhost 192.168.218.40 test@e6.example.com spf.go:308: check "e6.example.com" 0 0 @@ -2953,44 +3058,6 @@ spf.go:640: exists match: 127.0.0.2 spf.go:426: "exists:%{i}.%{l2r-}.user.%{d2}" pass, matched exists yml_test.go:260: success: pass, matched exists [macro-reverse-split-on-dash] - yml_test.go:251: test trailing-dot-exp - yml_test.go:253: checkhost 192.168.218.40 test@exp.example.com - spf.go:308: check "exp.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=msg.example.com. -all" - spf.go:430: exp= ignored - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [trailing-dot-exp] - yml_test.go:251: test p-macro-ip6-valid - yml_test.go:253: checkhost cafe:babe::3 test@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip6-valid] - yml_test.go:251: test macro-multiple-delimiters - yml_test.go:253: checkhost 1.2.3.4 foo-bar+zip+quux@e12.example.com - spf.go:308: check "e12.example.com" 0 0 - spf.go:330: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" - spf.go:923: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] - spf.go:923: macro "d2": ["d2" "d" "2" "" ""] - spf.go:1020: macro expanded "%{l2r+-}.user.%{d2}" to "bar.foo.user.example.com" - spf.go:640: exists match: 127.0.0.2 - spf.go:426: "exists:%{l2r+-}.user.%{d2}" pass, matched exists - yml_test.go:260: success: pass, matched exists [macro-multiple-delimiters] - yml_test.go:251: test require-valid-helo - yml_test.go:253: checkhost 1.2.3.4 test@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all" - spf.go:923: macro "d2": ["d2" "d" "2" "" ""] - spf.go:1020: macro expanded "_spfh.%{d2}" to "_spfh.example.com" - spf.go:308: check "_spfh.example.com" 1 0 - spf.go:330: dns record "v=spf1 -a:%{h} +all" - spf.go:747: masks on "a:%{h}", "_spfh.example.com": "%{h}" [, ] - spf.go:923: macro "h": ["h" "h" "" "" ""] - spf.go:1020: macro expanded "%{h}" to "OEMCOMPUTER" - spf.go:514: void lookup: nxdomain - spf.go:397: all: pass - spf.go:401: "include:_spfh.%{d2}" fail, matched all - yml_test.go:260: success: fail, matched all [require-valid-helo] yml_test.go:251: test trailing-dot-domain yml_test.go:253: checkhost 192.168.218.40 test@example.com spf.go:308: check "example.com" 0 0 @@ -3015,24 +3082,21 @@ spf.go:330: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" spf.go:426: "exists:%(ir).sbl.example.com" permerror, invalid macro yml_test.go:260: success: permerror, invalid macro [invalid-macro-char] - yml_test.go:251: test exp-txt-macro-char - yml_test.go:253: checkhost 192.168.218.40 test@e3.example.com - spf.go:308: check "e3.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=%{ir}.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-txt-macro-char] - yml_test.go:251: test v-macro-ip4 - yml_test.go:253: checkhost 192.168.218.40 test@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e4msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [v-macro-ip4] - yml_test.go:251: test p-macro-ip4-valid - yml_test.go:253: checkhost 192.168.218.41 test@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip4-valid] + yml_test.go:251: test invalid-trailing-macro-char + yml_test.go:253: checkhost 192.168.218.40 test@e1t.example.com + spf.go:308: check "e1t.example.com" 0 0 + spf.go:330: dns record "v=spf1 exists:foo%.sbl.example.com ?all" + spf.go:426: "exists:foo%.sbl.example.com" permerror, invalid macro + yml_test.go:260: success: permerror, invalid macro [invalid-trailing-macro-char] + yml_test.go:251: test macro-mania-in-domain + yml_test.go:253: checkhost 1.2.3.4 test@e1a.example.com + spf.go:308: check "e1a.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all" + spf.go:747: masks on "a:macro%%percent%_%_space%-url-space.example.com", "e1a.example.com": "macro%%percent%_%_space%-url-space.example.com" [, ] + spf.go:1020: macro expanded "macro%%percent%_%_space%-url-space.example.com" to "macro%percent space%20url-space.example.com" + spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] + spf.go:406: "a:macro%%percent%_%_space%-url-space.example.com" pass, matched a + yml_test.go:260: success: pass, matched a [macro-mania-in-domain] yml_test.go:251: test invalid-hello-macro yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com spf.go:308: check "e9.example.com" 0 0 @@ -3043,50 +3107,25 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [invalid-hello-macro] - yml_test.go:251: test hello-domain-literal - yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com - spf.go:308: check "e9.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:%{H} -all" - spf.go:747: masks on "a:%{H}", "e9.example.com": "%{H}" [, ] - spf.go:923: macro "H": ["H" "H" "" "" ""] - spf.go:1020: macro expanded "%{H}" to "%5B192.168.218.40%5D" + yml_test.go:251: test require-valid-helo + yml_test.go:253: checkhost 1.2.3.4 test@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all" + spf.go:923: macro "d2": ["d2" "d" "2" "" ""] + spf.go:1020: macro expanded "_spfh.%{d2}" to "_spfh.example.com" + spf.go:308: check "_spfh.example.com" 1 0 + spf.go:330: dns record "v=spf1 -a:%{h} +all" + spf.go:747: masks on "a:%{h}", "_spfh.example.com": "%{h}" [, ] + spf.go:923: macro "h": ["h" "h" "" "" ""] + spf.go:1020: macro expanded "%{h}" to "OEMCOMPUTER" spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [hello-domain-literal] - yml_test.go:251: test invalid-embedded-macro-char - yml_test.go:253: checkhost 192.168.218.40 test@e1e.example.com - spf.go:308: check "e1e.example.com" 0 0 - spf.go:330: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" - spf.go:426: "exists:foo%(ir).sbl.example.com" permerror, invalid macro - yml_test.go:260: success: permerror, invalid macro [invalid-embedded-macro-char] - yml_test.go:251: test macro-mania-in-domain - yml_test.go:253: checkhost 1.2.3.4 test@e1a.example.com - spf.go:308: check "e1a.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all" - spf.go:747: masks on "a:macro%%percent%_%_space%-url-space.example.com", "e1a.example.com": "macro%%percent%_%_space%-url-space.example.com" [, ] - spf.go:1020: macro expanded "macro%%percent%_%_space%-url-space.example.com" to "macro%percent space%20url-space.example.com" - spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] - spf.go:406: "a:macro%%percent%_%_space%-url-space.example.com" pass, matched a - yml_test.go:260: success: pass, matched a [macro-mania-in-domain] - yml_test.go:251: test domain-name-truncation - yml_test.go:253: checkhost 192.168.218.40 test@somewhat.long.exp.example.com - spf.go:308: check "somewhat.long.exp.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [domain-name-truncation] - yml_test.go:251: test p-macro-ip6-novalid - yml_test.go:253: checkhost cafe:babe::1 test@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip6-novalid] - yml_test.go:251: test upper-macro - yml_test.go:253: checkhost 192.168.218.42 jack&jill=up@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=msg8.%{D2}" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [upper-macro] + spf.go:397: all: pass + spf.go:401: "include:_spfh.%{d2}" fail, matched all + yml_test.go:260: success: fail, matched all [require-valid-helo] yml_test.go:162: suite: Processing limits + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] + yml_test.go:169: A: [1.2.3.6] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 mx] yml_test.go:169: MX: {0 mail.example.com} @@ -3105,6 +3144,15 @@ yml_test.go:169: SPF: [v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all] yml_test.go:169: A: [1.2.3.8] yml_test.go:169: MX: {10 e6.example.com} + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all] + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain inc.example.com + yml_test.go:169: SPF: [v=spf1 a a a a a a a a] + yml_test.go:169: A: [1.2.3.10] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all] + yml_test.go:169: A: [1.2.3.21] yml_test.go:167: domain e10.example.com yml_test.go:169: SPF: [v=spf1 a -all] yml_test.go:169: A: [1.2.3.1] @@ -3121,9 +3169,12 @@ yml_test.go:169: A: [1.2.3.12] yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] - yml_test.go:169: A: [1.2.3.6] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 include:e3.example.com] + yml_test.go:169: A: [1.2.3.7] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 include:e2.example.com] + yml_test.go:169: A: [1.2.3.8] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 ptr] yml_test.go:169: A: [1.2.3.5] @@ -3142,60 +3193,6 @@ yml_test.go:167: domain e7.example.com yml_test.go:169: SPF: [v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all] yml_test.go:169: A: [1.2.3.20] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all] - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain inc.example.com - yml_test.go:169: SPF: [v=spf1 a a a a a a a a] - yml_test.go:169: A: [1.2.3.10] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all] - yml_test.go:169: A: [1.2.3.21] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 include:e3.example.com] - yml_test.go:169: A: [1.2.3.7] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 include:e2.example.com] - yml_test.go:169: A: [1.2.3.8] - yml_test.go:251: test redirect-loop - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 1 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 2 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 3 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 4 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 5 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 6 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 7 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 8 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 9 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 10 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 11 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:373: lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - yml_test.go:260: success: permerror, lookup limit reached [redirect-loop] yml_test.go:251: test false-a-limit yml_test.go:253: checkhost 1.2.3.12 foo@e10.example.com spf.go:308: check "e10.example.com" 0 0 @@ -3225,6 +3222,31 @@ spf.go:536: ip match: 1.2.3.4 spf.go:416: "ip4:1.2.3.4" pass, matched ip yml_test.go:260: success: pass, matched ip [mech-at-limit] + yml_test.go:251: test include-at-limit + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all" + spf.go:747: masks on "a", "e8.example.com": "e8.example.com" [, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] + spf.go:406: "a" pass, matched a + yml_test.go:260: success: pass, matched a [include-at-limit] + yml_test.go:251: test ptr-limit + yml_test.go:253: checkhost 1.2.3.5 foo@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 ptr" + spf.go:579: ptr names trimmed 11 down to 10 + spf.go:591: ptr forward resolution "e1.example.com." -> [{"1.2.3.6" ""}] + spf.go:591: ptr forward resolution "e2.example.com." -> [{"1.2.3.7" ""}] + spf.go:591: ptr forward resolution "e3.example.com." -> [{"1.2.3.8" ""}] + spf.go:591: ptr forward resolution "e4.example.com." -> [{"1.2.3.5" ""}] + spf.go:591: ptr forward resolution "e6.example.com." -> [{"1.2.3.8" ""}] + spf.go:591: ptr forward resolution "e7.example.com." -> [{"1.2.3.20" ""}] + spf.go:591: ptr forward resolution "e8.example.com." -> [{"1.2.3.4" ""}] + spf.go:591: ptr forward resolution "e9.example.com." -> [{"1.2.3.21" ""}] + spf.go:591: ptr forward resolution "e10.example.com." -> [{"1.2.3.1" ""} {"1.2.3.2" ""} {"1.2.3.3" ""} {"1.2.3.4" ""} {"1.2.3.5" ""} {"1.2.3.6" ""} {"1.2.3.7" ""} {"1.2.3.8" ""} {"1.2.3.9" ""} {"1.2.3.10" ""} {"1.2.3.11" ""} {"1.2.3.12" ""}] + spf.go:600: ptr evaluating "e5.example.com" in ["e1.example.com." "e2.example.com." "e3.example.com." "e4.example.com." "e6.example.com." "e7.example.com." "e8.example.com." "e9.example.com." "e10.example.com."] + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [ptr-limit] yml_test.go:251: test mech-over-limit yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com spf.go:308: check "e7.example.com" 0 0 @@ -3240,14 +3262,6 @@ spf.go:514: void lookup: nxdomain spf.go:378: void lookup limit reached yml_test.go:260: success: permerror, void lookup limit reached [mech-over-limit] - yml_test.go:251: test include-at-limit - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all" - spf.go:747: masks on "a", "e8.example.com": "e8.example.com" [, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] - spf.go:406: "a" pass, matched a - yml_test.go:260: success: pass, matched a [include-at-limit] yml_test.go:251: test include-over-limit yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com spf.go:308: check "e9.example.com" 0 0 @@ -3267,6 +3281,45 @@ spf.go:747: masks on "a", "e9.example.com": "e9.example.com" [, ] spf.go:373: lookup limit reached yml_test.go:260: success: permerror, lookup limit reached [include-over-limit] + yml_test.go:251: test redirect-loop + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 1 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 2 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 3 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 4 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 5 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 6 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 7 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 8 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 9 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 10 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 11 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:373: lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + yml_test.go:260: success: permerror, lookup limit reached [redirect-loop] yml_test.go:251: test include-loop yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -3313,63 +3366,76 @@ spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] spf.go:411: "mx" permerror, too many MX records yml_test.go:260: success: permerror, too many MX records [mx-limit] - yml_test.go:251: test ptr-limit - yml_test.go:253: checkhost 1.2.3.5 foo@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 ptr" - spf.go:579: ptr names trimmed 11 down to 10 - spf.go:591: ptr forward resolution "e1.example.com." -> [{"1.2.3.6" ""}] - spf.go:591: ptr forward resolution "e2.example.com." -> [{"1.2.3.7" ""}] - spf.go:591: ptr forward resolution "e3.example.com." -> [{"1.2.3.8" ""}] - spf.go:591: ptr forward resolution "e4.example.com." -> [{"1.2.3.5" ""}] - spf.go:591: ptr forward resolution "e6.example.com." -> [{"1.2.3.8" ""}] - spf.go:591: ptr forward resolution "e7.example.com." -> [{"1.2.3.20" ""}] - spf.go:591: ptr forward resolution "e8.example.com." -> [{"1.2.3.4" ""}] - spf.go:591: ptr forward resolution "e9.example.com." -> [{"1.2.3.21" ""}] - spf.go:591: ptr forward resolution "e10.example.com." -> [{"1.2.3.1" ""} {"1.2.3.2" ""} {"1.2.3.3" ""} {"1.2.3.4" ""} {"1.2.3.5" ""} {"1.2.3.6" ""} {"1.2.3.7" ""} {"1.2.3.8" ""} {"1.2.3.9" ""} {"1.2.3.10" ""} {"1.2.3.11" ""} {"1.2.3.12" ""}] - spf.go:600: ptr evaluating "e5.example.com" in ["e1.example.com." "e2.example.com." "e3.example.com." "e4.example.com." "e6.example.com." "e7.example.com." "e8.example.com." "e9.example.com." "e10.example.com."] - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [ptr-limit] ---- PASS: TestRFC4408 (0.03s) +--- PASS: TestRFC4408 (0.05s) === RUN TestRFC7208 yml_test.go:162: suite: Initial processing + yml_test.go:167: domain ctrl.example.com + yml_test.go:169: SPF: [v=spf1 a:ctrl.example.com ptr -all] + yml_test.go:169: A: [192.0.2.3] + yml_test.go:167: domain hosed3.example.com + yml_test.go:169: SPF: [v=spf1 a:example.net –all] + yml_test.go:167: domain a12345678901234567890123456789012345678901234567890123456789012.example.com + yml_test.go:169: SPF: [v=spf1 -all] + yml_test.go:167: domain nothosed.example.com + yml_test.go:169: SPF: [v=spf1 a:example.net -all] + yml_test.go:169: SPF: [–] yml_test.go:167: domain null.example.com yml_test.go:169: SPF: [v=spf1 ip4: 192.0.2.5 -all] yml_test.go:169: yml_test.go:167: domain exp.example.net yml_test.go:169: TXT: [%{l}] - yml_test.go:167: domain hosed2.example.com - yml_test.go:169: SPF: [v=spf1 €a:example.net -all] - yml_test.go:167: domain nothosed.example.com - yml_test.go:169: SPF: [v=spf1 a:example.net -all] - yml_test.go:169: SPF: [–] yml_test.go:167: domain fine.example.com yml_test.go:169: SPF: [v=spf1 a -all] - yml_test.go:167: domain trail.example.com - yml_test.go:169: SPF: [v=spf1 a -all ] yml_test.go:167: domain hosed.example.com yml_test.go:169: SPF: [v=spf1 a:garbage.example.net -all] - yml_test.go:167: domain hosed3.example.com - yml_test.go:169: SPF: [v=spf1 a:example.net –all] - yml_test.go:167: domain example.com - yml_test.go:169: TIMEOUT - yml_test.go:167: domain a12345678901234567890123456789012345678901234567890123456789012.example.com - yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:167: domain ctrl.example.com - yml_test.go:169: SPF: [v=spf1 a:ctrl.example.com ptr -all] - yml_test.go:169: A: [192.0.2.3] - yml_test.go:167: domain badip.example.com - yml_test.go:169: SPF: [v=spf1 ip4:192.0.2.5 - include:spf.protection.outlook.com ~all] yml_test.go:167: domain example.net yml_test.go:169: SPF: [v=spf1 -all exp=exp.example.net] yml_test.go:167: domain a.example.net yml_test.go:169: SPF: [v=spf1 -all exp=exp.example.net] - yml_test.go:251: test toolonglabel - yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com - spf.go:308: check "A123456789012345678901234567890123456789012345678901234567890123.example.com" 0 0 + yml_test.go:167: domain hosed2.example.com + yml_test.go:169: SPF: [v=spf1 €a:example.net -all] + yml_test.go:167: domain trail.example.com + yml_test.go:169: SPF: [v=spf1 a -all ] + yml_test.go:167: domain badip.example.com + yml_test.go:169: SPF: [v=spf1 ip4:192.0.2.5 + include:spf.protection.outlook.com ~all] + yml_test.go:167: domain example.com + yml_test.go:169: TIMEOUT + yml_test.go:251: test helo-not-fqdn + yml_test.go:253: checkhost 1.2.3.5 + spf.go:308: check "A2345678" 0 0 spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [toolonglabel] + yml_test.go:260: success: none, no DNS record found [helo-not-fqdn] + yml_test.go:251: test non-ascii-result + yml_test.go:253: checkhost 1.2.3.4 foobar@hosed3.example.com + spf.go:308: check "hosed3.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:example.net \u0096all" + spf.go:747: masks on "a:example.net", "hosed3.example.com": "example.net" [, ] + spf.go:514: void lookup: nxdomain + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [non-ascii-result] + yml_test.go:251: test trailing-space + yml_test.go:253: checkhost 192.0.2.5 silly@trail.example.com + spf.go:308: check "trail.example.com" 0 0 + spf.go:330: dns record "v=spf1 a -all " + spf.go:747: masks on "a", "trail.example.com": "trail.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [trailing-space] + yml_test.go:251: test longlabel + yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com + spf.go:308: check "A12345678901234567890123456789012345678901234567890123456789012.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [longlabel] + yml_test.go:251: test two-spaces + yml_test.go:253: checkhost 1.2.3.4 actually@fine.example.com + spf.go:308: check "fine.example.com" 0 0 + spf.go:330: dns record "v=spf1 a -all" + spf.go:747: masks on "a", "fine.example.com": "fine.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [two-spaces] yml_test.go:251: test null-text yml_test.go:253: checkhost 192.0.2.5 silly@null.example.com spf.go:308: check "null.example.com" 0 0 @@ -3377,17 +3443,16 @@ spf.go:536: ip match: 192.0.2.5 spf.go:416: "ip4:192.0.2.5" pass, matched ip yml_test.go:260: success: pass, matched ip [null-text] - yml_test.go:251: test longlabel - yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com - spf.go:308: check "A12345678901234567890123456789012345678901234567890123456789012.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [longlabel] - yml_test.go:251: test helo-not-fqdn + yml_test.go:251: test toolonglabel + yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com + spf.go:308: check "A123456789012345678901234567890123456789012345678901234567890123.example.com" 0 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + yml_test.go:260: success: none, no DNS record found [toolonglabel] + yml_test.go:251: test helo-domain-literal yml_test.go:253: checkhost 1.2.3.5 - spf.go:308: check "A2345678" 0 0 + spf.go:308: check "[1.2.3.5]" 0 0 spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [helo-not-fqdn] + yml_test.go:260: success: none, no DNS record found [helo-domain-literal] yml_test.go:251: test nolocalpart yml_test.go:253: checkhost 1.2.3.4 @example.net spf.go:308: check "example.net" 0 0 @@ -3407,47 +3472,21 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [non-ascii-non-spf] - yml_test.go:251: test helo-domain-literal - yml_test.go:253: checkhost 1.2.3.5 - spf.go:308: check "[1.2.3.5]" 0 0 + yml_test.go:251: test emptylabel + yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A...example.com + spf.go:308: check "A...example.com" 0 0 spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [helo-domain-literal] - yml_test.go:251: test non-ascii-result - yml_test.go:253: checkhost 1.2.3.4 foobar@hosed3.example.com - spf.go:308: check "hosed3.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:example.net \u0096all" - spf.go:747: masks on "a:example.net", "hosed3.example.com": "example.net" [, ] - spf.go:514: void lookup: nxdomain - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [non-ascii-result] - yml_test.go:251: test two-spaces - yml_test.go:253: checkhost 1.2.3.4 actually@fine.example.com - spf.go:308: check "fine.example.com" 0 0 - spf.go:330: dns record "v=spf1 a -all" - spf.go:747: masks on "a", "fine.example.com": "fine.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [two-spaces] + yml_test.go:260: success: none, no DNS record found [emptylabel] yml_test.go:251: test badip4 yml_test.go:253: checkhost 192.0.2.5 oops@badip.example.com spf.go:308: check "badip.example.com" 0 0 spf.go:330: dns record "v=spf1 ip4:192.0.2.5\n include:spf.protection.outlook.com ~all" spf.go:416: "ip4:192.0.2.5\n" permerror, invalid ipX value yml_test.go:260: success: permerror, invalid ipX value [badip4] - yml_test.go:251: test emptylabel - yml_test.go:253: checkhost 1.2.3.5 lyme.eater@A...example.com - spf.go:308: check "A...example.com" 0 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [emptylabel] - yml_test.go:251: test trailing-space - yml_test.go:253: checkhost 192.0.2.5 silly@trail.example.com - spf.go:308: check "trail.example.com" 0 0 - spf.go:330: dns record "v=spf1 a -all " - spf.go:747: masks on "a", "trail.example.com": "trail.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [trailing-space] yml_test.go:162: suite: Record lookup + yml_test.go:167: domain both.example.net + yml_test.go:169: TXT: [v=spf1 -all] + yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain txtonly.example.net yml_test.go:169: TXT: [v=spf1 -all] yml_test.go:167: domain spfonly.example.net @@ -3466,9 +3505,12 @@ yml_test.go:169: TIMEOUT yml_test.go:167: domain alltimeout.example.net yml_test.go:169: TIMEOUT - yml_test.go:167: domain both.example.net - yml_test.go:169: TXT: [v=spf1 -all] - yml_test.go:169: SPF: [v=spf1 -all] + yml_test.go:251: test txtonly + yml_test.go:253: checkhost 1.2.3.4 foo@txtonly.example.net + spf.go:308: check "txtonly.example.net" 0 0 + spf.go:330: dns record "v=spf1 -all" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [txtonly] yml_test.go:251: test spfonly yml_test.go:253: checkhost 1.2.3.4 foo@spfonly.example.net spf.go:308: check "spfonly.example.net" 0 0 @@ -3495,22 +3537,24 @@ spf.go:330: dns record "v=spf1 -all" spf.go:397: all: fail yml_test.go:260: success: fail, matched all [both] - yml_test.go:251: test txtonly - yml_test.go:253: checkhost 1.2.3.4 foo@txtonly.example.net - spf.go:308: check "txtonly.example.net" 0 0 - spf.go:330: dns record "v=spf1 -all" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [txtonly] yml_test.go:162: suite: Selecting records - yml_test.go:167: domain example3.com - yml_test.go:169: SPF: [v=spf10] - yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:169: MX: {0 mail.example1.com} yml_test.go:167: domain example1.com yml_test.go:169: SPF: [v=spf1] + yml_test.go:167: domain example5.com + yml_test.go:169: SPF: [v=spf1 +all] + yml_test.go:169: TXT: [v=spf1 -all] + yml_test.go:169: TXT: [v=spf1 +all] yml_test.go:167: domain example7.com yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:169: SPF: [v=spf1 -all] + yml_test.go:167: domain example8.com + yml_test.go:169: SPF: [V=spf1 -all] + yml_test.go:169: SPF: [v=spf1 -all] + yml_test.go:169: TXT: [v=spf1 +all] + yml_test.go:167: domain example3.com + yml_test.go:169: SPF: [v=spf10] + yml_test.go:169: SPF: [v=spf1 mx] + yml_test.go:169: MX: {0 mail.example1.com} yml_test.go:167: domain example2.com yml_test.go:169: SPF: [v=spf1 mx] yml_test.go:167: domain mail.example1.com @@ -3518,40 +3562,11 @@ yml_test.go:167: domain example4.com yml_test.go:169: SPF: [v=spf1 +all] yml_test.go:169: TXT: [v=spf1 -all] - yml_test.go:167: domain example5.com - yml_test.go:169: SPF: [v=spf1 +all] - yml_test.go:169: TXT: [v=spf1 -all] - yml_test.go:169: TXT: [v=spf1 +all] yml_test.go:167: domain example6.com yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:169: SPF: [V=sPf1 +all] - yml_test.go:167: domain example8.com - yml_test.go:169: SPF: [V=spf1 -all] - yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:169: TXT: [v=spf1 +all] yml_test.go:167: domain example9.com yml_test.go:169: SPF: [v=SpF1 ~all] - yml_test.go:251: test empty - yml_test.go:253: checkhost 1.2.3.4 foo@example1.com - spf.go:308: check "example1.com" 0 0 - spf.go:330: dns record "v=spf1" - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [empty] - yml_test.go:251: test multitxt2 - yml_test.go:253: checkhost 1.2.3.4 foo@example6.com - spf.go:308: check "example6.com" 0 0 - spf.go:322: multiple dns records - yml_test.go:260: success: permerror, multiple matching DNS records [multitxt2] - yml_test.go:251: test nospf - yml_test.go:253: checkhost 1.2.3.4 foo@mail.example1.com - spf.go:308: check "mail.example1.com" 0 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - yml_test.go:260: success: none, no DNS record found [nospf] - yml_test.go:251: test nospace1 - yml_test.go:253: checkhost 1.2.3.4 foo@example2.com - spf.go:308: check "example2.com" 0 0 - spf.go:330: dns record "" - yml_test.go:260: success: none, no DNS record found [nospace1] yml_test.go:251: test nospace2 yml_test.go:253: checkhost 1.2.3.4 foo@example3.com spf.go:308: check "example3.com" 0 0 @@ -3572,6 +3587,33 @@ spf.go:308: check "example5.com" 0 0 spf.go:322: multiple dns records yml_test.go:260: success: permerror, multiple matching DNS records [multitxt1] + yml_test.go:251: test multitxt2 + yml_test.go:253: checkhost 1.2.3.4 foo@example6.com + spf.go:308: check "example6.com" 0 0 + spf.go:322: multiple dns records + yml_test.go:260: success: permerror, multiple matching DNS records [multitxt2] + yml_test.go:251: test nospf + yml_test.go:253: checkhost 1.2.3.4 foo@mail.example1.com + spf.go:308: check "mail.example1.com" 0 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + yml_test.go:260: success: none, no DNS record found [nospf] + yml_test.go:251: test case-insensitive + yml_test.go:253: checkhost 1.2.3.4 foo@example9.com + spf.go:308: check "example9.com" 0 0 + spf.go:330: dns record "v=SpF1 ~all" + spf.go:397: all: softfail + yml_test.go:260: success: softfail, matched all [case-insensitive] + yml_test.go:251: test nospace1 + yml_test.go:253: checkhost 1.2.3.4 foo@example2.com + spf.go:308: check "example2.com" 0 0 + spf.go:330: dns record "" + yml_test.go:260: success: none, no DNS record found [nospace1] + yml_test.go:251: test empty + yml_test.go:253: checkhost 1.2.3.4 foo@example1.com + spf.go:308: check "example1.com" 0 0 + spf.go:330: dns record "v=spf1" + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [empty] yml_test.go:251: test multispf1 yml_test.go:253: checkhost 1.2.3.4 foo@example7.com spf.go:308: check "example7.com" 0 0 @@ -3583,51 +3625,33 @@ spf.go:330: dns record "v=spf1 +all" spf.go:397: all: pass yml_test.go:260: success: pass, matched all [multispf2] - yml_test.go:251: test case-insensitive - yml_test.go:253: checkhost 1.2.3.4 foo@example9.com - spf.go:308: check "example9.com" 0 0 - spf.go:330: dns record "v=SpF1 ~all" - spf.go:397: all: softfail - yml_test.go:260: success: softfail, matched all [case-insensitive] yml_test.go:162: suite: Record evaluation - yml_test.go:167: domain t5.example.com - yml_test.go:169: SPF: [v=spf1 redirect=t5.example.com ~all] - yml_test.go:167: domain t7.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4] - yml_test.go:167: domain t9.example.com - yml_test.go:169: SPF: [v=spf1 a:foo-bar -all] yml_test.go:167: domain t10.example.com yml_test.go:169: SPF: [v=spf1 a:mail.example...com -all] + yml_test.go:167: domain t11.example.com + yml_test.go:169: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain t1.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 -all moo] - yml_test.go:167: domain t2.example.com - yml_test.go:169: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] - yml_test.go:167: domain t4.example.com - yml_test.go:169: SPF: [v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all] - yml_test.go:167: domain t12.example.com - yml_test.go:169: SPF: [v=spf1 a:%{H}.bar -all] yml_test.go:167: domain t3.example.com yml_test.go:169: SPF: [v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:167: domain t6.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 redirect=t2.example.com] + yml_test.go:167: domain t7.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4] yml_test.go:167: domain t8.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4 redirect:t2.example.com] - yml_test.go:167: domain t11.example.com - yml_test.go:169: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] - yml_test.go:251: test redirect-after-mechanisms1 - yml_test.go:253: checkhost 1.2.3.4 foo@t5.example.com - spf.go:308: check "t5.example.com" 0 0 - spf.go:330: dns record "v=spf1 redirect=t5.example.com ~all" - spf.go:397: all: softfail - yml_test.go:260: success: softfail, matched all [redirect-after-mechanisms1] - yml_test.go:251: test default-result - yml_test.go:253: checkhost 1.2.3.5 foo@t7.example.com - spf.go:308: check "t7.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.4" - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [default-result] + yml_test.go:167: domain t12.example.com + yml_test.go:169: SPF: [v=spf1 a:%{H}.bar -all] + yml_test.go:167: domain t2.example.com + yml_test.go:169: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] + yml_test.go:167: domain t4.example.com + yml_test.go:169: SPF: [v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all] + yml_test.go:167: domain t5.example.com + yml_test.go:169: SPF: [v=spf1 redirect=t5.example.com ~all] + yml_test.go:167: domain t9.example.com + yml_test.go:169: SPF: [v=spf1 a:foo-bar -all] yml_test.go:251: test invalid-domain-empty-label yml_test.go:253: checkhost 1.2.3.4 foo@t10.example.com spf.go:308: check "t10.example.com" 0 0 @@ -3636,12 +3660,6 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [invalid-domain-empty-label] - yml_test.go:251: test modifier-charset-bad2 - yml_test.go:253: checkhost 1.2.3.4 foo@t4.example.com - spf.go:308: check "t4.example.com" 0 0 - spf.go:330: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [modifier-charset-bad2] yml_test.go:251: test invalid-domain-long yml_test.go:253: checkhost 1.2.3.4 foo@t11.example.com spf.go:308: check "t11.example.com" 0 0 @@ -3650,12 +3668,6 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [invalid-domain-long] - yml_test.go:251: test modifier-charset-bad1 - yml_test.go:253: checkhost 1.2.3.4 foo@t3.example.com - spf.go:308: check "t3.example.com" 0 0 - spf.go:330: dns record "v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [modifier-charset-bad1] yml_test.go:251: test invalid-domain-long-via-macro yml_test.go:253: checkhost 1.2.3.4 foo@t12.example.com spf.go:308: check "t12.example.com" 0 0 @@ -3666,9 +3678,31 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [invalid-domain-long-via-macro] + yml_test.go:251: test modifier-charset-bad1 + yml_test.go:253: checkhost 1.2.3.4 foo@t3.example.com + spf.go:308: check "t3.example.com" 0 0 + spf.go:330: dns record "v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [modifier-charset-bad1] + yml_test.go:251: test modifier-charset-bad2 + yml_test.go:253: checkhost 1.2.3.4 foo@t4.example.com + spf.go:308: check "t4.example.com" 0 0 + spf.go:330: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [modifier-charset-bad2] + yml_test.go:251: test redirect-after-mechanisms1 + yml_test.go:253: checkhost 1.2.3.4 foo@t5.example.com + spf.go:308: check "t5.example.com" 0 0 + spf.go:330: dns record "v=spf1 redirect=t5.example.com ~all" + spf.go:397: all: softfail + yml_test.go:260: success: softfail, matched all [redirect-after-mechanisms1] + yml_test.go:251: test default-result + yml_test.go:253: checkhost 1.2.3.5 foo@t7.example.com + spf.go:308: check "t7.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.4" + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [default-result] yml_test.go:162: suite: ALL mechanism syntax - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 -all/8] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 ?all] yml_test.go:167: domain e5.example.com @@ -3679,6 +3713,20 @@ yml_test.go:169: SPF: [v=spf1 -all.] yml_test.go:167: domain e2.example.com yml_test.go:169: SPF: [v=spf1 -all:foobar] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 -all/8] + yml_test.go:251: test all-dot + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all." + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [all-dot] + yml_test.go:251: test all-arg + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all:foobar" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [all-arg] yml_test.go:251: test all-cidr yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com spf.go:308: check "e3.example.com" 0 0 @@ -3697,58 +3745,40 @@ spf.go:330: dns record "v=spf1 all -all" spf.go:397: all: pass yml_test.go:260: success: pass, matched all [all-double] - yml_test.go:251: test all-dot - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all." - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [all-dot] - yml_test.go:251: test all-arg - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all:foobar" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [all-arg] yml_test.go:162: suite: PTR mechanism syntax - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 ptr:example.com -all] - yml_test.go:167: domain 4.3.2.1.in-addr.arpa - yml_test.go:169: PTR: [e3.example.com] - yml_test.go:169: PTR: [e4.example.com] - yml_test.go:169: PTR: [mail.example.com] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 ptr/0 -all] - yml_test.go:167: domain loop.example.com - yml_test.go:169: SPF: [v=spf1 ptr] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 ptr -all] + yml_test.go:169: A: [1.2.3.4] + yml_test.go:169: AAAA: [CAFE:BABE::1] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 ptr:example.Com -all] yml_test.go:167: domain 4.2.0.192.in-addr.arpa yml_test.go:169: PTR: [loop4.example.com.] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:169: AAAA: [2001:db8::1] + yml_test.go:167: domain loop4.example.com + yml_test.go:169: CNAME: CNAME.example.com. + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 ptr:example.com -all] yml_test.go:167: domain 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.D.0.1.0.0.2.ip6.arpa yml_test.go:169: PTR: [mail.Example.com] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 ptr -all] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 ptr:example.Com -all] yml_test.go:167: domain cname.example.com yml_test.go:169: CNAMELOOP + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:169: AAAA: [2001:db8::1] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 ptr/0 -all] + yml_test.go:167: domain 4.3.2.1.in-addr.arpa + yml_test.go:169: PTR: [e3.example.com] + yml_test.go:169: PTR: [e4.example.com] + yml_test.go:169: PTR: [mail.example.com] yml_test.go:167: domain 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa yml_test.go:169: PTR: [e3.example.com] - yml_test.go:167: domain e3.example.com + yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 ptr -all] - yml_test.go:169: A: [1.2.3.4] - yml_test.go:169: AAAA: [CAFE:BABE::1] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 ptr:] - yml_test.go:167: domain loop4.example.com - yml_test.go:169: CNAME: CNAME.example.com. - yml_test.go:251: test ptr-cidr - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 ptr/0 -all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [ptr-cidr] + yml_test.go:167: domain loop.example.com + yml_test.go:169: SPF: [v=spf1 ptr] yml_test.go:251: test ptr-match-target yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -3809,99 +3839,96 @@ spf.go:600: ptr evaluating "loop.example.com" in [] spf.go:444: fallback to neutral yml_test.go:260: success: neutral, [ptr-cname-loop] + yml_test.go:251: test ptr-cidr + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 ptr/0 -all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [ptr-cidr] yml_test.go:162: suite: A mechanism syntax - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 a:abc.123] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 a//33 -all] yml_test.go:167: domain e7.example.com yml_test.go:169: SPF: [v=spf1 a//129 -all] - yml_test.go:167: domain e2b.example.com - yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: SPF: [v=spf1 a//0 -all] - yml_test.go:167: domain e6a.example.com - yml_test.go:169: SPF: [v=spf1 a/33 -all] - yml_test.go:167: domain e8a.example.com + yml_test.go:167: domain e8e.example.com yml_test.go:169: A: [1.2.3.5] yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:169: SPF: [v=spf1 a/24 -all] - yml_test.go:167: domain e11.example.com - yml_test.go:169: SPF: [v=spf1 a:foo:bar/baz.example.com] - yml_test.go:167: domain e12.example.com - yml_test.go:169: SPF: [v=spf1 a:example.-com] + yml_test.go:169: SPF: [v=spf1 a/24/64 -all] + yml_test.go:167: domain foo.example.xn--zckzah + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 a:111.222.33.44] - yml_test.go:167: domain e5b.example.com - yml_test.go:169: SPF: [v=spf1 a:museum.] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e8.example.com - yml_test.go:169: A: [1.2.3.5] - yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:169: SPF: [v=spf1 a/24//64 -all] - yml_test.go:167: domain foo:bar/baz.example.com - yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e8b.example.com yml_test.go:169: A: [1.2.3.5] yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] yml_test.go:169: SPF: [v=spf1 a//64 -all] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 a:foo.example.com] - yml_test.go:167: domain foo.example.com + yml_test.go:167: domain e11.example.com + yml_test.go:169: SPF: [v=spf1 a:foo:bar/baz.example.com] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain e2.example.com yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: A: [1.2.3.5] + yml_test.go:169: AAAA: [1234::2] + yml_test.go:169: SPF: [v=spf1 a/0 -all] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 a/0 -all] yml_test.go:167: domain ipv6.example.com yml_test.go:169: AAAA: [1234::1] yml_test.go:169: A: [1.1.1.1] yml_test.go:169: SPF: [v=spf1 a -all] - yml_test.go:167: domain e14.example.com - yml_test.go:169: SPF: [v=spf1 a:foo.example.xn--zckzah -all] - yml_test.go:167: domain foo.example.xn--zckzah + yml_test.go:167: domain foo:bar/baz.example.com yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e5a.example.com - yml_test.go:169: SPF: [v=spf1 a:museum] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 a:foo.example.com] + yml_test.go:167: domain e6a.example.com + yml_test.go:169: SPF: [v=spf1 a/33 -all] yml_test.go:167: domain e9.example.com yml_test.go:169: SPF: [v=spf1 a:example.com:8080] - yml_test.go:167: domain e8e.example.com - yml_test.go:169: A: [1.2.3.5] - yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:169: SPF: [v=spf1 a/24/64 -all] - yml_test.go:167: domain e10.example.com - yml_test.go:169: SPF: [v=spf1 a:foo.example.com/24] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 a/0 -all] - yml_test.go:167: domain e2.example.com + yml_test.go:167: domain foo.example.com yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: AAAA: [1234::2] - yml_test.go:169: SPF: [v=spf1 a/0 -all] + yml_test.go:169: A: [1.2.3.5] + yml_test.go:167: domain e12.example.com + yml_test.go:169: SPF: [v=spf1 a:example.-com] yml_test.go:167: domain e13.example.com yml_test.go:169: SPF: [v=spf1 a:] yml_test.go:167: domain e2a.example.com yml_test.go:169: AAAA: [1234::1] yml_test.go:169: SPF: [v=spf1 a//0 -all] - yml_test.go:251: test a-nxdomain - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/0 -all" - spf.go:747: masks on "a/0", "e1.example.com": "e1.example.com" [/0, ] - spf.go:514: void lookup: nxdomain + yml_test.go:167: domain e2b.example.com + yml_test.go:169: A: [1.1.1.1] + yml_test.go:169: SPF: [v=spf1 a//0 -all] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 a:abc.123] + yml_test.go:167: domain e10.example.com + yml_test.go:169: SPF: [v=spf1 a:foo.example.com/24] + yml_test.go:167: domain e14.example.com + yml_test.go:169: SPF: [v=spf1 a:foo.example.xn--zckzah -all] + yml_test.go:167: domain e5b.example.com + yml_test.go:169: SPF: [v=spf1 a:museum.] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 a//33 -all] + yml_test.go:167: domain e5a.example.com + yml_test.go:169: SPF: [v=spf1 a:museum] + yml_test.go:167: domain e8.example.com + yml_test.go:169: A: [1.2.3.5] + yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:169: SPF: [v=spf1 a/24//64 -all] + yml_test.go:167: domain e8a.example.com + yml_test.go:169: A: [1.2.3.5] + yml_test.go:169: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:169: SPF: [v=spf1 a/24 -all] + yml_test.go:251: test a-cidr6-0-nxdomain + yml_test.go:253: checkhost 1234::1 foo@e2b.example.com + spf.go:308: check "e2b.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//0 -all" + spf.go:747: masks on "a//0", "e2b.example.com": "e2b.example.com" [, /0] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-nxdomain] - yml_test.go:251: test a-dual-cidr-ip4-err - yml_test.go:253: checkhost 1.2.3.4 foo@e8e.example.com - spf.go:308: check "e8e.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/24/64 -all" - spf.go:747: masks on "a/24/64", "e8e.example.com": "" [, ] - spf.go:406: "a/24/64" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [a-dual-cidr-ip4-err] - yml_test.go:251: test a-dual-cidr-ip4-match - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/24//64 -all" - spf.go:747: masks on "a/24//64", "e8.example.com": "e8.example.com" [/24, /64] - spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, /64] - spf.go:406: "a/24//64" pass, matched a - yml_test.go:260: success: pass, matched a [a-dual-cidr-ip4-match] + yml_test.go:260: success: fail, matched all [a-cidr6-0-nxdomain] + yml_test.go:251: test a-dual-cidr-ip4-default + yml_test.go:253: checkhost 1.2.3.4 foo@e8b.example.com + spf.go:308: check "e8b.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//64 -all" + spf.go:747: masks on "a//64", "e8b.example.com": "e8b.example.com" [, /64] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-dual-cidr-ip4-default] yml_test.go:251: test a-dual-cidr-ip6-default yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com spf.go:308: check "e8a.example.com" 0 0 @@ -3909,6 +3936,21 @@ spf.go:747: masks on "a/24", "e8a.example.com": "e8a.example.com" [/24, ] spf.go:397: all: fail yml_test.go:260: success: fail, matched all [a-dual-cidr-ip6-default] + yml_test.go:251: test a-cidr6-0-ip4 + yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:308: check "e2a.example.com" 0 0 + spf.go:330: dns record "v=spf1 a//0 -all" + spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4] + yml_test.go:251: test a-ip6-dualstack + yml_test.go:253: checkhost 1234::1 foo@ipv6.example.com + spf.go:308: check "ipv6.example.com" 0 0 + spf.go:330: dns record "v=spf1 a -all" + spf.go:747: masks on "a", "ipv6.example.com": "ipv6.example.com" [, ] + spf.go:768: a match: 1234::1, 1234::1, [, ] + spf.go:406: "a" pass, matched a + yml_test.go:260: success: pass, matched a [a-ip6-dualstack] yml_test.go:251: test a-multi-ip2 yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com spf.go:308: check "e10.example.com" 0 0 @@ -3917,21 +3959,29 @@ spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] spf.go:406: "a:foo.example.com/24" pass, matched a yml_test.go:260: success: pass, matched a [a-multi-ip2] - yml_test.go:251: test a-cidr4-0 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/0 -all" - spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] - spf.go:768: a match: 1.2.3.4, 1.1.1.1, [/0, ] - spf.go:406: "a/0" pass, matched a - yml_test.go:260: success: pass, matched a [a-cidr4-0] - yml_test.go:251: test a-cidr4-0-ip6 - yml_test.go:253: checkhost 1234::1 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/0 -all" - spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr4-0-ip6] + yml_test.go:251: test a-dual-cidr-ip4-err + yml_test.go:253: checkhost 1.2.3.4 foo@e8e.example.com + spf.go:308: check "e8e.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/24/64 -all" + spf.go:747: masks on "a/24/64", "e8e.example.com": "" [, ] + spf.go:406: "a/24/64" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [a-dual-cidr-ip4-err] + yml_test.go:251: test a-dual-cidr-ip6-match + yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/24//64 -all" + spf.go:747: masks on "a/24//64", "e8.example.com": "e8.example.com" [/24, /64] + spf.go:768: a match: 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, [/24, /64] + spf.go:406: "a/24//64" pass, matched a + yml_test.go:260: success: pass, matched a [a-dual-cidr-ip6-match] + yml_test.go:251: test a-dash-in-toplabel + yml_test.go:253: checkhost 1.2.3.4 foo@e14.example.com + spf.go:308: check "e14.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:foo.example.xn--zckzah -all" + spf.go:747: masks on "a:foo.example.xn--zckzah", "e14.example.com": "foo.example.xn--zckzah" [, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] + spf.go:406: "a:foo.example.xn--zckzah" pass, matched a + yml_test.go:260: success: pass, matched a [a-dash-in-toplabel] yml_test.go:251: test a-cidr6 yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 @@ -3940,13 +3990,6 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: fail yml_test.go:260: success: fail, matched all [a-cidr6] - yml_test.go:251: test a-dual-cidr-ip4-default - yml_test.go:253: checkhost 1.2.3.4 foo@e8b.example.com - spf.go:308: check "e8b.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//64 -all" - spf.go:747: masks on "a//64", "e8b.example.com": "e8b.example.com" [, /64] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-dual-cidr-ip4-default] yml_test.go:251: test a-bad-cidr6 yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com spf.go:308: check "e7.example.com" 0 0 @@ -3954,43 +3997,13 @@ spf.go:747: masks on "a//129", "e7.example.com": "" [, ] spf.go:406: "a//129" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [a-bad-cidr6] - yml_test.go:251: test a-ip6-dualstack - yml_test.go:253: checkhost 1234::1 foo@ipv6.example.com - spf.go:308: check "ipv6.example.com" 0 0 - spf.go:330: dns record "v=spf1 a -all" - spf.go:747: masks on "a", "ipv6.example.com": "ipv6.example.com" [, ] - spf.go:768: a match: 1234::1, 1234::1, [, ] - spf.go:406: "a" pass, matched a - yml_test.go:260: success: pass, matched a [a-ip6-dualstack] - yml_test.go:251: test a-cidr6-0-ip4 - yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:308: check "e2a.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//0 -all" - spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4] - yml_test.go:251: test a-cidr6-0-nxdomain - yml_test.go:253: checkhost 1234::1 foo@e2b.example.com - spf.go:308: check "e2b.example.com" 0 0 - spf.go:330: dns record "v=spf1 a//0 -all" - spf.go:747: masks on "a//0", "e2b.example.com": "e2b.example.com" [, /0] + yml_test.go:251: test a-cidr4-0-ip6 + yml_test.go:253: checkhost 1234::1 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/0 -all" + spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [a-cidr6-0-nxdomain] - yml_test.go:251: test a-dash-in-toplabel - yml_test.go:253: checkhost 1.2.3.4 foo@e14.example.com - spf.go:308: check "e14.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:foo.example.xn--zckzah -all" - spf.go:747: masks on "a:foo.example.xn--zckzah", "e14.example.com": "foo.example.xn--zckzah" [, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] - spf.go:406: "a:foo.example.xn--zckzah" pass, matched a - yml_test.go:260: success: pass, matched a [a-dash-in-toplabel] - yml_test.go:251: test a-bad-cidr4 - yml_test.go:253: checkhost 1.2.3.4 foo@e6a.example.com - spf.go:308: check "e6a.example.com" 0 0 - spf.go:330: dns record "v=spf1 a/33 -all" - spf.go:747: masks on "a/33", "e6a.example.com": "" [, ] - spf.go:406: "a/33" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [a-bad-cidr4] + yml_test.go:260: success: fail, matched all [a-cidr4-0-ip6] yml_test.go:251: test a-cidr6-0-ip4mapped yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 @@ -3998,6 +4011,22 @@ spf.go:747: masks on "a//0", "e2a.example.com": "e2a.example.com" [, /0] spf.go:397: all: fail yml_test.go:260: success: fail, matched all [a-cidr6-0-ip4mapped] + yml_test.go:251: test a-multi-ip1 + yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:foo.example.com/24" + spf.go:747: masks on "a:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] + spf.go:406: "a:foo.example.com/24" pass, matched a + yml_test.go:260: success: pass, matched a [a-multi-ip1] + yml_test.go:251: test a-cidr4-0 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/0 -all" + spf.go:747: masks on "a/0", "e2.example.com": "e2.example.com" [/0, ] + spf.go:768: a match: 1.2.3.4, 1.1.1.1, [/0, ] + spf.go:406: "a/0" pass, matched a + yml_test.go:260: success: pass, matched a [a-cidr4-0] yml_test.go:251: test a-cidr6-0-ip6 yml_test.go:253: checkhost 1234::1 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 @@ -4006,51 +4035,58 @@ spf.go:768: a match: 1234::1, 1234::1, [, /0] spf.go:406: "a//0" pass, matched a yml_test.go:260: success: pass, matched a [a-cidr6-0-ip6] - yml_test.go:251: test a-dual-cidr-ip6-match - yml_test.go:253: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com + yml_test.go:251: test a-bad-cidr4 + yml_test.go:253: checkhost 1.2.3.4 foo@e6a.example.com + spf.go:308: check "e6a.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/33 -all" + spf.go:747: masks on "a/33", "e6a.example.com": "" [, ] + spf.go:406: "a/33" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [a-bad-cidr4] + yml_test.go:251: test a-dual-cidr-ip4-match + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com spf.go:308: check "e8.example.com" 0 0 spf.go:330: dns record "v=spf1 a/24//64 -all" spf.go:747: masks on "a/24//64", "e8.example.com": "e8.example.com" [/24, /64] - spf.go:768: a match: 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, [/24, /64] + spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, /64] spf.go:406: "a/24//64" pass, matched a - yml_test.go:260: success: pass, matched a [a-dual-cidr-ip6-match] - yml_test.go:251: test a-multi-ip1 - yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:foo.example.com/24" - spf.go:747: masks on "a:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.5, [/24, ] - spf.go:406: "a:foo.example.com/24" pass, matched a - yml_test.go:260: success: pass, matched a [a-multi-ip1] + yml_test.go:260: success: pass, matched a [a-dual-cidr-ip4-match] + yml_test.go:251: test a-nxdomain + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 a/0 -all" + spf.go:747: masks on "a/0", "e1.example.com": "e1.example.com" [/0, ] + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [a-nxdomain] yml_test.go:162: suite: Include mechanism semantics and syntax - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 include +all] yml_test.go:167: domain ip5.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.5 -all] - yml_test.go:167: domain ip6.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.6 ~all] - yml_test.go:167: domain ip7.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.7 ?all] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 include:erehwon.example.com -all] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 include:ip7.example.com -all] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 include:ip8.example.com -all] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 include:ip5.example.com/24 -all] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 include +all] + yml_test.go:167: domain ip6.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.6 ~all] yml_test.go:167: domain erehwon.example.com yml_test.go:169: TXT: [v=spfl am not an SPF record] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 include:ip5.example.com ~all] yml_test.go:167: domain e2.example.com yml_test.go:169: SPF: [v=spf1 include:ip6.example.com all] - yml_test.go:167: domain ip8.example.com - yml_test.go:169: TIMEOUT - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 include:ip7.example.com -all] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 include:ip5.example.com/24 -all] + yml_test.go:167: domain ip7.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.7 ?all] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 include:ip5.example.com ~all] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 include:e6.example.com -all] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain ip8.example.com + yml_test.go:169: TIMEOUT + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 include:erehwon.example.com -all] yml_test.go:167: domain e8.example.com yml_test.go:169: SPF: [v=spf1 include: -all] yml_test.go:251: test include-fail @@ -4062,15 +4098,23 @@ spf.go:397: all: fail spf.go:397: all: softfail yml_test.go:260: success: softfail, matched all [include-fail] - yml_test.go:251: test include-softfail - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:ip6.example.com all" - spf.go:308: check "ip6.example.com" 1 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.6 ~all" - spf.go:397: all: softfail - spf.go:397: all: pass - yml_test.go:260: success: pass, matched all [include-softfail] + yml_test.go:251: test include-temperror + yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:ip8.example.com -all" + spf.go:308: check "ip8.example.com" 1 0 + spf.go:318: dns temp error: lookup : test timeout error + spf.go:401: "include:ip8.example.com" temperror, lookup : test timeout error + yml_test.go:260: success: temperror, lookup : test timeout error [include-temperror] + yml_test.go:251: test include-permerror + yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:e6.example.com -all" + spf.go:308: check "e6.example.com" 1 0 + spf.go:330: dns record "v=spf1 include +all" + spf.go:437: unknown field, permerror + spf.go:401: "include:e6.example.com" permerror, unknown field + yml_test.go:260: success: permerror, unknown field [include-permerror] yml_test.go:251: test include-syntax-error yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 @@ -4092,6 +4136,23 @@ spf.go:330: dns record "" spf.go:401: "include:erehwon.example.com" permerror, no DNS record found yml_test.go:260: success: permerror, no DNS record found [include-none] + yml_test.go:251: test include-empty-domain + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 include: -all" + spf.go:308: check "" 1 0 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + spf.go:401: "include:" permerror, no DNS record found + yml_test.go:260: success: permerror, no DNS record found [include-empty-domain] + yml_test.go:251: test include-softfail + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:ip6.example.com all" + spf.go:308: check "ip6.example.com" 1 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.6 ~all" + spf.go:397: all: softfail + spf.go:397: all: pass + yml_test.go:260: success: pass, matched all [include-softfail] yml_test.go:251: test include-neutral yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com spf.go:308: check "e3.example.com" 0 0 @@ -4101,116 +4162,99 @@ spf.go:397: all: neutral spf.go:397: all: fail yml_test.go:260: success: fail, matched all [include-neutral] - yml_test.go:251: test include-temperror - yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:ip8.example.com -all" - spf.go:308: check "ip8.example.com" 1 0 - spf.go:318: dns temp error: lookup : test timeout error - spf.go:401: "include:ip8.example.com" temperror, lookup : test timeout error - yml_test.go:260: success: temperror, lookup : test timeout error [include-temperror] - yml_test.go:251: test include-permerror - yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:e6.example.com -all" - spf.go:308: check "e6.example.com" 1 0 - spf.go:330: dns record "v=spf1 include +all" - spf.go:437: unknown field, permerror - spf.go:401: "include:e6.example.com" permerror, unknown field - yml_test.go:260: success: permerror, unknown field [include-permerror] - yml_test.go:251: test include-empty-domain - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 include: -all" - spf.go:308: check "" 1 0 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - spf.go:401: "include:" permerror, no DNS record found - yml_test.go:260: success: permerror, no DNS record found [include-empty-domain] yml_test.go:162: suite: MX mechanism syntax - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:169: MX: {0 } - yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:167: domain e1.example.com + yml_test.go:167: domain e2.example.com + yml_test.go:169: A: [1.1.1.1] + yml_test.go:169: AAAA: [1234::2] + yml_test.go:169: MX: {0 e2.example.com} yml_test.go:169: SPF: [v=spf1 mx/0 -all] - yml_test.go:169: MX: {0 e1.example.com} - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 mx:foo.example.com] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 mx//129 -all] - yml_test.go:167: domain e10.example.com - yml_test.go:169: SPF: [v=spf1 mx:foo.example.com/24] - yml_test.go:167: domain e11.example.com - yml_test.go:169: SPF: [v=spf1 mx:foo:bar/baz.example.com] yml_test.go:167: domain e2a.example.com yml_test.go:169: AAAA: [1234::1] yml_test.go:169: MX: {0 e2a.example.com} yml_test.go:169: SPF: [v=spf1 mx//0 -all] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 mx] - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 mx//33 -all] - yml_test.go:167: domain e6a.example.com - yml_test.go:169: SPF: [v=spf1 mx/33 -all] - yml_test.go:167: domain foo1.example.com - yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: A: [1.2.3.5] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 mx:example.com:8080] + yml_test.go:167: domain e10.example.com + yml_test.go:169: SPF: [v=spf1 mx:foo.example.com/24] yml_test.go:167: domain foo:bar/baz.example.com yml_test.go:169: MX: {0 foo:bar/baz.example.com} yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e13.example.com yml_test.go:169: SPF: [v=spf1 mx: -all] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:169: MX: {0 } + yml_test.go:169: SPF: [v=spf1 mx] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 mx:foo.example.com] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 mx] + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 mx:abc.123] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 mx:example.com:8080] - yml_test.go:167: domain foo.example.com - yml_test.go:169: MX: {0 foo1.example.com} - yml_test.go:167: domain e12.example.com - yml_test.go:169: SPF: [v=spf1 mx:example.-com] - yml_test.go:167: domain e2.example.com - yml_test.go:169: A: [1.1.1.1] - yml_test.go:169: AAAA: [1234::2] - yml_test.go:169: MX: {0 e2.example.com} - yml_test.go:169: SPF: [v=spf1 mx/0 -all] + yml_test.go:167: domain e11.example.com + yml_test.go:169: SPF: [v=spf1 mx:foo:bar/baz.example.com] yml_test.go:167: domain e2b.example.com yml_test.go:169: A: [1.1.1.1] yml_test.go:169: MX: {0 e2b.example.com} yml_test.go:169: SPF: [v=spf1 mx//0 -all] - yml_test.go:251: test mx-bad-cidr6 - yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com - spf.go:308: check "e7.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx//129 -all" - spf.go:780: masks on "mx//129", "e7.example.com": "" [, ] - spf.go:411: "mx//129" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [mx-bad-cidr6] - yml_test.go:251: test mx-multi-ip2 - yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx:foo.example.com/24" - spf.go:780: masks on "mx:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] - spf.go:828: mx ips: [1.1.1.1 1.2.3.5] - spf.go:831: mx match: 1.2.3.4, 1.2.3.5, [/24, ] - spf.go:411: "mx:foo.example.com/24" pass, matched mx - yml_test.go:260: success: pass, matched mx [mx-multi-ip2] - yml_test.go:251: test mx-cidr6-0-ip4 + yml_test.go:167: domain foo1.example.com + yml_test.go:169: A: [1.1.1.1] + yml_test.go:169: A: [1.2.3.5] + yml_test.go:167: domain e12.example.com + yml_test.go:169: SPF: [v=spf1 mx:example.-com] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 mx/0 -all] + yml_test.go:169: MX: {0 e1.example.com} + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 mx//33 -all] + yml_test.go:167: domain e6a.example.com + yml_test.go:169: SPF: [v=spf1 mx/33 -all] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 mx//129 -all] + yml_test.go:167: domain foo.example.com + yml_test.go:169: MX: {0 foo1.example.com} + yml_test.go:251: test mx-cidr6-0-ip4mapped yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 spf.go:330: dns record "v=spf1 mx//0 -all" spf.go:780: masks on "mx//0", "e2a.example.com": "e2a.example.com" [, /0] spf.go:828: mx ips: [1234::1] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-cidr6-0-ip4] - yml_test.go:251: test mx-cidr6-0-ip6 - yml_test.go:253: checkhost 1234::1 foo@e2a.example.com - spf.go:308: check "e2a.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx//0 -all" - spf.go:780: masks on "mx//0", "e2a.example.com": "e2a.example.com" [, /0] - spf.go:828: mx ips: [1234::1] - spf.go:831: mx match: 1234::1, 1234::1, [, /0] - spf.go:411: "mx//0" pass, matched mx - yml_test.go:260: success: pass, matched mx [mx-cidr6-0-ip6] + yml_test.go:260: success: fail, matched all [mx-cidr6-0-ip4mapped] + yml_test.go:251: test mx-implicit + yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx" + spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [mx-implicit] + yml_test.go:251: test mx-cidr6 + yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx//33 -all" + spf.go:780: masks on "mx//33", "e6.example.com": "e6.example.com" [, /33] + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [mx-cidr6] + yml_test.go:251: test mx-nxdomain + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx/0 -all" + spf.go:780: masks on "mx/0", "e1.example.com": "e1.example.com" [/0, ] + spf.go:828: mx ips: [] + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [mx-nxdomain] + yml_test.go:251: test mx-cidr4-0 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx/0 -all" + spf.go:780: masks on "mx/0", "e2.example.com": "e2.example.com" [/0, ] + spf.go:828: mx ips: [1.1.1.1 1234::2] + spf.go:831: mx match: 1.2.3.4, 1.1.1.1, [/0, ] + spf.go:411: "mx/0" pass, matched mx + yml_test.go:260: success: pass, matched mx [mx-cidr4-0] yml_test.go:251: test mx-bad-cidr4 yml_test.go:253: checkhost 1.2.3.4 foo@e6a.example.com spf.go:308: check "e6a.example.com" 0 0 @@ -4227,38 +4271,23 @@ spf.go:831: mx match: 1.2.3.4, 1.2.3.5, [/24, ] spf.go:411: "mx:foo.example.com/24" pass, matched mx yml_test.go:260: success: pass, matched mx [mx-multi-ip1] - yml_test.go:251: test mx-nxdomain - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx/0 -all" - spf.go:780: masks on "mx/0", "e1.example.com": "e1.example.com" [/0, ] - spf.go:828: mx ips: [] - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-nxdomain] - yml_test.go:251: test mx-cidr6-0-ip4mapped + yml_test.go:251: test mx-cidr6-0-ip4 yml_test.go:253: checkhost 1.2.3.4 foo@e2a.example.com spf.go:308: check "e2a.example.com" 0 0 spf.go:330: dns record "v=spf1 mx//0 -all" spf.go:780: masks on "mx//0", "e2a.example.com": "e2a.example.com" [, /0] spf.go:828: mx ips: [1234::1] spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-cidr6-0-ip4mapped] - yml_test.go:251: test mx-empty - yml_test.go:253: checkhost 1.2.3.4 - spf.go:308: check "mail.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx" - spf.go:780: masks on "mx", "mail.example.com": "mail.example.com" [, ] - spf.go:828: mx ips: [] - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [mx-empty] - yml_test.go:251: test mx-cidr6 - yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx//33 -all" - spf.go:780: masks on "mx//33", "e6.example.com": "e6.example.com" [, /33] - spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [mx-cidr6] + yml_test.go:260: success: fail, matched all [mx-cidr6-0-ip4] + yml_test.go:251: test mx-cidr6-0-ip6 + yml_test.go:253: checkhost 1234::1 foo@e2a.example.com + spf.go:308: check "e2a.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx//0 -all" + spf.go:780: masks on "mx//0", "e2a.example.com": "e2a.example.com" [, /0] + spf.go:828: mx ips: [1234::1] + spf.go:831: mx match: 1234::1, 1234::1, [, /0] + spf.go:411: "mx//0" pass, matched mx + yml_test.go:260: success: pass, matched mx [mx-cidr6-0-ip6] yml_test.go:251: test mx-cidr4-0-ip6 yml_test.go:253: checkhost 1234::1 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -4267,15 +4296,6 @@ spf.go:828: mx ips: [1.1.1.1 1234::2] spf.go:397: all: fail yml_test.go:260: success: fail, matched all [mx-cidr4-0-ip6] - yml_test.go:251: test mx-cidr4-0 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx/0 -all" - spf.go:780: masks on "mx/0", "e2.example.com": "e2.example.com" [/0, ] - spf.go:828: mx ips: [1.1.1.1 1234::2] - spf.go:831: mx match: 1.2.3.4, 1.1.1.1, [/0, ] - spf.go:411: "mx/0" pass, matched mx - yml_test.go:260: success: pass, matched mx [mx-cidr4-0] yml_test.go:251: test mx-cidr6-0-nxdomain yml_test.go:253: checkhost 1234::1 foo@e2b.example.com spf.go:308: check "e2b.example.com" 0 0 @@ -4284,33 +4304,56 @@ spf.go:828: mx ips: [1.1.1.1] spf.go:397: all: fail yml_test.go:260: success: fail, matched all [mx-cidr6-0-nxdomain] - yml_test.go:251: test mx-implicit - yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com - spf.go:308: check "e4.example.com" 0 0 + yml_test.go:251: test mx-empty + yml_test.go:253: checkhost 1.2.3.4 + spf.go:308: check "mail.example.com" 0 0 spf.go:330: dns record "v=spf1 mx" - spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] - spf.go:514: void lookup: nxdomain + spf.go:780: masks on "mx", "mail.example.com": "mail.example.com" [, ] + spf.go:828: mx ips: [] spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [mx-implicit] + yml_test.go:260: success: neutral, [mx-empty] + yml_test.go:251: test mx-bad-cidr6 + yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com + spf.go:308: check "e7.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx//129 -all" + spf.go:780: masks on "mx//129", "e7.example.com": "" [, ] + spf.go:411: "mx//129" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [mx-bad-cidr6] + yml_test.go:251: test mx-multi-ip2 + yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx:foo.example.com/24" + spf.go:780: masks on "mx:foo.example.com/24", "e10.example.com": "foo.example.com" [/24, ] + spf.go:828: mx ips: [1.1.1.1 1.2.3.5] + spf.go:831: mx match: 1.2.3.4, 1.2.3.5, [/24, ] + spf.go:411: "mx:foo.example.com/24" pass, matched mx + yml_test.go:260: success: pass, matched mx [mx-multi-ip2] yml_test.go:162: suite: EXISTS mechanism syntax - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain mail6.example.com - yml_test.go:169: AAAA: [CAFE:BABE::4] + yml_test.go:167: domain err.example.com + yml_test.go:169: TIMEOUT yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 exists:] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 exists] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 exists:mail.example.com] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 exists:mail6.example.com -all] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 exists:err.example.com -all] - yml_test.go:167: domain err.example.com - yml_test.go:169: TIMEOUT - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 exists] + yml_test.go:167: domain mail6.example.com + yml_test.go:169: AAAA: [CAFE:BABE::4] yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 exists:mail.example.com/24] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 exists:err.example.com -all] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:251: test exists-ip4 + yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 exists:mail.example.com" + spf.go:640: exists match: 1.2.3.4 + spf.go:426: "exists:mail.example.com" pass, matched exists + yml_test.go:260: success: pass, matched exists [exists-ip4] yml_test.go:251: test exists-ip6 yml_test.go:253: checkhost cafe:babe::3 foo@e4.example.com spf.go:308: check "e4.example.com" 0 0 @@ -4349,59 +4392,40 @@ spf.go:874: macro contains / spf.go:426: "exists:mail.example.com/24" permerror, invalid macro yml_test.go:260: success: permerror, invalid macro [exists-cidr] - yml_test.go:251: test exists-ip4 - yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 exists:mail.example.com" - spf.go:640: exists match: 1.2.3.4 - spf.go:426: "exists:mail.example.com" pass, matched exists - yml_test.go:260: success: pass, matched exists [exists-ip4] yml_test.go:162: suite: IP4 mechanism syntax + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4:8080] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/32 -all] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/032 -all] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/33 -all] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 ip4] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4//32] yml_test.go:167: domain e7.example.com yml_test.go:169: SPF: [v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 ip4:1.2.3] yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.1.1.1/0 -all] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/33 -all] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/032 -all] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4/32 -all] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3.4:8080] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 ip4:1.2.3] - yml_test.go:251: test bad-ip4-port - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3.4:8080" - spf.go:416: "ip4:1.2.3.4:8080" permerror, invalid ipX value - yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-port] - yml_test.go:251: test bad-ip4-short - yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com - spf.go:308: check "e9.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.2.3" - spf.go:416: "ip4:1.2.3" permerror, invalid ipX value - yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-short] yml_test.go:251: test ip4-dual-cidr yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 spf.go:330: dns record "v=spf1 ip4:1.2.3.4//32" spf.go:416: "ip4:1.2.3.4//32" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [ip4-dual-cidr] - yml_test.go:251: test ip4-mapped-ip6 - yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com - spf.go:308: check "e7.example.com" 0 0 - spf.go:330: dns record "v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4" - spf.go:536: ip match: 1.2.3.4 - spf.go:416: "ip4:1.2.3.4" fail, matched ip - yml_test.go:260: success: fail, matched ip [ip4-mapped-ip6] + yml_test.go:251: test cidr4-0 + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1/0 -all" + spf.go:527: ip match: 0.0.0.0/0 contains 1.2.3.4 + spf.go:416: "ip4:1.1.1.1/0" pass, matched ip + yml_test.go:260: success: pass, matched ip [cidr4-0] yml_test.go:251: test cidr4-32 yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -4415,19 +4439,31 @@ spf.go:330: dns record "v=spf1 ip4:1.2.3.4/33 -all" spf.go:416: "ip4:1.2.3.4/33" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [cidr4-33] + yml_test.go:251: test ip4-mapped-ip6 + yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com + spf.go:308: check "e7.example.com" 0 0 + spf.go:330: dns record "v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4" + spf.go:536: ip match: 1.2.3.4 + spf.go:416: "ip4:1.2.3.4" fail, matched ip + yml_test.go:260: success: fail, matched ip [ip4-mapped-ip6] yml_test.go:251: test bare-ip4 yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 spf.go:330: dns record "v=spf1 ip4" spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [bare-ip4] - yml_test.go:251: test cidr4-0 - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1/0 -all" - spf.go:527: ip match: 0.0.0.0/0 contains 1.2.3.4 - spf.go:416: "ip4:1.1.1.1/0" pass, matched ip - yml_test.go:260: success: pass, matched ip [cidr4-0] + yml_test.go:251: test bad-ip4-port + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3.4:8080" + spf.go:416: "ip4:1.2.3.4:8080" permerror, invalid ipX value + yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-port] + yml_test.go:251: test bad-ip4-short + yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com + spf.go:308: check "e9.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.2.3" + spf.go:416: "ip4:1.2.3" permerror, invalid ipX value + yml_test.go:260: success: permerror, invalid ipX value [bad-ip4-short] yml_test.go:162: suite: IP6 mechanism syntax yml_test.go:167: domain mail.example.com yml_test.go:169: A: [1.2.3.4] @@ -4443,32 +4479,6 @@ yml_test.go:169: SPF: [v=spf1 ip6:Cafe:Babe:8000::/33] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 ip6::CAFE::BABE] - yml_test.go:251: test cidr6-ip4 - yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [cidr6-ip4] - yml_test.go:251: test cidr6-0 - yml_test.go:253: checkhost deaf:babe::cab:fee foo@e2.example.com - spf.go:308: check "e2.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" - spf.go:527: ip match: ::/0 contains deaf:babe::cab:fee - spf.go:416: "ip6:::1.1.1.1/0" pass, matched ip - yml_test.go:260: success: pass, matched ip [cidr6-0] - yml_test.go:251: test cidr6-129 - yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com - spf.go:308: check "e3.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/129" - spf.go:416: "ip6:::1.1.1.1/129" permerror, invalid mask - yml_test.go:260: success: permerror, invalid mask [cidr6-129] - yml_test.go:251: test cidr6-33 - yml_test.go:253: checkhost cafe:babe:8000:: foo@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip6:Cafe:Babe:8000::/33" - spf.go:527: ip match: cafe:babe:8000::/33 contains cafe:babe:8000:: - spf.go:416: "ip6:Cafe:Babe:8000::/33" pass, matched ip - yml_test.go:260: success: pass, matched ip [cidr6-33] yml_test.go:251: test ip6-bad1 yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 @@ -4481,166 +4491,148 @@ spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" spf.go:444: fallback to neutral yml_test.go:260: success: neutral, [cidr6-0-ip4] + yml_test.go:251: test cidr6-0 + yml_test.go:253: checkhost deaf:babe::cab:fee foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" + spf.go:527: ip match: ::/0 contains deaf:babe::cab:fee + spf.go:416: "ip6:::1.1.1.1/0" pass, matched ip + yml_test.go:260: success: pass, matched ip [cidr6-0] yml_test.go:251: test cidr6-bad yml_test.go:253: checkhost 1.2.3.4 foo@e4.example.com spf.go:308: check "e4.example.com" 0 0 spf.go:330: dns record "v=spf1 ip6:::1.1.1.1//33" spf.go:416: "ip6:::1.1.1.1//33" permerror, invalid mask yml_test.go:260: success: permerror, invalid mask [cidr6-bad] + yml_test.go:251: test cidr6-33 + yml_test.go:253: checkhost cafe:babe:8000:: foo@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:Cafe:Babe:8000::/33" + spf.go:527: ip match: cafe:babe:8000::/33 contains cafe:babe:8000:: + spf.go:416: "ip6:Cafe:Babe:8000::/33" pass, matched ip + yml_test.go:260: success: pass, matched ip [cidr6-33] yml_test.go:251: test cidr6-33-ip4 yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 spf.go:330: dns record "v=spf1 ip6:Cafe:Babe:8000::/33" spf.go:444: fallback to neutral yml_test.go:260: success: neutral, [cidr6-33-ip4] + yml_test.go:251: test cidr6-ip4 + yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com + spf.go:308: check "e2.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/0" + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [cidr6-ip4] + yml_test.go:251: test cidr6-129 + yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com + spf.go:308: check "e3.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip6:::1.1.1.1/129" + spf.go:416: "ip6:::1.1.1.1/129" permerror, invalid mask + yml_test.go:260: success: permerror, invalid mask [cidr6-129] yml_test.go:162: suite: Semantics of exp and other modifiers - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e15.example.com - yml_test.go:169: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] - yml_test.go:167: domain e21msg.example.com - yml_test.go:169: TIMEOUT - yml_test.go:167: domain nonascii.example.com - yml_test.go:169: SPF: [v=spf1 exp=badexp.example.com -all] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 1up=foo] - yml_test.go:167: domain e18.example.com - yml_test.go:169: SPF: [v=spf1 ?all redirect=] - yml_test.go:167: domain badexp.example.com - yml_test.go:169: TXT: [Explanation] - yml_test.go:167: domain e23.example.com - yml_test.go:169: SPF: [v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all] - yml_test.go:167: domain e20.example.com - yml_test.go:169: SPF: [v=spf1 default=+] yml_test.go:167: domain e21.example.com yml_test.go:169: SPF: [v=spf1 exp=e21msg.example.com -all] yml_test.go:167: domain testimplicit.example.com yml_test.go:169: SPF: [v=spf1 a -all] yml_test.go:169: A: [192.0.2.2] - yml_test.go:167: domain exp4.example.com - yml_test.go:169: TXT: [%{l} in implementation] - yml_test.go:167: domain e11msg.example.com - yml_test.go:169: TXT: [Answer a fool according to his folly.] - yml_test.go:169: TXT: [Do not answer a fool according to his folly.] - yml_test.go:167: domain e13.example.com - yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all] - yml_test.go:167: domain e13msg.example.com - yml_test.go:169: TXT: [The %{x}-files.] - yml_test.go:167: domain e16.example.com - yml_test.go:169: SPF: [v=spf1 exp=-all] yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] + yml_test.go:167: domain exp1.example.com + yml_test.go:169: TXT: [No-see-um] yml_test.go:167: domain exp3.example.com yml_test.go:169: TXT: [Correct!] - yml_test.go:167: domain tworecs.example.com - yml_test.go:169: SPF: [v=spf1 exp=twoexp.example.com -all] - yml_test.go:167: domain e24.example.com - yml_test.go:169: SPF: [v=spf1 redirect=testimplicit.example.com] - yml_test.go:169: A: [192.0.2.1] + yml_test.go:167: domain e13msg.example.com + yml_test.go:169: TXT: [The %{x}-files.] yml_test.go:167: domain e19.example.com yml_test.go:169: SPF: [v=spf1 default=pass] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] + yml_test.go:167: domain e11msg.example.com + yml_test.go:169: TXT: [Answer a fool according to his folly.] + yml_test.go:169: TXT: [Do not answer a fool according to his folly.] + yml_test.go:167: domain e21msg.example.com + yml_test.go:169: TIMEOUT yml_test.go:167: domain twoexp.example.com yml_test.go:169: TXT: [one] yml_test.go:169: TXT: [two] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 -all] - yml_test.go:167: domain exp2.example.com - yml_test.go:169: TXT: [See me.] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 -all foo=%abc] - yml_test.go:167: domain e10.example.com - yml_test.go:169: SPF: [v=spf1 redirect=erehwon.example.com] yml_test.go:167: domain e11.example.com yml_test.go:169: SPF: [v=spf1 -all exp=e11msg.example.com] - yml_test.go:167: domain e14.example.com - yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=exp2.example.com] + yml_test.go:167: domain e12.example.com + yml_test.go:169: SPF: [v=spf1 exp= -all] + yml_test.go:167: domain e15.example.com + yml_test.go:169: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] + yml_test.go:167: domain e18.example.com + yml_test.go:169: SPF: [v=spf1 ?all redirect=] + yml_test.go:167: domain nonascii.example.com + yml_test.go:169: SPF: [v=spf1 exp=badexp.example.com -all] yml_test.go:167: domain e6.example.com yml_test.go:169: SPF: [v=spf1 =all] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 -all foo=%abc] + yml_test.go:167: domain exp2.example.com + yml_test.go:169: TXT: [See me.] + yml_test.go:167: domain exp4.example.com + yml_test.go:169: TXT: [%{l} in implementation] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 1up=foo] + yml_test.go:167: domain tworecs.example.com + yml_test.go:169: SPF: [v=spf1 exp=twoexp.example.com -all] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain e24.example.com + yml_test.go:169: SPF: [v=spf1 redirect=testimplicit.example.com] + yml_test.go:169: A: [192.0.2.1] + yml_test.go:167: domain badexp.example.com + yml_test.go:169: TXT: [Explanation] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain e7.example.com yml_test.go:169: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] yml_test.go:167: domain e8.example.com yml_test.go:169: SPF: [v=spf1 -all exp=exp4.example.com] - yml_test.go:167: domain e12.example.com - yml_test.go:169: SPF: [v=spf1 exp= -all] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] - yml_test.go:167: domain exp1.example.com - yml_test.go:169: TXT: [No-see-um] - yml_test.go:167: domain e17.example.com - yml_test.go:169: SPF: [v=spf1 redirect=-all ?all] + yml_test.go:167: domain e13.example.com + yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all] + yml_test.go:167: domain e14.example.com + yml_test.go:169: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] yml_test.go:167: domain e22.example.com yml_test.go:169: SPF: [v=spf1 exp=mail.example.com -all] - yml_test.go:251: test non-ascii-exp - yml_test.go:253: checkhost 1.2.3.4 foobar@nonascii.example.com - spf.go:308: check "nonascii.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=badexp.example.com -all" - spf.go:430: exp= ignored - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [non-ascii-exp] - yml_test.go:251: test exp-void - yml_test.go:253: checkhost 1.2.3.4 foo@e23.example.com - spf.go:308: check "e23.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all" - spf.go:747: masks on "a:erehwon.example.com", "e23.example.com": "erehwon.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:747: masks on "a:foobar.com", "e23.example.com": "foobar.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:430: exp= ignored - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-void] - yml_test.go:251: test redirect-cancels-exp - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=exp1.example.com redirect=e2.example.com" - spf.go:430: exp= ignored - spf.go:308: check "e2.example.com" 1 0 - spf.go:330: dns record "v=spf1 -all" + yml_test.go:167: domain e23.example.com + yml_test.go:169: SPF: [v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=exp2.example.com] + yml_test.go:167: domain e10.example.com + yml_test.go:169: SPF: [v=spf1 redirect=erehwon.example.com] + yml_test.go:167: domain e16.example.com + yml_test.go:169: SPF: [v=spf1 exp=-all] + yml_test.go:167: domain e17.example.com + yml_test.go:169: SPF: [v=spf1 redirect=-all ?all] + yml_test.go:167: domain e20.example.com + yml_test.go:169: SPF: [v=spf1 default=+] + yml_test.go:251: test exp-multiple-txt + yml_test.go:253: checkhost 1.2.3.4 foo@e11.example.com + spf.go:308: check "e11.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e11msg.example.com" spf.go:397: all: fail - spf.go:434: "redirect=e2.example.com": fail, matched all - yml_test.go:260: success: fail, matched all [redirect-cancels-exp] - yml_test.go:251: test redirect-cancels-prior-exp - yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com - spf.go:308: check "e3.example.com" 0 0 + yml_test.go:260: success: fail, matched all [exp-multiple-txt] + yml_test.go:251: test include-ignores-exp + yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com + spf.go:308: check "e7.example.com" 0 0 + spf.go:330: dns record "v=spf1 include:e3.example.com -all exp=exp3.example.com" + spf.go:308: check "e3.example.com" 1 0 spf.go:330: dns record "v=spf1 exp=exp1.example.com redirect=e4.example.com" spf.go:430: exp= ignored - spf.go:308: check "e4.example.com" 1 0 + spf.go:308: check "e4.example.com" 2 0 spf.go:330: dns record "v=spf1 -all exp=exp2.example.com" spf.go:397: all: fail spf.go:434: "redirect=e4.example.com": fail, matched all - yml_test.go:260: success: fail, matched all [redirect-cancels-prior-exp] - yml_test.go:251: test exp-dns-error - yml_test.go:253: checkhost 1.2.3.4 foo@e21.example.com - spf.go:308: check "e21.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=e21msg.example.com -all" - spf.go:430: exp= ignored spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-dns-error] - yml_test.go:251: test empty-modifier-name - yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 =all" - spf.go:437: unknown field, permerror - yml_test.go:260: success: permerror, unknown field [empty-modifier-name] - yml_test.go:251: test exp-multiple-txt - yml_test.go:253: checkhost 1.2.3.4 foo@e11.example.com - spf.go:308: check "e11.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e11msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-multiple-txt] + yml_test.go:260: success: fail, matched all [include-ignores-exp] yml_test.go:251: test invalid-modifier yml_test.go:253: checkhost 1.2.3.4 foo@e5.example.com spf.go:308: check "e5.example.com" 0 0 spf.go:330: dns record "v=spf1 1up=foo" spf.go:437: unknown field, permerror yml_test.go:260: success: permerror, unknown field [invalid-modifier] - yml_test.go:251: test dorky-sentinel - yml_test.go:253: checkhost 1.2.3.4 Macro Error@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=exp4.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [dorky-sentinel] yml_test.go:251: test exp-no-txt yml_test.go:253: checkhost 1.2.3.4 foo@e22.example.com spf.go:308: check "e22.example.com" 0 0 @@ -4648,13 +4640,19 @@ spf.go:430: exp= ignored spf.go:397: all: fail yml_test.go:260: success: fail, matched all [exp-no-txt] - yml_test.go:251: test explanation-syntax-error - yml_test.go:253: checkhost 1.2.3.4 foo@e13.example.com - spf.go:308: check "e13.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=e13msg.example.com -all" + yml_test.go:251: test exp-dns-error + yml_test.go:253: checkhost 1.2.3.4 foo@e21.example.com + spf.go:308: check "e21.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=e21msg.example.com -all" spf.go:430: exp= ignored spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [explanation-syntax-error] + yml_test.go:260: success: fail, matched all [exp-dns-error] + yml_test.go:251: test redirect-twice + yml_test.go:253: checkhost 1.2.3.4 foo@e15.example.com + spf.go:308: check "e15.example.com" 0 0 + spf.go:330: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" + spf.go:353: too many redirects + yml_test.go:260: success: permerror, invalid domain [redirect-twice] yml_test.go:251: test redirect-none yml_test.go:253: checkhost 1.2.3.4 foo@e10.example.com spf.go:308: check "e10.example.com" 0 0 @@ -4663,25 +4661,30 @@ spf.go:314: dns domain not found: lookup : domain not found (for testing) spf.go:434: "redirect=erehwon.example.com": permerror, no DNS record found yml_test.go:260: success: permerror, no DNS record found [redirect-none] - yml_test.go:251: test include-ignores-exp - yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com - spf.go:308: check "e7.example.com" 0 0 - spf.go:330: dns record "v=spf1 include:e3.example.com -all exp=exp3.example.com" - spf.go:308: check "e3.example.com" 1 0 - spf.go:330: dns record "v=spf1 exp=exp1.example.com redirect=e4.example.com" + yml_test.go:251: test redirect-cancels-exp + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=exp1.example.com redirect=e2.example.com" spf.go:430: exp= ignored - spf.go:308: check "e4.example.com" 2 0 - spf.go:330: dns record "v=spf1 -all exp=exp2.example.com" + spf.go:308: check "e2.example.com" 1 0 + spf.go:330: dns record "v=spf1 -all" spf.go:397: all: fail - spf.go:434: "redirect=e4.example.com": fail, matched all + spf.go:434: "redirect=e2.example.com": fail, matched all + yml_test.go:260: success: fail, matched all [redirect-cancels-exp] + yml_test.go:251: test explanation-syntax-error + yml_test.go:253: checkhost 1.2.3.4 foo@e13.example.com + spf.go:308: check "e13.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=e13msg.example.com -all" + spf.go:430: exp= ignored spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [include-ignores-exp] - yml_test.go:251: test redirect-twice - yml_test.go:253: checkhost 1.2.3.4 foo@e15.example.com - spf.go:308: check "e15.example.com" 0 0 - spf.go:330: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" - spf.go:353: too many redirects - yml_test.go:260: success: permerror, invalid domain [redirect-twice] + yml_test.go:260: success: fail, matched all [explanation-syntax-error] + yml_test.go:251: test non-ascii-exp + yml_test.go:253: checkhost 1.2.3.4 foobar@nonascii.example.com + spf.go:308: check "nonascii.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=badexp.example.com -all" + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [non-ascii-exp] yml_test.go:251: test two-exp-records yml_test.go:253: checkhost 1.2.3.4 foobar@tworecs.example.com spf.go:308: check "tworecs.example.com" 0 0 @@ -4689,6 +4692,39 @@ spf.go:430: exp= ignored spf.go:397: all: fail yml_test.go:260: success: fail, matched all [two-exp-records] + yml_test.go:251: test redirect-cancels-prior-exp + yml_test.go:253: checkhost 1.2.3.4 foo@e3.example.com + spf.go:308: check "e3.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=exp1.example.com redirect=e4.example.com" + spf.go:430: exp= ignored + spf.go:308: check "e4.example.com" 1 0 + spf.go:330: dns record "v=spf1 -all exp=exp2.example.com" + spf.go:397: all: fail + spf.go:434: "redirect=e4.example.com": fail, matched all + yml_test.go:260: success: fail, matched all [redirect-cancels-prior-exp] + yml_test.go:251: test empty-modifier-name + yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 =all" + spf.go:437: unknown field, permerror + yml_test.go:260: success: permerror, unknown field [empty-modifier-name] + yml_test.go:251: test dorky-sentinel + yml_test.go:253: checkhost 1.2.3.4 Macro Error@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=exp4.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [dorky-sentinel] + yml_test.go:251: test exp-void + yml_test.go:253: checkhost 1.2.3.4 foo@e23.example.com + spf.go:308: check "e23.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all" + spf.go:747: masks on "a:erehwon.example.com", "e23.example.com": "erehwon.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:747: masks on "a:foobar.com", "e23.example.com": "foobar.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [exp-void] yml_test.go:251: test redirect-implicit yml_test.go:253: checkhost 192.0.2.2 bar@e24.example.com spf.go:308: check "e24.example.com" 0 0 @@ -4701,140 +4737,127 @@ spf.go:434: "redirect=testimplicit.example.com": pass, matched a yml_test.go:260: success: pass, matched a [redirect-implicit] yml_test.go:162: suite: Macro expansion rules - yml_test.go:167: domain a.spf.example.com - yml_test.go:169: SPF: [v=spf1 include:o.spf.example.com. ~all] - yml_test.go:167: domain exp.example.com - yml_test.go:169: SPF: [v=spf1 exp=msg.example.com. -all] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=%{r}.example.com] - yml_test.go:167: domain e12.example.com - yml_test.go:169: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] yml_test.go:167: domain example.com.d.spf.example.com yml_test.go:169: SPF: [v=spf1 redirect=a.spf.example.com] - yml_test.go:167: domain 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa - yml_test.go:169: PTR: [mx.example.com] - yml_test.go:167: domain _spfh.example.com - yml_test.go:169: SPF: [v=spf1 -a:%{h} +all] yml_test.go:167: domain e1t.example.com yml_test.go:169: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] + yml_test.go:167: domain 40.218.168.192.in-addr.arpa + yml_test.go:169: PTR: [mx.example.com] + yml_test.go:167: domain e8.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=msg8.%{D2}] + yml_test.go:167: domain msgbas2x.cos.example.com + yml_test.go:169: A: [192.168.218.40] + yml_test.go:167: domain example.com + yml_test.go:169: A: [192.168.90.76] + yml_test.go:169: SPF: [v=spf1 redirect=%{d}.d.spf.example.com.] + yml_test.go:167: domain exp.example.com + yml_test.go:169: SPF: [v=spf1 exp=msg.example.com. -all] + yml_test.go:167: domain 42.218.168.192.in-addr.arpa + yml_test.go:169: PTR: [mx.example.com] + yml_test.go:169: PTR: [mx.e7.example.com] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 a:%{H} -all] + yml_test.go:167: domain e1.example.com + yml_test.go:169: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=%{r}.example.com] + yml_test.go:167: domain 40.218.168.192.example.com + yml_test.go:169: TXT: [Connections from %{c} not authorized.] + yml_test.go:167: domain e4msg.example.com + yml_test.go:169: TXT: [%{c} is queried as %{ir}.%{v}.arpa] yml_test.go:167: domain e5.example.com yml_test.go:169: SPF: [v=spf1 a:%{a}.example.com -all] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=e6msg.example.com] - yml_test.go:167: domain mx.example.com.ok.example.com + yml_test.go:167: domain 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa + yml_test.go:169: PTR: [mx.example.com] + yml_test.go:167: domain mx.e7.example.com.should.example.com yml_test.go:169: A: [127.0.0.2] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] - yml_test.go:167: domain e10.example.com - yml_test.go:169: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] - yml_test.go:167: domain msg.example.com - yml_test.go:169: TXT: [This is a test.] - yml_test.go:167: domain e4.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=e4msg.example.com] + yml_test.go:167: domain somewhat.long.exp.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] yml_test.go:167: domain mx.example.com yml_test.go:169: A: [192.168.218.41] yml_test.go:169: A: [192.168.218.42] yml_test.go:169: AAAA: [CAFE:BABE::2] yml_test.go:169: AAAA: [CAFE:BABE::3] - yml_test.go:167: domain o.spf.example.com - yml_test.go:169: SPF: [v=spf1 ip4:192.168.218.40] - yml_test.go:167: domain somewhat.long.exp.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] - yml_test.go:167: domain 40.218.168.192.in-addr.arpa - yml_test.go:169: PTR: [mx.example.com] - yml_test.go:167: domain e8.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=msg8.%{D2}] + yml_test.go:167: domain e12.example.com + yml_test.go:169: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=%{ir}.example.com] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=e6msg.example.com] yml_test.go:167: domain e11.example.com yml_test.go:169: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] + yml_test.go:167: domain _spfh.example.com + yml_test.go:169: SPF: [v=spf1 -a:%{h} +all] + yml_test.go:167: domain a.spf.example.com + yml_test.go:169: SPF: [v=spf1 include:o.spf.example.com. ~all] + yml_test.go:167: domain o.spf.example.com + yml_test.go:169: SPF: [v=spf1 ip4:192.168.218.40] yml_test.go:167: domain e1a.example.com yml_test.go:169: SPF: [v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all] - yml_test.go:167: domain e1e.example.com - yml_test.go:169: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] yml_test.go:167: domain macro%percent space%20url-space.example.com yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 -all exp=%{ir}.example.com] - yml_test.go:167: domain 40.218.168.192.example.com - yml_test.go:169: TXT: [Connections from %{c} not authorized.] - yml_test.go:167: domain e4msg.example.com - yml_test.go:169: TXT: [%{c} is queried as %{ir}.%{v}.arpa] + yml_test.go:167: domain e6msg.example.com + yml_test.go:169: TXT: [connect from %{p}] + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] + yml_test.go:167: domain msg8.example.com + yml_test.go:169: TXT: [http://example.com/why.html?l=%{L}] + yml_test.go:167: domain 1.2.3.4.gladstone.philip.user.example.com + yml_test.go:169: A: [127.0.0.2] + yml_test.go:167: domain e1e.example.com + yml_test.go:169: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] + yml_test.go:167: domain somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.example.com + yml_test.go:169: TXT: [Congratulations! That was tricky.] yml_test.go:167: domain 41.218.168.192.in-addr.arpa yml_test.go:169: PTR: [mx.example.com] - yml_test.go:167: domain 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa + yml_test.go:167: domain 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.E.B.A.B.E.F.A.C.ip6.arpa yml_test.go:169: PTR: [mx.example.com] - yml_test.go:167: domain example.com - yml_test.go:169: A: [192.168.90.76] - yml_test.go:169: SPF: [v=spf1 redirect=%{d}.d.spf.example.com.] - yml_test.go:167: domain 1.2.3.4.gladstone.philip.user.example.com + yml_test.go:167: domain mx.example.com.ok.example.com yml_test.go:169: A: [127.0.0.2] + yml_test.go:167: domain e10.example.com + yml_test.go:169: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] yml_test.go:167: domain bar.foo.user.example.com yml_test.go:169: A: [127.0.0.2] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 a:%{H} -all] - yml_test.go:167: domain e6msg.example.com - yml_test.go:169: TXT: [connect from %{p}] - yml_test.go:167: domain 42.218.168.192.in-addr.arpa - yml_test.go:169: PTR: [mx.example.com] - yml_test.go:169: PTR: [mx.e7.example.com] + yml_test.go:167: domain msg.example.com + yml_test.go:169: TXT: [This is a test.] + yml_test.go:167: domain e4.example.com + yml_test.go:169: SPF: [v=spf1 -all exp=e4msg.example.com] yml_test.go:167: domain mx.e7.example.com yml_test.go:169: A: [192.168.218.42] - yml_test.go:167: domain msgbas2x.cos.example.com - yml_test.go:169: A: [192.168.218.40] - yml_test.go:167: domain somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.somewhat.long.exp.example.com.example.com - yml_test.go:169: TXT: [Congratulations! That was tricky.] - yml_test.go:167: domain mx.e7.example.com.should.example.com - yml_test.go:169: A: [127.0.0.2] - yml_test.go:167: domain msg8.example.com - yml_test.go:169: TXT: [http://example.com/why.html?l=%{L}] - yml_test.go:167: domain e1.example.com - yml_test.go:169: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] yml_test.go:251: test domain-name-truncation yml_test.go:253: checkhost 192.168.218.40 test@somewhat.long.exp.example.com spf.go:308: check "somewhat.long.exp.example.com" 0 0 spf.go:330: dns record "v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com" spf.go:397: all: fail yml_test.go:260: success: fail, matched all [domain-name-truncation] - yml_test.go:251: test v-macro-ip4 - yml_test.go:253: checkhost 192.168.218.40 test@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e4msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [v-macro-ip4] - yml_test.go:251: test macro-multiple-delimiters - yml_test.go:253: checkhost 1.2.3.4 foo-bar+zip+quux@e12.example.com - spf.go:308: check "e12.example.com" 0 0 - spf.go:330: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" - spf.go:923: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] - spf.go:923: macro "d2": ["d2" "d" "2" "" ""] - spf.go:1020: macro expanded "%{l2r+-}.user.%{d2}" to "bar.foo.user.example.com" - spf.go:640: exists match: 127.0.0.2 - spf.go:426: "exists:%{l2r+-}.user.%{d2}" pass, matched exists - yml_test.go:260: success: pass, matched exists [macro-multiple-delimiters] - yml_test.go:251: test p-macro-ip4-novalid - yml_test.go:253: checkhost 192.168.218.40 test@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip4-novalid] - yml_test.go:251: test p-macro-ip6-novalid - yml_test.go:253: checkhost cafe:babe::1 test@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip6-novalid] - yml_test.go:251: test trailing-dot-exp - yml_test.go:253: checkhost 192.168.218.40 test@exp.example.com - spf.go:308: check "exp.example.com" 0 0 - spf.go:330: dns record "v=spf1 exp=msg.example.com. -all" - spf.go:430: exp= ignored + yml_test.go:251: test invalid-hello-macro + yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com + spf.go:308: check "e9.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:%{H} -all" + spf.go:747: masks on "a:%{H}", "e9.example.com": "%{H}" [, ] + spf.go:923: macro "H": ["H" "H" "" "" ""] + spf.go:1020: macro expanded "%{H}" to "JUMPIN%27+JUPITER" + spf.go:514: void lookup: nxdomain spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [trailing-dot-exp] + yml_test.go:260: success: fail, matched all [invalid-hello-macro] + yml_test.go:251: test invalid-macro-char + yml_test.go:253: checkhost 192.168.218.40 test@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" + spf.go:426: "exists:%(ir).sbl.example.com" permerror, invalid macro + yml_test.go:260: success: permerror, invalid macro [invalid-macro-char] yml_test.go:251: test invalid-embedded-macro-char yml_test.go:253: checkhost 192.168.218.40 test@e1e.example.com spf.go:308: check "e1e.example.com" 0 0 spf.go:330: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" spf.go:426: "exists:foo%(ir).sbl.example.com" permerror, invalid macro yml_test.go:260: success: permerror, invalid macro [invalid-embedded-macro-char] + yml_test.go:251: test invalid-trailing-macro-char + yml_test.go:253: checkhost 192.168.218.40 test@e1t.example.com + spf.go:308: check "e1t.example.com" 0 0 + spf.go:330: dns record "v=spf1 exists:foo%.sbl.example.com ?all" + spf.go:426: "exists:foo%.sbl.example.com" permerror, invalid macro + yml_test.go:260: success: permerror, invalid macro [invalid-trailing-macro-char] yml_test.go:251: test macro-mania-in-domain yml_test.go:253: checkhost 1.2.3.4 test@e1a.example.com spf.go:308: check "e1a.example.com" 0 0 @@ -4844,18 +4867,38 @@ spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] spf.go:406: "a:macro%%percent%_%_space%-url-space.example.com" pass, matched a yml_test.go:260: success: pass, matched a [macro-mania-in-domain] - yml_test.go:251: test exp-txt-macro-char - yml_test.go:253: checkhost 192.168.218.40 test@e3.example.com - spf.go:308: check "e3.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=%{ir}.example.com" + yml_test.go:251: test p-macro-ip4-novalid + yml_test.go:253: checkhost 192.168.218.40 test@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exp-txt-macro-char] - yml_test.go:251: test upper-macro - yml_test.go:253: checkhost 192.168.218.42 ~jack&jill=up-a_b3.c@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=msg8.%{D2}" + yml_test.go:260: success: fail, matched all [p-macro-ip4-novalid] + yml_test.go:251: test p-macro-ip6-valid + yml_test.go:253: checkhost cafe:babe::3 test@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [upper-macro] + yml_test.go:260: success: fail, matched all [p-macro-ip6-valid] + yml_test.go:251: test hello-domain-literal + yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com + spf.go:308: check "e9.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:%{H} -all" + spf.go:747: masks on "a:%{H}", "e9.example.com": "%{H}" [, ] + spf.go:923: macro "H": ["H" "H" "" "" ""] + spf.go:1020: macro expanded "%{H}" to "%5B192.168.218.40%5D" + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [hello-domain-literal] + yml_test.go:251: test macro-multiple-delimiters + yml_test.go:253: checkhost 1.2.3.4 foo-bar+zip+quux@e12.example.com + spf.go:308: check "e12.example.com" 0 0 + spf.go:330: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" + spf.go:923: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] + spf.go:923: macro "d2": ["d2" "d" "2" "" ""] + spf.go:1020: macro expanded "%{l2r+-}.user.%{d2}" to "bar.foo.user.example.com" + spf.go:640: exists match: 127.0.0.2 + spf.go:426: "exists:%{l2r+-}.user.%{d2}" pass, matched exists + yml_test.go:260: success: pass, matched exists [macro-multiple-delimiters] yml_test.go:251: test require-valid-helo yml_test.go:253: checkhost 1.2.3.4 test@e10.example.com spf.go:308: check "e10.example.com" 0 0 @@ -4871,6 +4914,45 @@ spf.go:397: all: pass spf.go:401: "include:_spfh.%{d2}" fail, matched all yml_test.go:260: success: fail, matched all [require-valid-helo] + yml_test.go:251: test trailing-dot-exp + yml_test.go:253: checkhost 192.168.218.40 test@exp.example.com + spf.go:308: check "exp.example.com" 0 0 + spf.go:330: dns record "v=spf1 exp=msg.example.com. -all" + spf.go:430: exp= ignored + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [trailing-dot-exp] + yml_test.go:251: test exp-txt-macro-char + yml_test.go:253: checkhost 192.168.218.40 test@e3.example.com + spf.go:308: check "e3.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=%{ir}.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [exp-txt-macro-char] + yml_test.go:251: test v-macro-ip4 + yml_test.go:253: checkhost 192.168.218.40 test@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e4msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [v-macro-ip4] + yml_test.go:251: test undef-macro + yml_test.go:253: checkhost cafe:babe::c0a8:da28 test@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:%{a}.example.com -all" + spf.go:747: masks on "a:%{a}.example.com", "e5.example.com": "%{a}.example.com" [, ] + spf.go:923: macro "a": [] + spf.go:406: "a:%{a}.example.com" permerror, invalid macro + yml_test.go:260: success: permerror, invalid macro [undef-macro] + yml_test.go:251: test p-macro-ip6-novalid + yml_test.go:253: checkhost cafe:babe::1 test@e6.example.com + spf.go:308: check "e6.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [p-macro-ip6-novalid] + yml_test.go:251: test upper-macro + yml_test.go:253: checkhost 192.168.218.42 ~jack&jill=up-a_b3.c@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 -all exp=msg8.%{D2}" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [upper-macro] yml_test.go:251: test macro-reverse-split-on-dash yml_test.go:253: checkhost 1.2.3.4 philip-gladstone-test@e11.example.com spf.go:308: check "e11.example.com" 0 0 @@ -4882,44 +4964,6 @@ spf.go:640: exists match: 127.0.0.2 spf.go:426: "exists:%{i}.%{l2r-}.user.%{d2}" pass, matched exists yml_test.go:260: success: pass, matched exists [macro-reverse-split-on-dash] - yml_test.go:251: test invalid-macro-char - yml_test.go:253: checkhost 192.168.218.40 test@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" - spf.go:426: "exists:%(ir).sbl.example.com" permerror, invalid macro - yml_test.go:260: success: permerror, invalid macro [invalid-macro-char] - yml_test.go:251: test invalid-trailing-macro-char - yml_test.go:253: checkhost 192.168.218.40 test@e1t.example.com - spf.go:308: check "e1t.example.com" 0 0 - spf.go:330: dns record "v=spf1 exists:foo%.sbl.example.com ?all" - spf.go:426: "exists:foo%.sbl.example.com" permerror, invalid macro - yml_test.go:260: success: permerror, invalid macro [invalid-trailing-macro-char] - yml_test.go:251: test p-macro-ip4-valid - yml_test.go:253: checkhost 192.168.218.41 test@e6.example.com - spf.go:308: check "e6.example.com" 0 0 - spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip4-valid] - yml_test.go:251: test invalid-hello-macro - yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com - spf.go:308: check "e9.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:%{H} -all" - spf.go:747: masks on "a:%{H}", "e9.example.com": "%{H}" [, ] - spf.go:923: macro "H": ["H" "H" "" "" ""] - spf.go:1020: macro expanded "%{H}" to "JUMPIN%27+JUPITER" - spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [invalid-hello-macro] - yml_test.go:251: test hello-domain-literal - yml_test.go:253: checkhost 192.168.218.40 test@e9.example.com - spf.go:308: check "e9.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:%{H} -all" - spf.go:747: masks on "a:%{H}", "e9.example.com": "%{H}" [, ] - spf.go:923: macro "H": ["H" "H" "" "" ""] - spf.go:1020: macro expanded "%{H}" to "%5B192.168.218.40%5D" - spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [hello-domain-literal] yml_test.go:251: test trailing-dot-domain yml_test.go:253: checkhost 192.168.218.40 test@example.com spf.go:308: check "example.com" 0 0 @@ -4944,52 +4988,21 @@ spf.go:330: dns record "v=spf1 -all exp=e4msg.example.com" spf.go:397: all: fail yml_test.go:260: success: fail, matched all [v-macro-ip6] - yml_test.go:251: test undef-macro - yml_test.go:253: checkhost cafe:babe::c0a8:da28 test@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:%{a}.example.com -all" - spf.go:747: masks on "a:%{a}.example.com", "e5.example.com": "%{a}.example.com" [, ] - spf.go:923: macro "a": [] - spf.go:406: "a:%{a}.example.com" permerror, invalid macro - yml_test.go:260: success: permerror, invalid macro [undef-macro] - yml_test.go:251: test p-macro-ip6-valid - yml_test.go:253: checkhost cafe:babe::3 test@e6.example.com + yml_test.go:251: test p-macro-ip4-valid + yml_test.go:253: checkhost 192.168.218.41 test@e6.example.com spf.go:308: check "e6.example.com" 0 0 spf.go:330: dns record "v=spf1 -all exp=e6msg.example.com" spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [p-macro-ip6-valid] + yml_test.go:260: success: fail, matched all [p-macro-ip4-valid] yml_test.go:162: suite: Processing limits - yml_test.go:167: domain e3.example.com - yml_test.go:169: SPF: [v=spf1 include:e2.example.com] - yml_test.go:169: A: [1.2.3.8] - yml_test.go:167: domain 5.3.2.1.in-addr.arpa - yml_test.go:169: PTR: [e1.example.com.] - yml_test.go:169: PTR: [e2.example.com.] - yml_test.go:169: PTR: [e3.example.com.] - yml_test.go:169: PTR: [e4.example.com.] - yml_test.go:169: PTR: [example.com.] - yml_test.go:169: PTR: [e6.example.com.] - yml_test.go:169: PTR: [e7.example.com.] - yml_test.go:169: PTR: [e8.example.com.] - yml_test.go:169: PTR: [e9.example.com.] - yml_test.go:169: PTR: [e10.example.com.] - yml_test.go:169: PTR: [e5.example.com.] - yml_test.go:167: domain e7.example.com - yml_test.go:169: SPF: [v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all] - yml_test.go:169: A: [1.2.3.20] - yml_test.go:167: domain mail.example.com - yml_test.go:169: A: [1.2.3.4] - yml_test.go:167: domain e5.example.com - yml_test.go:169: SPF: [v=spf1 ptr] - yml_test.go:169: A: [1.2.3.5] yml_test.go:167: domain e8.example.com yml_test.go:169: SPF: [v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all] yml_test.go:169: A: [1.2.3.4] + yml_test.go:167: domain e9.example.com + yml_test.go:169: SPF: [v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all] + yml_test.go:169: A: [1.2.3.21] yml_test.go:167: domain e12.example.com yml_test.go:169: TXT: [v=spf1 a:err.example.com a:err1.example.com ?all] - yml_test.go:167: domain e2.example.com - yml_test.go:169: SPF: [v=spf1 include:e3.example.com] - yml_test.go:169: A: [1.2.3.7] yml_test.go:167: domain e4.example.com yml_test.go:169: SPF: [v=spf1 mx] yml_test.go:169: MX: {0 mail.example.com} @@ -5004,17 +5017,44 @@ yml_test.go:169: MX: {9 mail.example.com} yml_test.go:169: MX: {10 e4.example.com} yml_test.go:169: A: [1.2.3.5] - yml_test.go:167: domain e9.example.com - yml_test.go:169: SPF: [v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all] - yml_test.go:169: A: [1.2.3.21] + yml_test.go:167: domain inc.example.com + yml_test.go:169: SPF: [v=spf1 a a a a a a a a] + yml_test.go:169: A: [1.2.3.10] yml_test.go:167: domain e11.example.com yml_test.go:169: TXT: [v=spf1 a:err.example.com a:err1.example.com a:err2.example.com ?all] + yml_test.go:167: domain e3.example.com + yml_test.go:169: SPF: [v=spf1 include:e2.example.com] + yml_test.go:169: A: [1.2.3.8] + yml_test.go:167: domain e5.example.com + yml_test.go:169: SPF: [v=spf1 ptr] + yml_test.go:169: A: [1.2.3.5] + yml_test.go:167: domain 5.3.2.1.in-addr.arpa + yml_test.go:169: PTR: [e1.example.com.] + yml_test.go:169: PTR: [e2.example.com.] + yml_test.go:169: PTR: [e3.example.com.] + yml_test.go:169: PTR: [e4.example.com.] + yml_test.go:169: PTR: [example.com.] + yml_test.go:169: PTR: [e6.example.com.] + yml_test.go:169: PTR: [e7.example.com.] + yml_test.go:169: PTR: [e8.example.com.] + yml_test.go:169: PTR: [e9.example.com.] + yml_test.go:169: PTR: [e10.example.com.] + yml_test.go:169: PTR: [e5.example.com.] + yml_test.go:167: domain mail.example.com + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain e1.example.com yml_test.go:169: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] yml_test.go:169: A: [1.2.3.6] - yml_test.go:167: domain inc.example.com - yml_test.go:169: SPF: [v=spf1 a a a a a a a a] - yml_test.go:169: A: [1.2.3.10] + yml_test.go:167: domain e2.example.com + yml_test.go:169: SPF: [v=spf1 include:e3.example.com] + yml_test.go:169: A: [1.2.3.7] + yml_test.go:167: domain e6.example.com + yml_test.go:169: SPF: [v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all] + yml_test.go:169: A: [1.2.3.8] + yml_test.go:169: MX: {10 e6.example.com} + yml_test.go:167: domain e7.example.com + yml_test.go:169: SPF: [v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all] + yml_test.go:169: A: [1.2.3.20] yml_test.go:167: domain e10.example.com yml_test.go:169: SPF: [v=spf1 a -all] yml_test.go:169: A: [1.2.3.1] @@ -5029,10 +5069,101 @@ yml_test.go:169: A: [1.2.3.10] yml_test.go:169: A: [1.2.3.11] yml_test.go:169: A: [1.2.3.12] - yml_test.go:167: domain e6.example.com - yml_test.go:169: SPF: [v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all] - yml_test.go:169: A: [1.2.3.8] - yml_test.go:169: MX: {10 e6.example.com} + yml_test.go:251: test redirect-loop + yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com + spf.go:308: check "e1.example.com" 0 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 1 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 2 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 3 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 4 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 5 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 6 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 7 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 8 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 9 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 10 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:308: check "e1.example.com" 11 0 + spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:373: lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached + yml_test.go:260: success: permerror, lookup limit reached [redirect-loop] + yml_test.go:251: test mx-limit + yml_test.go:253: checkhost 1.2.3.5 foo@e4.example.com + spf.go:308: check "e4.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx" + spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] + spf.go:411: "mx" permerror, too many MX records + yml_test.go:260: success: permerror, too many MX records [mx-limit] + yml_test.go:251: test false-a-limit + yml_test.go:253: checkhost 1.2.3.12 foo@e10.example.com + spf.go:308: check "e10.example.com" 0 0 + spf.go:330: dns record "v=spf1 a -all" + spf.go:747: masks on "a", "e10.example.com": "e10.example.com" [, ] + spf.go:768: a match: 1.2.3.12, 1.2.3.12, [, ] + spf.go:406: "a" pass, matched a + yml_test.go:260: success: pass, matched a [false-a-limit] + yml_test.go:251: test void-at-limit + yml_test.go:253: checkhost 1.2.3.4 foo@e12.example.com + spf.go:308: check "e12.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:err.example.com a:err1.example.com ?all" + spf.go:747: masks on "a:err.example.com", "e12.example.com": "err.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:747: masks on "a:err1.example.com", "e12.example.com": "err1.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:397: all: neutral + yml_test.go:260: success: neutral, matched all [void-at-limit] + yml_test.go:251: test void-over-limit + yml_test.go:253: checkhost 1.2.3.4 foo@e11.example.com + spf.go:308: check "e11.example.com" 0 0 + spf.go:330: dns record "v=spf1 a:err.example.com a:err1.example.com a:err2.example.com ?all" + spf.go:747: masks on "a:err.example.com", "e11.example.com": "err.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:747: masks on "a:err1.example.com", "e11.example.com": "err1.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:747: masks on "a:err2.example.com", "e11.example.com": "err2.example.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:378: void lookup limit reached + yml_test.go:260: success: permerror, void lookup limit reached [void-over-limit] + yml_test.go:251: test include-over-limit + yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com + spf.go:308: check "e9.example.com" 0 0 + spf.go:330: dns record "v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all" + spf.go:747: masks on "a", "e9.example.com": "e9.example.com" [, ] + spf.go:308: check "inc.example.com" 2 0 + spf.go:330: dns record "v=spf1 a a a a a a a a" + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] + spf.go:444: fallback to neutral + spf.go:747: masks on "a", "e9.example.com": "e9.example.com" [, ] + spf.go:373: lookup limit reached + yml_test.go:260: success: permerror, lookup limit reached [include-over-limit] yml_test.go:251: test include-loop yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -5072,21 +5203,23 @@ spf.go:401: "include:e2.example.com" permerror, lookup limit reached spf.go:401: "include:e3.example.com" permerror, lookup limit reached yml_test.go:260: success: permerror, lookup limit reached [include-loop] - yml_test.go:251: test mx-limit - yml_test.go:253: checkhost 1.2.3.5 foo@e4.example.com - spf.go:308: check "e4.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx" - spf.go:780: masks on "mx", "e4.example.com": "e4.example.com" [, ] - spf.go:411: "mx" permerror, too many MX records - yml_test.go:260: success: permerror, too many MX records [mx-limit] - yml_test.go:251: test false-a-limit - yml_test.go:253: checkhost 1.2.3.12 foo@e10.example.com - spf.go:308: check "e10.example.com" 0 0 - spf.go:330: dns record "v=spf1 a -all" - spf.go:747: masks on "a", "e10.example.com": "e10.example.com" [, ] - spf.go:768: a match: 1.2.3.12, 1.2.3.12, [, ] - spf.go:406: "a" pass, matched a - yml_test.go:260: success: pass, matched a [false-a-limit] + yml_test.go:251: test ptr-limit + yml_test.go:253: checkhost 1.2.3.5 foo@e5.example.com + spf.go:308: check "e5.example.com" 0 0 + spf.go:330: dns record "v=spf1 ptr" + spf.go:579: ptr names trimmed 11 down to 10 + spf.go:591: ptr forward resolution "e1.example.com." -> [{"1.2.3.6" ""}] + spf.go:591: ptr forward resolution "e2.example.com." -> [{"1.2.3.7" ""}] + spf.go:591: ptr forward resolution "e3.example.com." -> [{"1.2.3.8" ""}] + spf.go:591: ptr forward resolution "e4.example.com." -> [{"1.2.3.5" ""}] + spf.go:591: ptr forward resolution "e6.example.com." -> [{"1.2.3.8" ""}] + spf.go:591: ptr forward resolution "e7.example.com." -> [{"1.2.3.20" ""}] + spf.go:591: ptr forward resolution "e8.example.com." -> [{"1.2.3.4" ""}] + spf.go:591: ptr forward resolution "e9.example.com." -> [{"1.2.3.21" ""}] + spf.go:591: ptr forward resolution "e10.example.com." -> [{"1.2.3.1" ""} {"1.2.3.2" ""} {"1.2.3.3" ""} {"1.2.3.4" ""} {"1.2.3.5" ""} {"1.2.3.6" ""} {"1.2.3.7" ""} {"1.2.3.8" ""} {"1.2.3.9" ""} {"1.2.3.10" ""} {"1.2.3.11" ""} {"1.2.3.12" ""}] + spf.go:600: ptr evaluating "e5.example.com" in ["e1.example.com." "e2.example.com." "e3.example.com." "e4.example.com." "e6.example.com." "e7.example.com." "e8.example.com." "e9.example.com." "e10.example.com."] + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [ptr-limit] yml_test.go:251: test mech-at-limit yml_test.go:253: checkhost 1.2.3.4 foo@e6.example.com spf.go:308: check "e6.example.com" 0 0 @@ -5108,92 +5241,6 @@ spf.go:536: ip match: 1.2.3.4 spf.go:416: "ip4:1.2.3.4" pass, matched ip yml_test.go:260: success: pass, matched ip [mech-at-limit] - yml_test.go:251: test include-at-limit - yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com - spf.go:308: check "e8.example.com" 0 0 - spf.go:330: dns record "v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all" - spf.go:747: masks on "a", "e8.example.com": "e8.example.com" [, ] - spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] - spf.go:406: "a" pass, matched a - yml_test.go:260: success: pass, matched a [include-at-limit] - yml_test.go:251: test void-at-limit - yml_test.go:253: checkhost 1.2.3.4 foo@e12.example.com - spf.go:308: check "e12.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:err.example.com a:err1.example.com ?all" - spf.go:747: masks on "a:err.example.com", "e12.example.com": "err.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:747: masks on "a:err1.example.com", "e12.example.com": "err1.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:397: all: neutral - yml_test.go:260: success: neutral, matched all [void-at-limit] - yml_test.go:251: test void-over-limit - yml_test.go:253: checkhost 1.2.3.4 foo@e11.example.com - spf.go:308: check "e11.example.com" 0 0 - spf.go:330: dns record "v=spf1 a:err.example.com a:err1.example.com a:err2.example.com ?all" - spf.go:747: masks on "a:err.example.com", "e11.example.com": "err.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:747: masks on "a:err1.example.com", "e11.example.com": "err1.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:747: masks on "a:err2.example.com", "e11.example.com": "err2.example.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:378: void lookup limit reached - yml_test.go:260: success: permerror, void lookup limit reached [void-over-limit] - yml_test.go:251: test redirect-loop - yml_test.go:253: checkhost 1.2.3.4 foo@e1.example.com - spf.go:308: check "e1.example.com" 0 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 1 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 2 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 3 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 4 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 5 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 6 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 7 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 8 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 9 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 10 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:308: check "e1.example.com" 11 0 - spf.go:330: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:373: lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - spf.go:434: "redirect=e1.example.com": permerror, lookup limit reached - yml_test.go:260: success: permerror, lookup limit reached [redirect-loop] - yml_test.go:251: test ptr-limit - yml_test.go:253: checkhost 1.2.3.5 foo@e5.example.com - spf.go:308: check "e5.example.com" 0 0 - spf.go:330: dns record "v=spf1 ptr" - spf.go:579: ptr names trimmed 11 down to 10 - spf.go:591: ptr forward resolution "e1.example.com." -> [{"1.2.3.6" ""}] - spf.go:591: ptr forward resolution "e2.example.com." -> [{"1.2.3.7" ""}] - spf.go:591: ptr forward resolution "e3.example.com." -> [{"1.2.3.8" ""}] - spf.go:591: ptr forward resolution "e4.example.com." -> [{"1.2.3.5" ""}] - spf.go:591: ptr forward resolution "e6.example.com." -> [{"1.2.3.8" ""}] - spf.go:591: ptr forward resolution "e7.example.com." -> [{"1.2.3.20" ""}] - spf.go:591: ptr forward resolution "e8.example.com." -> [{"1.2.3.4" ""}] - spf.go:591: ptr forward resolution "e9.example.com." -> [{"1.2.3.21" ""}] - spf.go:591: ptr forward resolution "e10.example.com." -> [{"1.2.3.1" ""} {"1.2.3.2" ""} {"1.2.3.3" ""} {"1.2.3.4" ""} {"1.2.3.5" ""} {"1.2.3.6" ""} {"1.2.3.7" ""} {"1.2.3.8" ""} {"1.2.3.9" ""} {"1.2.3.10" ""} {"1.2.3.11" ""} {"1.2.3.12" ""}] - spf.go:600: ptr evaluating "e5.example.com" in ["e1.example.com." "e2.example.com." "e3.example.com." "e4.example.com." "e6.example.com." "e7.example.com." "e8.example.com." "e9.example.com." "e10.example.com."] - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [ptr-limit] yml_test.go:251: test mech-over-limit yml_test.go:253: checkhost 1.2.3.4 foo@e7.example.com spf.go:308: check "e7.example.com" 0 0 @@ -5209,26 +5256,20 @@ spf.go:514: void lookup: nxdomain spf.go:378: void lookup limit reached yml_test.go:260: success: permerror, void lookup limit reached [mech-over-limit] - yml_test.go:251: test include-over-limit - yml_test.go:253: checkhost 1.2.3.4 foo@e9.example.com - spf.go:308: check "e9.example.com" 0 0 - spf.go:330: dns record "v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all" - spf.go:747: masks on "a", "e9.example.com": "e9.example.com" [, ] - spf.go:308: check "inc.example.com" 2 0 - spf.go:330: dns record "v=spf1 a a a a a a a a" - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:747: masks on "a", "inc.example.com": "inc.example.com" [, ] - spf.go:444: fallback to neutral - spf.go:747: masks on "a", "e9.example.com": "e9.example.com" [, ] - spf.go:373: lookup limit reached - yml_test.go:260: success: permerror, lookup limit reached [include-over-limit] + yml_test.go:251: test include-at-limit + yml_test.go:253: checkhost 1.2.3.4 foo@e8.example.com + spf.go:308: check "e8.example.com" 0 0 + spf.go:330: dns record "v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all" + spf.go:747: masks on "a", "e8.example.com": "e8.example.com" [, ] + spf.go:768: a match: 1.2.3.4, 1.2.3.4, [, ] + spf.go:406: "a" pass, matched a + yml_test.go:260: success: pass, matched a [include-at-limit] yml_test.go:162: suite: Test cases from implementation bugs + yml_test.go:167: domain smtp1.example.com + yml_test.go:169: A: [192.0.2.26] + yml_test.go:169: AAAA: [2001:db8:ff0:200::2] + yml_test.go:167: domain 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.F.F.0.8.B.D.0.1.0.0.2.ip6.arpa + yml_test.go:169: PTR: [smtp6-v.fe.example.org] yml_test.go:167: domain a.example.org yml_test.go:169: TXT: [Another TXT record.] yml_test.go:169: TXT: [v=spf1 ip4:192.0.2.225 ?include:webmail.pair.com ?include:relay.pair.com -all] @@ -5238,15 +5279,11 @@ yml_test.go:167: domain mail.example.org yml_test.go:169: SPF: [v=spf1 include:a.example.org include:b.example.org -all] yml_test.go:169: A: [192.0.2.28] - yml_test.go:167: domain relay.pair.com - yml_test.go:169: TXT: [v=spf1 ip4:209.68.5.9/32 ip4:209.68.5.15/32 a -all] - yml_test.go:169: A: [192.0.2.131] - yml_test.go:167: domain example.org - yml_test.go:169: SPF: [v=spf1 mx redirect=_spf.example.com] - yml_test.go:169: MX: {10 smtp.example.org} - yml_test.go:169: MX: {10 smtp1.example.com} - yml_test.go:167: domain 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.F.F.0.8.B.D.0.1.0.0.2.ip6.arpa - yml_test.go:169: PTR: [smtp6-v.fe.example.org] + yml_test.go:167: domain webmail.pair.com + yml_test.go:169: TXT: [v=spf1 ip4:66.39.3.0/24 ip4:209.68.6.94/32] + yml_test.go:167: domain smtp.example.org + yml_test.go:169: A: [198.51.100.2] + yml_test.go:169: AAAA: [2001:db8:ff0:100::3] yml_test.go:167: domain smtp6-v.fe.example.org yml_test.go:169: AAAA: [2001:db8:ff0:100::2] yml_test.go:167: domain _spf.example.com @@ -5255,14 +5292,13 @@ yml_test.go:169: TXT: [Sender domain not allowed from this host. Please see http://www.openspf.org/Why?s=mfrom&id=%{S}&ip=%{C}&r=%{R}] yml_test.go:167: domain b.example.org yml_test.go:169: CNAME: a.example.org - yml_test.go:167: domain webmail.pair.com - yml_test.go:169: TXT: [v=spf1 ip4:66.39.3.0/24 ip4:209.68.6.94/32] - yml_test.go:167: domain smtp.example.org - yml_test.go:169: A: [198.51.100.2] - yml_test.go:169: AAAA: [2001:db8:ff0:100::3] - yml_test.go:167: domain smtp1.example.com - yml_test.go:169: A: [192.0.2.26] - yml_test.go:169: AAAA: [2001:db8:ff0:200::2] + yml_test.go:167: domain relay.pair.com + yml_test.go:169: TXT: [v=spf1 ip4:209.68.5.9/32 ip4:209.68.5.15/32 a -all] + yml_test.go:169: A: [192.0.2.131] + yml_test.go:167: domain example.org + yml_test.go:169: SPF: [v=spf1 mx redirect=_spf.example.com] + yml_test.go:169: MX: {10 smtp.example.org} + yml_test.go:169: MX: {10 smtp1.example.com} yml_test.go:251: test bytes-bug yml_test.go:253: checkhost 2001:db8:ff0:100::2 test@example.org spf.go:308: check "example.org" 0 0 @@ -5303,15 +5339,15 @@ spf.go:397: all: fail spf.go:397: all: fail yml_test.go:260: success: fail, matched all [cname-aliasing] ---- PASS: TestRFC7208 (0.03s) +--- PASS: TestRFC7208 (0.07s) === RUN TestPySPF yml_test.go:162: suite: - yml_test.go:167: domain example.co.uk - yml_test.go:169: SPF: [v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all] yml_test.go:167: domain lyme.eater.example.co.uk.1.2.3.5.spf.example.net yml_test.go:169: A: [127.0.0.1] - yml_test.go:251: test exists-fail - yml_test.go:253: checkhost 1.2.3.4 lyme.eater@example.co.uk + yml_test.go:167: domain example.co.uk + yml_test.go:169: SPF: [v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all] + yml_test.go:251: test exists-pass + yml_test.go:253: checkhost 1.2.3.5 lyme.eater@example.co.uk spf.go:308: check "example.co.uk" 0 0 spf.go:330: dns record "v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all" spf.go:780: masks on "mx/26", "example.co.uk": "example.co.uk" [/26, ] @@ -5319,12 +5355,12 @@ spf.go:923: macro "l": ["l" "l" "" "" ""] spf.go:923: macro "d": ["d" "d" "" "" ""] spf.go:923: macro "i": ["i" "i" "" "" ""] - spf.go:1020: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.4.spf.example.net" - spf.go:514: void lookup: nxdomain - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [exists-fail] - yml_test.go:251: test exists-pass - yml_test.go:253: checkhost 1.2.3.5 lyme.eater@example.co.uk + spf.go:1020: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.5.spf.example.net" + spf.go:640: exists match: 127.0.0.1 + spf.go:426: "exists:%{l}.%{d}.%{i}.spf.example.net" pass, matched exists + yml_test.go:260: success: pass, matched exists [exists-pass] + yml_test.go:251: test exists-fail + yml_test.go:253: checkhost 1.2.3.4 lyme.eater@example.co.uk spf.go:308: check "example.co.uk" 0 0 spf.go:330: dns record "v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all" spf.go:780: masks on "mx/26", "example.co.uk": "example.co.uk" [/26, ] @@ -5332,10 +5368,10 @@ spf.go:923: macro "l": ["l" "l" "" "" ""] spf.go:923: macro "d": ["d" "d" "" "" ""] spf.go:923: macro "i": ["i" "i" "" "" ""] - spf.go:1020: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.5.spf.example.net" - spf.go:640: exists match: 127.0.0.1 - spf.go:426: "exists:%{l}.%{d}.%{i}.spf.example.net" pass, matched exists - yml_test.go:260: success: pass, matched exists [exists-pass] + spf.go:1020: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.4.spf.example.net" + spf.go:514: void lookup: nxdomain + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [exists-fail] yml_test.go:162: suite: yml_test.go:167: domain examplea.com yml_test.go:169: SPF: [v=spf1 a mx include:b.com] @@ -5350,6 +5386,18 @@ yml_test.go:167: domain examplef.com yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:169: SPF: [v=spf1 +all] + yml_test.go:251: test incloop + yml_test.go:253: checkhost 66.150.186.79 chuckvsr@examplea.com + spf.go:308: check "examplea.com" 0 0 + spf.go:330: dns record "v=spf1 a mx include:b.com" + spf.go:747: masks on "a", "examplea.com": "examplea.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:780: masks on "mx", "examplea.com": "examplea.com" [, ] + spf.go:514: void lookup: nxdomain + spf.go:308: check "b.com" 3 2 + spf.go:314: dns domain not found: lookup : domain not found (for testing) + spf.go:401: "include:b.com" permerror, no DNS record found + yml_test.go:260: success: permerror, no DNS record found [incloop] yml_test.go:251: test badall yml_test.go:253: checkhost 66.150.186.79 chuckvsr@examplec.com spf.go:308: check "examplec.com" 0 0 @@ -5367,29 +5415,17 @@ spf.go:330: dns record "v=spf1 ip4:1.2.3.4:8080" spf.go:416: "ip4:1.2.3.4:8080" permerror, invalid ipX value yml_test.go:260: success: permerror, invalid ipX value [badip] - yml_test.go:251: test incloop - yml_test.go:253: checkhost 66.150.186.79 chuckvsr@examplea.com - spf.go:308: check "examplea.com" 0 0 - spf.go:330: dns record "v=spf1 a mx include:b.com" - spf.go:747: masks on "a", "examplea.com": "examplea.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:780: masks on "mx", "examplea.com": "examplea.com" [, ] - spf.go:514: void lookup: nxdomain - spf.go:308: check "b.com" 3 2 - spf.go:314: dns domain not found: lookup : domain not found (for testing) - spf.go:401: "include:b.com" permerror, no DNS record found - yml_test.go:260: success: permerror, no DNS record found [incloop] yml_test.go:162: suite: + yml_test.go:167: domain example2.com + yml_test.go:169: SPF: [v=spf1mx] + yml_test.go:167: domain mail.example1.com + yml_test.go:169: A: [1.2.3.4] yml_test.go:167: domain example3.com yml_test.go:169: SPF: [v=spf1 mx] yml_test.go:169: SPF: [v=spf1 mx] yml_test.go:169: MX: {0 mail.example1.com} yml_test.go:167: domain example1.com yml_test.go:169: SPF: [v=spf1] - yml_test.go:167: domain example2.com - yml_test.go:169: SPF: [v=spf1mx] - yml_test.go:167: domain mail.example1.com - yml_test.go:169: A: [1.2.3.4] yml_test.go:251: test nospace1 yml_test.go:253: checkhost 1.2.3.4 foo@example2.com spf.go:308: check "example2.com" 0 0 @@ -5411,6 +5447,9 @@ spf.go:411: "mx" pass, matched mx yml_test.go:260: success: pass, matched mx [nospace2] yml_test.go:162: suite: + yml_test.go:167: domain mail.example.com + yml_test.go:169: MX: {0 } + yml_test.go:169: SPF: [v=spf1 mx] yml_test.go:167: domain example.com yml_test.go:169: SPF: [v=spf1 -all] yml_test.go:167: domain e1.example.com @@ -5426,9 +5465,20 @@ yml_test.go:169: yml_test.go:167: domain e3.example.com yml_test.go:169: SPF: [v=spf1 a:mx1.example.com mx:mx1.example.com ~all] - yml_test.go:167: domain mail.example.com - yml_test.go:169: MX: {0 } - yml_test.go:169: SPF: [v=spf1 mx] + yml_test.go:251: test emptyMX + yml_test.go:253: checkhost 1.2.3.4 + spf.go:308: check "mail.example.com" 0 0 + spf.go:330: dns record "v=spf1 mx" + spf.go:780: masks on "mx", "mail.example.com": "mail.example.com" [, ] + spf.go:828: mx ips: [] + spf.go:444: fallback to neutral + yml_test.go:260: success: neutral, [emptyMX] + yml_test.go:251: test localhost + yml_test.go:253: checkhost 127.0.0.1 root@example.com + spf.go:308: check "example.com" 0 0 + spf.go:330: dns record "v=spf1 -all" + spf.go:397: all: fail + yml_test.go:260: success: fail, matched all [localhost] yml_test.go:251: test cname-chain yml_test.go:253: checkhost 1.2.3.4 foo@e2.example.com spf.go:308: check "e2.example.com" 0 0 @@ -5447,23 +5497,9 @@ spf.go:514: void lookup: nxdomain spf.go:397: all: softfail yml_test.go:260: success: softfail, matched all [null-cname] - yml_test.go:251: test emptyMX - yml_test.go:253: checkhost 1.2.3.4 - spf.go:308: check "mail.example.com" 0 0 - spf.go:330: dns record "v=spf1 mx" - spf.go:780: masks on "mx", "mail.example.com": "mail.example.com" [, ] - spf.go:828: mx ips: [] - spf.go:444: fallback to neutral - yml_test.go:260: success: neutral, [emptyMX] - yml_test.go:251: test localhost - yml_test.go:253: checkhost 127.0.0.1 root@example.com - spf.go:308: check "example.com" 0 0 - spf.go:330: dns record "v=spf1 -all" - spf.go:397: all: fail - yml_test.go:260: success: fail, matched all [localhost] --- PASS: TestPySPF (0.00s) PASS -ok blitiri.com.ar/go/spf 0.085s +ok blitiri.com.ar/go/spf 0.165s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -5491,12 +5527,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/19558/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/60666 and its subdirectories -I: Current time: Fri Jan 2 03:57:23 -12 2026 -I: pbuilder-time-stamp: 1767369443 +I: removing directory /srv/workspace/pbuilder/19558 and its subdirectories +I: Current time: Sat Nov 30 23:35:30 +14 2024 +I: pbuilder-time-stamp: 1732959330