Diff of the two buildlogs: -- --- b1/build.log 2021-07-22 21:11:58.590971877 +0000 +++ b2/build.log 2021-07-22 21:13:08.964306267 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jul 22 09:10:26 -12 2021 -I: pbuilder-time-stamp: 1626988226 +I: Current time: Thu Aug 25 17:35:00 +14 2022 +I: pbuilder-time-stamp: 1661398500 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./golang-blitiri-go-spf_1.1.0-1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.TKSDy8ii/trustedkeys.kbx': General error -gpgv: Signature made Mon Jun 29 03:19:37 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.Wx2gxHrz/trustedkeys.kbx': General error +gpgv: Signature made Tue Jun 30 05:19:37 2020 +14 gpgv: using RSA key DAA6EFF1C627EA1C26B1A692AA230FC45F8C27B1 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./golang-blitiri-go-spf_1.1.0-1.dsc @@ -26,135 +26,169 @@ dpkg-source: info: unpacking golang-blitiri-go-spf_1.1.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/6094/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/868/tmp/hooks/D01_modify_environment starting +debug: Running on codethink11-arm64. +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 +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/868/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/868/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - 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='6094' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=868 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/tmp.S1766FwH0Z/pbuilderrc_eSXn --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.S1766FwH0Z/b1 --logfile b1/build.log golang-blitiri-go-spf_1.1.0-1.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16: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/tmp.S1766FwH0Z/pbuilderrc_33bc --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.S1766FwH0Z/b2 --logfile b2/build.log --extrapackages usrmerge golang-blitiri-go-spf_1.1.0-1.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink12-arm64 4.15.0-151-generic #157-Ubuntu SMP Fri Jul 9 21:03:48 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-151-generic #157-Ubuntu SMP Fri Jul 9 21:03:48 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Jun 21 14:26 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Feb 7 02:38 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Feb 7 02:38 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Feb 7 02:38 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Feb 7 02:38 more - -rwsr-xr-x 1 root root 51360 Feb 7 02:38 mount - -rwxr-xr-x 1 root root 14496 Feb 7 02:38 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 14:26 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 20 21:25 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Feb 7 02:38 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Feb 7 02:38 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Feb 7 02:38 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/6094/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Jun 22 2021 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Feb 8 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Feb 8 2021 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 178400 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 93744 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Feb 8 2021 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Feb 8 2021 more + -rwsr-xr-x 1 root root 51360 Feb 8 2021 mount + -rwxr-xr-x 1 root root 14496 Feb 8 2021 mountpoint + -rwxr-xr-x 1 root root 134808 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 2021 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Aug 25 17:35 sh -> bash + lrwxrwxrwx 1 root root 4 Aug 25 05:47 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Feb 8 2021 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 2021 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Feb 8 2021 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Feb 8 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/868/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -234,7 +268,7 @@ Get: 36 http://deb.debian.org/debian bullseye/main arm64 golang-go arm64 2:1.15~1 [23.9 kB] Get: 37 http://deb.debian.org/debian bullseye/main arm64 golang-any arm64 2:1.15~1 [4976 B] Get: 38 http://deb.debian.org/debian bullseye/main arm64 golang-gopkg-yaml.v2-dev all 2.4.0-1 [61.3 kB] -Fetched 74.9 MB in 1s (59.9 MB/s) +Fetched 74.9 MB in 1s (56.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19646 files and directories currently installed.) @@ -401,8 +435,45 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main arm64 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main arm64 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main arm64 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main arm64 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (1708 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(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 ... 32151 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/golang-blitiri-go-spf-1.1.0/ && 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.1.0-1_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/golang-blitiri-go-spf-1.1.0/ && 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.1.0-1_source.changes dpkg-buildpackage: info: source package golang-blitiri-go-spf dpkg-buildpackage: info: source version 1.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -422,42 +493,42 @@ dh_auto_build -O--buildsystem=golang cd obj-aarch64-linux-gnu && go install -trimpath -v -p 8 blitiri.com.ar/go/spf internal/unsafeheader -runtime/internal/sys internal/cpu -math/bits -unicode/utf8 +runtime/internal/sys internal/race -runtime/internal/atomic +unicode/utf8 +math/bits sync/atomic +runtime/internal/atomic unicode -runtime/internal/math internal/nettrace +runtime/internal/math +internal/bytealg runtime/cgo internal/testlog -internal/bytealg math runtime -sync internal/reflectlite +sync internal/singleflight math/rand -sort errors -io +sort internal/oserror -strconv +io vendor/golang.org/x/net/dns/dnsmessage +strconv syscall -strings bytes +strings reflect regexp/syntax -internal/syscall/unix internal/syscall/execenv +internal/syscall/unix time regexp -internal/poll context +internal/poll os internal/fmtsort fmt @@ -1073,20 +1144,20 @@ yml_test.go:152: suite: Simple successes yml_test.go:157: domain example.net yml_test.go:159: SPF: [v=spf1 +all] - yml_test.go:225: test test1 + yml_test.go:225: test test2 yml_test.go:227: checkhost 1.2.3.4 foobar@example.net - spf.go:129: check host with sender "1.2.3.4" "example.net" "foobar@example.net" ("example.net") + spf.go:129: check host with sender "1.2.3.4" "blargh" "foobar@example.net" ("example.net") spf.go:160: check example.net 1 spf.go:176: dns record "v=spf1 +all" spf.go:237: pass matched all - yml_test.go:234: success: pass, matched 'all' [test1] - yml_test.go:225: test test2 + yml_test.go:234: success: pass, matched 'all' [test2] + yml_test.go:225: test test1 yml_test.go:227: checkhost 1.2.3.4 foobar@example.net - spf.go:129: check host with sender "1.2.3.4" "blargh" "foobar@example.net" ("example.net") + spf.go:129: check host with sender "1.2.3.4" "example.net" "foobar@example.net" ("example.net") spf.go:160: check example.net 1 spf.go:176: dns record "v=spf1 +all" spf.go:237: pass matched all - yml_test.go:234: success: pass, matched 'all' [test2] + yml_test.go:234: success: pass, matched 'all' [test1] yml_test.go:152: suite: Simple failures yml_test.go:157: domain example.net yml_test.go:159: SPF: [v=spf1 -all] @@ -1107,49 +1178,27 @@ --- PASS: TestSimple (0.00s) === RUN TestRFC4408 yml_test.go:152: suite: Initial processing - yml_test.go:157: domain a.example.net - yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] - yml_test.go:157: domain exp.example.net - yml_test.go:159: TXT: [%{l}] yml_test.go:157: domain a12345678901234567890123456789012345678901234567890123456789012.example.com yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:157: domain hosed2.example.com - yml_test.go:159: SPF: [v=spf1 €a:example.net -all] - yml_test.go:157: domain example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain hosed.example.com - yml_test.go:159: SPF: [v=spf1 a:garbage.example.net -all] yml_test.go:157: domain hosed3.example.com yml_test.go:159: SPF: [v=spf1 a:example.net –all] + yml_test.go:157: domain exp.example.net + yml_test.go:159: TXT: [%{l}] + yml_test.go:157: domain example.net + yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] + yml_test.go:157: domain a.example.net + yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] + yml_test.go:157: domain hosed.example.com + yml_test.go:159: SPF: [v=spf1 a:garbage.example.net -all] + yml_test.go:157: domain hosed2.example.com + yml_test.go:159: SPF: [v=spf1 €a:example.net -all] yml_test.go:157: domain nothosed.example.com yml_test.go:159: SPF: [v=spf1 a:example.net -all] yml_test.go:159: SPF: [–] yml_test.go:157: domain fine.example.com yml_test.go:159: TXT: [v=spf1 a -all] - yml_test.go:157: domain example.net - yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] - yml_test.go:225: test domain-literal - yml_test.go:227: checkhost 1.2.3.5 foo@[1.2.3.5] - spf.go:129: check host with sender "1.2.3.5" "OEMCOMPUTER" "foo@[1.2.3.5]" ("[1.2.3.5]") - spf.go:160: check [1.2.3.5] 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [domain-literal] - yml_test.go:225: test non-ascii-non-spf - yml_test.go:227: checkhost 1.2.3.4 foobar@nothosed.example.com - spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@nothosed.example.com" ("nothosed.example.com") - spf.go:160: check nothosed.example.com 1 - spf.go:176: dns record "v=spf1 a:example.net -all" - spf.go:526: masks on "a:example.net": ["a:example.net" ":example.net" "example.net" "" "" "" ""] "example.net" {-1 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [non-ascii-non-spf] - yml_test.go:225: test two-spaces - yml_test.go:227: checkhost 1.2.3.4 actually@fine.example.com - spf.go:129: check host with sender "1.2.3.4" "hosed" "actually@fine.example.com" ("fine.example.com") - spf.go:160: check fine.example.com 1 - spf.go:176: dns record "v=spf1 a -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "fine.example.com" {-1 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [two-spaces] + yml_test.go:157: domain example.com + yml_test.go:159: TIMEOUT yml_test.go:225: test nolocalpart yml_test.go:227: checkhost 1.2.3.4 @example.net spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "@example.net" ("example.net") @@ -1157,6 +1206,12 @@ spf.go:176: dns record "v=spf1 -all exp=exp.example.net" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [nolocalpart] + yml_test.go:225: test domain-literal + yml_test.go:227: checkhost 1.2.3.5 foo@[1.2.3.5] + spf.go:129: check host with sender "1.2.3.5" "OEMCOMPUTER" "foo@[1.2.3.5]" ("[1.2.3.5]") + spf.go:160: check [1.2.3.5] 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [domain-literal] yml_test.go:225: test longlabel yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com" ("A12345678901234567890123456789012345678901234567890123456789012.example.com") @@ -1164,12 +1219,6 @@ spf.go:176: dns record "v=spf1 -all" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [longlabel] - yml_test.go:225: test emptylabel - yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A...example.com - spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A...example.com" ("A...example.com") - spf.go:160: check A...example.com 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [emptylabel] yml_test.go:225: test helo-not-fqdn yml_test.go:227: checkhost 1.2.3.5 spf.go:129: check host with sender "1.2.3.5" "A2345678" "" ("A2345678") @@ -1190,17 +1239,35 @@ spf.go:526: masks on "a:example.net": ["a:example.net" ":example.net" "example.net" "" "" "" ""] "example.net" {-1 -1} spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [non-ascii-result] + yml_test.go:225: test non-ascii-non-spf + yml_test.go:227: checkhost 1.2.3.4 foobar@nothosed.example.com + spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@nothosed.example.com" ("nothosed.example.com") + spf.go:160: check nothosed.example.com 1 + spf.go:176: dns record "v=spf1 a:example.net -all" + spf.go:526: masks on "a:example.net": ["a:example.net" ":example.net" "example.net" "" "" "" ""] "example.net" {-1 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [non-ascii-non-spf] + yml_test.go:225: test two-spaces + yml_test.go:227: checkhost 1.2.3.4 actually@fine.example.com + spf.go:129: check host with sender "1.2.3.4" "hosed" "actually@fine.example.com" ("fine.example.com") + spf.go:160: check fine.example.com 1 + spf.go:176: dns record "v=spf1 a -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "fine.example.com" {-1 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [two-spaces] yml_test.go:225: test toolonglabel yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com" ("A123456789012345678901234567890123456789012345678901234567890123.example.com") spf.go:160: check A123456789012345678901234567890123456789012345678901234567890123.example.com 1 spf.go:176: dns record "" yml_test.go:234: success: none, no DNS record found [toolonglabel] + yml_test.go:225: test emptylabel + yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A...example.com + spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A...example.com" ("A...example.com") + spf.go:160: check A...example.com 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [emptylabel] yml_test.go:152: suite: Record lookup - yml_test.go:157: domain nospftxttimeout.example.net - yml_test.go:159: SPF: [v=spf3 !a:yahoo.com -all] - yml_test.go:159: TXT: [NONE] - yml_test.go:159: TIMEOUT yml_test.go:157: domain alltimeout.example.net yml_test.go:159: TIMEOUT yml_test.go:157: domain both.example.net @@ -1218,6 +1285,22 @@ yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: TXT: [NONE] yml_test.go:159: TIMEOUT + yml_test.go:157: domain nospftxttimeout.example.net + yml_test.go:159: SPF: [v=spf3 !a:yahoo.com -all] + yml_test.go:159: TXT: [NONE] + yml_test.go:159: TIMEOUT + yml_test.go:225: test nospftxttimeout + yml_test.go:227: checkhost 1.2.3.4 foo@nospftxttimeout.example.net + spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@nospftxttimeout.example.net" ("nospftxttimeout.example.net") + spf.go:160: check nospftxttimeout.example.net 1 + spf.go:164: dns temp error: lookup : test timeout error + yml_test.go:234: success: temperror, lookup : test timeout error [nospftxttimeout] + yml_test.go:225: test alltimeout + yml_test.go:227: checkhost 1.2.3.4 foo@alltimeout.example.net + spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@alltimeout.example.net" ("alltimeout.example.net") + spf.go:160: check alltimeout.example.net 1 + spf.go:164: dns temp error: lookup : test timeout error + yml_test.go:234: success: temperror, lookup : test timeout error [alltimeout] yml_test.go:225: test both yml_test.go:227: checkhost 1.2.3.4 foo@both.example.net spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@both.example.net" ("both.example.net") @@ -1250,48 +1333,55 @@ spf.go:160: check txttimeout.example.net 1 spf.go:164: dns temp error: lookup : test timeout error yml_test.go:234: success: temperror, lookup : test timeout error [txttimeout] - yml_test.go:225: test nospftxttimeout - yml_test.go:227: checkhost 1.2.3.4 foo@nospftxttimeout.example.net - spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@nospftxttimeout.example.net" ("nospftxttimeout.example.net") - spf.go:160: check nospftxttimeout.example.net 1 - spf.go:164: dns temp error: lookup : test timeout error - yml_test.go:234: success: temperror, lookup : test timeout error [nospftxttimeout] - yml_test.go:225: test alltimeout - yml_test.go:227: checkhost 1.2.3.4 foo@alltimeout.example.net - spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@alltimeout.example.net" ("alltimeout.example.net") - spf.go:160: check alltimeout.example.net 1 - spf.go:164: dns temp error: lookup : test timeout error - yml_test.go:234: success: temperror, lookup : test timeout error [alltimeout] yml_test.go:152: suite: Selecting records - yml_test.go:157: domain example5.com - yml_test.go:159: SPF: [v=spf1 +all] - yml_test.go:159: TXT: [v=spf1 -all] - yml_test.go:159: TXT: [v=spf1 +all] - yml_test.go:157: domain example6.com + yml_test.go:157: domain example7.com + yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:159: SPF: [V=sPf1 +all] yml_test.go:157: domain example8.com yml_test.go:159: SPF: [V=spf1 -all] yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: TXT: [v=spf1 +all] yml_test.go:157: domain example9.com yml_test.go:159: SPF: [v=SpF1 ~all] - yml_test.go:157: domain example4.com - yml_test.go:159: SPF: [v=spf1 +all] - yml_test.go:159: TXT: [v=spf1 -all] - yml_test.go:157: domain example7.com - yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:157: domain example3.com yml_test.go:159: SPF: [v=spf10] yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:159: MX: {0 mail.example1.com} yml_test.go:157: domain example1.com yml_test.go:159: SPF: [v=spf1] - yml_test.go:157: domain example2.com - yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:157: domain mail.example1.com yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain example5.com + yml_test.go:159: SPF: [v=spf1 +all] + yml_test.go:159: TXT: [v=spf1 -all] + yml_test.go:159: TXT: [v=spf1 +all] + yml_test.go:157: domain example6.com + yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:159: SPF: [V=sPf1 +all] + yml_test.go:157: domain example2.com + yml_test.go:159: SPF: [v=spf1 mx] + yml_test.go:157: domain example4.com + yml_test.go:159: SPF: [v=spf1 +all] + yml_test.go:159: TXT: [v=spf1 -all] + yml_test.go:225: test empty + yml_test.go:227: checkhost 1.2.3.4 foo@example1.com + spf.go:129: check host with sender "1.2.3.4" "mail1.example1.com" "foo@example1.com" ("example1.com") + spf.go:160: check example1.com 1 + spf.go:176: dns record "v=spf1" + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [empty] + yml_test.go:225: test multitxt1 + yml_test.go:227: checkhost 1.2.3.4 foo@example5.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example5.com" ("example5.com") + spf.go:160: check example5.com 1 + spf.go:168: multiple dns records + yml_test.go:234: success: permerror, multiple matching DNS records [multitxt1] + yml_test.go:225: test multitxt2 + yml_test.go:227: checkhost 1.2.3.4 foo@example6.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example6.com" ("example6.com") + spf.go:160: check example6.com 1 + spf.go:168: multiple dns records + yml_test.go:234: success: permerror, multiple matching DNS records [multitxt2] yml_test.go:225: test case-insensitive yml_test.go:227: checkhost 1.2.3.4 foo@example9.com spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example9.com" ("example9.com") @@ -1305,13 +1395,22 @@ spf.go:160: check example2.com 1 spf.go:176: dns record "" yml_test.go:234: success: none, no DNS record found [nospace1] - yml_test.go:225: test empty - yml_test.go:227: checkhost 1.2.3.4 foo@example1.com - spf.go:129: check host with sender "1.2.3.4" "mail1.example1.com" "foo@example1.com" ("example1.com") - spf.go:160: check example1.com 1 - spf.go:176: dns record "v=spf1" - spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [empty] + yml_test.go:225: test nospace2 + yml_test.go:227: checkhost 1.2.3.4 foo@example3.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example3.com" ("example3.com") + spf.go:160: check example3.com 1 + spf.go:176: dns record "v=spf1 mx" + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "example3.com" {-1 -1} + spf.go:615: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} + spf.go:251: mx ok, pass matched 'mx' + yml_test.go:234: success: pass, matched 'mx' [nospace2] + yml_test.go:225: test spfoverride + yml_test.go:227: checkhost 1.2.3.4 foo@example4.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example4.com" ("example4.com") + spf.go:160: check example4.com 1 + spf.go:176: dns record "v=spf1 -all" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [spfoverride] yml_test.go:225: test multispf1 yml_test.go:227: checkhost 1.2.3.4 foo@example7.com spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example7.com" ("example7.com") @@ -1331,61 +1430,40 @@ spf.go:160: check mail.example1.com 1 spf.go:176: dns record "" yml_test.go:234: success: none, no DNS record found [nospf] - yml_test.go:225: test nospace2 - yml_test.go:227: checkhost 1.2.3.4 foo@example3.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example3.com" ("example3.com") - spf.go:160: check example3.com 1 - spf.go:176: dns record "v=spf1 mx" - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "example3.com" {-1 -1} - spf.go:615: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} - spf.go:251: mx ok, pass matched 'mx' - yml_test.go:234: success: pass, matched 'mx' [nospace2] - yml_test.go:225: test spfoverride - yml_test.go:227: checkhost 1.2.3.4 foo@example4.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example4.com" ("example4.com") - spf.go:160: check example4.com 1 - spf.go:176: dns record "v=spf1 -all" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [spfoverride] - yml_test.go:225: test multitxt1 - yml_test.go:227: checkhost 1.2.3.4 foo@example5.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example5.com" ("example5.com") - spf.go:160: check example5.com 1 - spf.go:168: multiple dns records - yml_test.go:234: success: permerror, multiple matching DNS records [multitxt1] - yml_test.go:225: test multitxt2 - yml_test.go:227: checkhost 1.2.3.4 foo@example6.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example6.com" ("example6.com") - spf.go:160: check example6.com 1 - spf.go:168: multiple dns records - yml_test.go:234: success: permerror, multiple matching DNS records [multitxt2] yml_test.go:152: suite: Record evaluation + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain t1.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 -all moo] - yml_test.go:157: domain t2.example.com - yml_test.go:159: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] - yml_test.go:157: domain t5.example.com - yml_test.go:159: SPF: [v=spf1 redirect=t5.example.com ~all] + yml_test.go:157: domain t4.example.com + yml_test.go:159: SPF: [v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all] + yml_test.go:157: domain t6.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 redirect=t2.example.com] yml_test.go:157: domain t10.example.com yml_test.go:159: SPF: [v=spf1 a:mail.example...com -all] + yml_test.go:157: domain t9.example.com + yml_test.go:159: SPF: [v=spf1 a:foo-bar -all] yml_test.go:157: domain t11.example.com yml_test.go:159: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] yml_test.go:157: domain t12.example.com yml_test.go:159: SPF: [v=spf1 a:%{H}.bar -all] - yml_test.go:157: domain t9.example.com - yml_test.go:159: SPF: [v=spf1 a:foo-bar -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain t2.example.com + yml_test.go:159: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:157: domain t3.example.com yml_test.go:159: SPF: [v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all] - yml_test.go:157: domain t4.example.com - yml_test.go:159: SPF: [v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all] - yml_test.go:157: domain t6.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 redirect=t2.example.com] + yml_test.go:157: domain t5.example.com + yml_test.go:159: SPF: [v=spf1 redirect=t5.example.com ~all] yml_test.go:157: domain t7.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4] yml_test.go:157: domain t8.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 redirect:t2.example.com] + yml_test.go:225: test modifier-charset-bad1 + yml_test.go:227: checkhost 1.2.3.4 foo@t3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t3.example.com" ("t3.example.com") + spf.go:160: check t3.example.com 1 + spf.go:176: dns record "v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [modifier-charset-bad1] yml_test.go:225: test modifier-charset-bad2 yml_test.go:227: checkhost 1.2.3.4 foo@t4.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t4.example.com" ("t4.example.com") @@ -1393,6 +1471,13 @@ spf.go:176: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [modifier-charset-bad2] + yml_test.go:225: test redirect-after-mechanisms1 + yml_test.go:227: checkhost 1.2.3.4 foo@t5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t5.example.com" ("t5.example.com") + spf.go:160: check t5.example.com 1 + spf.go:176: dns record "v=spf1 redirect=t5.example.com ~all" + spf.go:237: softfail matched all + yml_test.go:234: success: softfail, matched 'all' [redirect-after-mechanisms1] yml_test.go:225: test default-result yml_test.go:227: checkhost 1.2.3.5 foo@t7.example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.com" "foo@t7.example.com" ("t7.example.com") @@ -1400,16 +1485,6 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4" spf.go:284: fallback to neutral yml_test.go:234: success: neutral, [default-result] - yml_test.go:225: test invalid-domain-long-via-macro - yml_test.go:227: checkhost 1.2.3.4 foo@t12.example.com - spf.go:129: check host with sender "1.2.3.4" "%%%%%%%%%%%%%%%%%%%%%%" "foo@t12.example.com" ("t12.example.com") - spf.go:160: check t12.example.com 1 - spf.go:176: dns record "v=spf1 a:%{H}.bar -all" - spf.go:526: masks on "a:%{H}.bar": ["a:%{H}.bar" ":%{H}.bar" "%{H}.bar" "" "" "" ""] "%{H}.bar" {-1 -1} - spf.go:708: macro "H": ["H" "H" "" "" ""] - spf.go:805: macro expanded "%{H}.bar" to "t12.example.com.bar" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [invalid-domain-long-via-macro] yml_test.go:225: test invalid-domain-empty-label yml_test.go:227: checkhost 1.2.3.4 foo@t10.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t10.example.com" ("t10.example.com") @@ -1426,21 +1501,19 @@ spf.go:526: masks on "a:a123456789012345678901234567890123456789012345678901234567890123.example.com": ["a:a123456789012345678901234567890123456789012345678901234567890123.example.com" ":a123456789012345678901234567890123456789012345678901234567890123.example.com" "a123456789012345678901234567890123456789012345678901234567890123.example.com" "" "" "" ""] "a123456789012345678901234567890123456789012345678901234567890123.example.com" {-1 -1} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [invalid-domain-long] - yml_test.go:225: test modifier-charset-bad1 - yml_test.go:227: checkhost 1.2.3.4 foo@t3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t3.example.com" ("t3.example.com") - spf.go:160: check t3.example.com 1 - spf.go:176: dns record "v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [modifier-charset-bad1] - yml_test.go:225: test redirect-after-mechanisms1 - yml_test.go:227: checkhost 1.2.3.4 foo@t5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t5.example.com" ("t5.example.com") - spf.go:160: check t5.example.com 1 - spf.go:176: dns record "v=spf1 redirect=t5.example.com ~all" - spf.go:237: softfail matched all - yml_test.go:234: success: softfail, matched 'all' [redirect-after-mechanisms1] + yml_test.go:225: test invalid-domain-long-via-macro + yml_test.go:227: checkhost 1.2.3.4 foo@t12.example.com + spf.go:129: check host with sender "1.2.3.4" "%%%%%%%%%%%%%%%%%%%%%%" "foo@t12.example.com" ("t12.example.com") + spf.go:160: check t12.example.com 1 + spf.go:176: dns record "v=spf1 a:%{H}.bar -all" + spf.go:526: masks on "a:%{H}.bar": ["a:%{H}.bar" ":%{H}.bar" "%{H}.bar" "" "" "" ""] "%{H}.bar" {-1 -1} + spf.go:708: macro "H": ["H" "H" "" "" ""] + spf.go:805: macro expanded "%{H}.bar" to "t12.example.com.bar" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [invalid-domain-long-via-macro] yml_test.go:152: suite: ALL mechanism syntax + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ?all] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 all -all] yml_test.go:157: domain mail.example.com @@ -1451,22 +1524,6 @@ yml_test.go:159: SPF: [v=spf1 -all:foobar] yml_test.go:157: domain e3.example.com yml_test.go:159: SPF: [v=spf1 -all/8] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 ?all] - yml_test.go:225: test all-cidr - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 -all/8" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [all-cidr] - yml_test.go:225: test all-neutral - yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 ?all" - spf.go:237: neutral matched all - yml_test.go:234: success: neutral, matched 'all' [all-neutral] yml_test.go:225: test all-double yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -1488,7 +1545,29 @@ spf.go:176: dns record "v=spf1 -all:foobar" spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [all-arg] + yml_test.go:225: test all-cidr + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 -all/8" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [all-cidr] + yml_test.go:225: test all-neutral + yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 ?all" + spf.go:237: neutral matched all + yml_test.go:234: success: neutral, matched 'all' [all-neutral] yml_test.go:152: suite: PTR mechanism syntax + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ptr -all] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 ptr:] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 ptr/0 -all] yml_test.go:157: domain e2.example.com yml_test.go:159: SPF: [v=spf1 ptr:example.com -all] yml_test.go:157: domain 4.3.2.1.in-addr.arpa @@ -1501,21 +1580,6 @@ yml_test.go:159: SPF: [v=spf1 ptr -all] yml_test.go:159: A: [1.2.3.4] yml_test.go:159: AAAA: [CAFE:BABE::1] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 ptr -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ptr:] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 ptr/0 -all] - yml_test.go:225: test ptr-empty-domain - yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 ptr:" - spf.go:261: ptr ok, permerror invalid domain - yml_test.go:234: success: permerror, invalid domain [ptr-empty-domain] yml_test.go:225: test ptr-cidr yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") @@ -1565,76 +1629,107 @@ spf.go:407: ptr evaluating "e3.example.com" in ["e3.example.com."] spf.go:261: ptr ok, pass matched 'ptr' yml_test.go:234: success: pass, matched 'ptr' [ptr-match-ip6] + yml_test.go:225: test ptr-empty-domain + yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 ptr:" + spf.go:261: ptr ok, permerror invalid domain + yml_test.go:234: success: permerror, invalid domain [ptr-empty-domain] yml_test.go:152: suite: A mechanism syntax - yml_test.go:157: domain e8a.example.com - yml_test.go:159: A: [1.2.3.5] - yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:159: SPF: [v=spf1 a/24 -all] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 a//33 -all] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 a:111.222.33.44] yml_test.go:157: domain e8e.example.com yml_test.go:159: A: [1.2.3.5] yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] yml_test.go:159: SPF: [v=spf1 a/24/64 -all] + yml_test.go:157: domain e8b.example.com + yml_test.go:159: A: [1.2.3.5] + yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:159: SPF: [v=spf1 a//64 -all] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 a:example.-com] + yml_test.go:157: domain e14.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.xn--zckzah -all] yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e1.example.com + yml_test.go:157: domain e2.example.com + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: AAAA: [1234::2] yml_test.go:159: SPF: [v=spf1 a/0 -all] - yml_test.go:157: domain ipv6.example.com - yml_test.go:159: AAAA: [1234::1] + yml_test.go:157: domain e2b.example.com yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: SPF: [v=spf1 a -all] - yml_test.go:157: domain e2a.example.com - yml_test.go:159: AAAA: [1234::1] yml_test.go:159: SPF: [v=spf1 a//0 -all] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.com] - yml_test.go:157: domain e6a.example.com - yml_test.go:159: SPF: [v=spf1 a/33 -all] - yml_test.go:157: domain e8b.example.com - yml_test.go:159: A: [1.2.3.5] - yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:159: SPF: [v=spf1 a//64 -all] - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 a:foo:bar/baz.example.com] - yml_test.go:157: domain e13.example.com - yml_test.go:159: SPF: [v=spf1 a:] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 a:abc.123] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 a//129 -all] + yml_test.go:157: domain e6a.example.com + yml_test.go:159: SPF: [v=spf1 a/33 -all] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 a:example.com:8080] - yml_test.go:157: domain foo:bar/baz.example.com - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e2a.example.com + yml_test.go:159: AAAA: [1234::1] + yml_test.go:159: SPF: [v=spf1 a//0 -all] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 a//33 -all] + yml_test.go:157: domain e8.example.com + yml_test.go:159: A: [1.2.3.5] + yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:159: SPF: [v=spf1 a/24//64 -all] + yml_test.go:157: domain ipv6.example.com + yml_test.go:159: AAAA: [1234::1] + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: SPF: [v=spf1 a -all] yml_test.go:157: domain foo.example.xn--zckzah yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 a/0 -all] yml_test.go:157: domain e5a.example.com yml_test.go:159: SPF: [v=spf1 a:museum] - yml_test.go:157: domain e2.example.com - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: AAAA: [1234::2] - yml_test.go:159: SPF: [v=spf1 a/0 -all] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 a:111.222.33.44] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 a:foo:bar/baz.example.com] + yml_test.go:157: domain foo:bar/baz.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.com/24] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.com] yml_test.go:157: domain e5b.example.com yml_test.go:159: SPF: [v=spf1 a:museum.] - yml_test.go:157: domain e8.example.com + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 a//129 -all] + yml_test.go:157: domain e8a.example.com yml_test.go:159: A: [1.2.3.5] yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:159: SPF: [v=spf1 a/24//64 -all] + yml_test.go:159: SPF: [v=spf1 a/24 -all] yml_test.go:157: domain foo.example.com yml_test.go:159: A: [1.1.1.1] yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 a:example.-com] - yml_test.go:157: domain e2b.example.com - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: SPF: [v=spf1 a//0 -all] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.com/24] - yml_test.go:157: domain e14.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.xn--zckzah -all] + yml_test.go:157: domain e13.example.com + yml_test.go:159: SPF: [v=spf1 a:] + yml_test.go:225: test a-cidr6 + yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 a//33 -all" + spf.go:526: masks on "a//33": ["a//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-cidr6] + yml_test.go:225: test a-nxdomain + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 a/0 -all" + spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-nxdomain] + yml_test.go:225: test a-cidr6-0-nxdomain + yml_test.go:227: checkhost 1234::1 foo@e2b.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") + spf.go:160: check e2b.example.com 1 + spf.go:176: dns record "v=spf1 a//0 -all" + spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-nxdomain] yml_test.go:225: test a-cidr4-0 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -1644,39 +1739,6 @@ spf.go:561: mx matched 1.2.3.4, 1.1.1.1, {0 -1} spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [a-cidr4-0] - yml_test.go:225: test a-dash-in-toplabel - yml_test.go:227: checkhost 1.2.3.4 foo@e14.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e14.example.com" ("e14.example.com") - spf.go:160: check e14.example.com 1 - spf.go:176: dns record "v=spf1 a:foo.example.xn--zckzah -all" - spf.go:526: masks on "a:foo.example.xn--zckzah": ["a:foo.example.xn--zckzah" ":foo.example.xn--zckzah" "foo.example.xn--zckzah" "" "" "" ""] "foo.example.xn--zckzah" {-1 -1} - spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-dash-in-toplabel] - yml_test.go:225: test a-cidr6-0-ip4mapped - yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 - spf.go:176: dns record "v=spf1 a//0 -all" - spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4mapped] - yml_test.go:225: test a-dual-cidr-ip4-default - yml_test.go:227: checkhost 1.2.3.4 foo@e8b.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8b.example.com" ("e8b.example.com") - spf.go:160: check e8b.example.com 1 - spf.go:176: dns record "v=spf1 a//64 -all" - spf.go:526: masks on "a//64": ["a//64" "" "" "" "" "//64" "64"] "e8b.example.com" {-1 64} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip4-default] - yml_test.go:225: test a-cidr4-0-ip6 - yml_test.go:227: checkhost 1234::1 foo@e2.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2.example.com" ("e2.example.com") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 a/0 -all" - spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr4-0-ip6] yml_test.go:225: test a-cidr6-0-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") @@ -1685,21 +1747,6 @@ spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4] - yml_test.go:225: test a-cidr6 - yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 a//33 -all" - spf.go:526: masks on "a//33": ["a//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6] - yml_test.go:225: test a-bad-cidr6 - yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 a//129 -all" - spf.go:246: a ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [a-bad-cidr6] yml_test.go:225: test a-cidr6-0-ip6 yml_test.go:227: checkhost 1234::1 foo@e2a.example.com spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") @@ -1709,13 +1756,30 @@ spf.go:561: mx matched 1234::1, 1234::1, {-1 0} spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [a-cidr6-0-ip6] - yml_test.go:225: test a-bad-cidr4 - yml_test.go:227: checkhost 1.2.3.4 foo@e6a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6a.example.com" ("e6a.example.com") - spf.go:160: check e6a.example.com 1 - spf.go:176: dns record "v=spf1 a/33 -all" + yml_test.go:225: test a-dual-cidr-ip6-default + yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com + spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8a.example.com" ("e8a.example.com") + spf.go:160: check e8a.example.com 1 + spf.go:176: dns record "v=spf1 a/24 -all" + spf.go:526: masks on "a/24": ["a/24" "" "" "/24" "24" "" ""] "e8a.example.com" {24 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip6-default] + yml_test.go:225: test a-bad-cidr6 + yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 a//129 -all" spf.go:246: a ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [a-bad-cidr4] + yml_test.go:234: success: permerror, invalid mask [a-bad-cidr6] + yml_test.go:225: test a-dual-cidr-ip6-match + yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com + spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 a/24//64 -all" + spf.go:526: masks on "a/24//64": ["a/24//64" "" "" "/24" "24" "//64" "64"] "e8.example.com" {24 64} + spf.go:561: mx matched 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, {24 64} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip6-match] yml_test.go:225: test a-multi-ip2 yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") @@ -1734,32 +1798,13 @@ spf.go:561: mx matched 1234::1, 1234::1, {-1 -1} spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [a-ip6-dualstack] - yml_test.go:225: test a-dual-cidr-ip6-match - yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com - spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 a/24//64 -all" - spf.go:526: masks on "a/24//64": ["a/24//64" "" "" "/24" "24" "//64" "64"] "e8.example.com" {24 64} - spf.go:561: mx matched 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, {24 64} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip6-match] - yml_test.go:225: test a-multi-ip1 - yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") - spf.go:160: check e10.example.com 1 - spf.go:176: dns record "v=spf1 a:foo.example.com/24" - spf.go:526: masks on "a:foo.example.com/24": ["a:foo.example.com/24" ":foo.example.com" "foo.example.com" "/24" "24" "" ""] "foo.example.com" {24 -1} - spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-multi-ip1] - yml_test.go:225: test a-cidr6-0-nxdomain - yml_test.go:227: checkhost 1234::1 foo@e2b.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") - spf.go:160: check e2b.example.com 1 - spf.go:176: dns record "v=spf1 a//0 -all" - spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-nxdomain] + yml_test.go:225: test a-bad-cidr4 + yml_test.go:227: checkhost 1.2.3.4 foo@e6a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6a.example.com" ("e6a.example.com") + spf.go:160: check e6a.example.com 1 + spf.go:176: dns record "v=spf1 a/33 -all" + spf.go:246: a ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [a-bad-cidr4] yml_test.go:225: test a-dual-cidr-ip4-match yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") @@ -1769,22 +1814,6 @@ spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 64} spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip4-match] - yml_test.go:225: test a-dual-cidr-ip6-default - yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com - spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8a.example.com" ("e8a.example.com") - spf.go:160: check e8a.example.com 1 - spf.go:176: dns record "v=spf1 a/24 -all" - spf.go:526: masks on "a/24": ["a/24" "" "" "/24" "24" "" ""] "e8a.example.com" {24 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip6-default] - yml_test.go:225: test a-nxdomain - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 a/0 -all" - spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-nxdomain] yml_test.go:225: test a-dual-cidr-ip4-err yml_test.go:227: checkhost 1.2.3.4 foo@e8e.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8e.example.com" ("e8e.example.com") @@ -1793,37 +1822,89 @@ spf.go:526: masks on "a/24/64": [] "e8e.example.com" {-1 -1} spf.go:246: a ok, permerror invalid mask yml_test.go:234: success: permerror, invalid mask [a-dual-cidr-ip4-err] + yml_test.go:225: test a-cidr6-0-ip4mapped + yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 a//0 -all" + spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4mapped] + yml_test.go:225: test a-dash-in-toplabel + yml_test.go:227: checkhost 1.2.3.4 foo@e14.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e14.example.com" ("e14.example.com") + spf.go:160: check e14.example.com 1 + spf.go:176: dns record "v=spf1 a:foo.example.xn--zckzah -all" + spf.go:526: masks on "a:foo.example.xn--zckzah": ["a:foo.example.xn--zckzah" ":foo.example.xn--zckzah" "foo.example.xn--zckzah" "" "" "" ""] "foo.example.xn--zckzah" {-1 -1} + spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-dash-in-toplabel] + yml_test.go:225: test a-dual-cidr-ip4-default + yml_test.go:227: checkhost 1.2.3.4 foo@e8b.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8b.example.com" ("e8b.example.com") + spf.go:160: check e8b.example.com 1 + spf.go:176: dns record "v=spf1 a//64 -all" + spf.go:526: masks on "a//64": ["a//64" "" "" "" "" "//64" "64"] "e8b.example.com" {-1 64} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip4-default] + yml_test.go:225: test a-multi-ip1 + yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") + spf.go:160: check e10.example.com 1 + spf.go:176: dns record "v=spf1 a:foo.example.com/24" + spf.go:526: masks on "a:foo.example.com/24": ["a:foo.example.com/24" ":foo.example.com" "foo.example.com" "/24" "24" "" ""] "foo.example.com" {24 -1} + spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-multi-ip1] + yml_test.go:225: test a-cidr4-0-ip6 + yml_test.go:227: checkhost 1234::1 foo@e2.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2.example.com" ("e2.example.com") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 a/0 -all" + spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-cidr4-0-ip6] yml_test.go:152: suite: Include mechanism semantics and syntax - yml_test.go:157: domain ip6.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.6 ~all] - yml_test.go:157: domain ip8.example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 include:ip7.example.com -all] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 include:ip6.example.com all] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 include +all] + yml_test.go:157: domain e8.example.com + yml_test.go:159: SPF: [v=spf1 include: -all] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 include:ip5.example.com ~all] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 include:ip8.example.com -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 include:e6.example.com -all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 include:ip7.example.com -all] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 include:ip5.example.com/24 -all] - yml_test.go:157: domain ip5.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -all] yml_test.go:157: domain ip7.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.7 ?all] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 include:ip5.example.com ~all] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 include +all] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 include:ip6.example.com all] + yml_test.go:157: domain ip5.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -all] yml_test.go:157: domain e7.example.com yml_test.go:159: SPF: [v=spf1 include:erehwon.example.com -all] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 include: -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain ip8.example.com + yml_test.go:159: TIMEOUT yml_test.go:157: domain erehwon.example.com yml_test.go:159: TXT: [v=spfl am not an SPF record] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 include:e6.example.com -all] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain ip6.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.6 ~all] + yml_test.go:225: test include-fail + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 include:ip5.example.com ~all" + spf.go:160: check ip5.example.com 2 + spf.go:176: dns record "v=spf1 ip4:1.2.3.5 -all" + spf.go:237: fail matched all + spf.go:237: softfail matched all + yml_test.go:234: success: softfail, matched 'all' [include-fail] yml_test.go:225: test include-softfail yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -1834,6 +1915,24 @@ spf.go:237: softfail matched all spf.go:237: pass matched all yml_test.go:234: success: pass, matched 'all' [include-softfail] + yml_test.go:225: test include-neutral + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 include:ip7.example.com -all" + spf.go:160: check ip7.example.com 2 + spf.go:176: dns record "v=spf1 ip4:1.2.3.7 ?all" + spf.go:237: neutral matched all + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [include-neutral] + yml_test.go:225: test include-cidr + yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") + spf.go:160: check e9.example.com 1 + spf.go:176: dns record "v=spf1 include:ip5.example.com/24 -all" + spf.go:659: macro contains / + spf.go:241: include ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [include-cidr] yml_test.go:225: test include-temperror yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") @@ -1843,6 +1942,16 @@ spf.go:164: dns temp error: lookup : test timeout error spf.go:241: include ok, temperror lookup : test timeout error yml_test.go:234: success: temperror, lookup : test timeout error [include-temperror] + yml_test.go:225: test include-permerror + yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 include:e6.example.com -all" + spf.go:160: check e6.example.com 2 + spf.go:176: dns record "v=spf1 include +all" + spf.go:277: permerror, unknown field + spf.go:241: include ok, permerror unknown field + yml_test.go:234: success: permerror, unknown field [include-permerror] yml_test.go:225: test include-syntax-error yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") @@ -1868,55 +1977,31 @@ spf.go:176: dns record "" spf.go:241: include ok, permerror no DNS record found yml_test.go:234: success: permerror, no DNS record found [include-empty-domain] - yml_test.go:225: test include-fail - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 include:ip5.example.com ~all" - spf.go:160: check ip5.example.com 2 - spf.go:176: dns record "v=spf1 ip4:1.2.3.5 -all" - spf.go:237: fail matched all - spf.go:237: softfail matched all - yml_test.go:234: success: softfail, matched 'all' [include-fail] - yml_test.go:225: test include-permerror - yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 include:e6.example.com -all" - spf.go:160: check e6.example.com 2 - spf.go:176: dns record "v=spf1 include +all" - spf.go:277: permerror, unknown field - spf.go:241: include ok, permerror unknown field - yml_test.go:234: success: permerror, unknown field [include-permerror] - yml_test.go:225: test include-cidr - yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") - spf.go:160: check e9.example.com 1 - spf.go:176: dns record "v=spf1 include:ip5.example.com/24 -all" - spf.go:659: macro contains / - spf.go:241: include ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [include-cidr] - yml_test.go:225: test include-neutral - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 include:ip7.example.com -all" - spf.go:160: check ip7.example.com 2 - spf.go:176: dns record "v=spf1 ip4:1.2.3.7 ?all" - spf.go:237: neutral matched all - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [include-neutral] yml_test.go:152: suite: MX mechanism syntax - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:159: MX: {0 } - yml_test.go:159: SPF: [v=spf1 mx] + yml_test.go:157: domain foo.example.com + yml_test.go:159: MX: {0 foo1.example.com} + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 mx/0 -all] + yml_test.go:159: MX: {0 e1.example.com} + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo.example.com] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 mx//33 -all] + yml_test.go:157: domain e6a.example.com + yml_test.go:159: SPF: [v=spf1 mx/33 -all] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 mx:example.com:8080] yml_test.go:157: domain e2b.example.com yml_test.go:159: A: [1.1.1.1] yml_test.go:159: MX: {0 e2b.example.com} yml_test.go:159: SPF: [v=spf1 mx//0 -all] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo.example.com] + yml_test.go:157: domain foo1.example.com + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: A: [1.2.3.5] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo:bar/baz.example.com] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 mx:example.-com] yml_test.go:157: domain e13.example.com yml_test.go:159: SPF: [v=spf1 mx: -all] yml_test.go:157: domain e2.example.com @@ -1924,64 +2009,26 @@ yml_test.go:159: AAAA: [1234::2] yml_test.go:159: MX: {0 e2.example.com} yml_test.go:159: SPF: [v=spf1 mx/0 -all] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 mx:example.com:8080] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo.example.com/24] - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo:bar/baz.example.com] yml_test.go:157: domain e2a.example.com yml_test.go:159: AAAA: [1234::1] yml_test.go:159: MX: {0 e2a.example.com} yml_test.go:159: SPF: [v=spf1 mx//0 -all] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 mx] - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 mx//33 -all] - yml_test.go:157: domain foo1.example.com - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 mx/0 -all] - yml_test.go:159: MX: {0 e1.example.com} yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 mx:abc.123] - yml_test.go:157: domain e6a.example.com - yml_test.go:159: SPF: [v=spf1 mx/33 -all] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 mx//129 -all] - yml_test.go:157: domain foo.example.com - yml_test.go:159: MX: {0 foo1.example.com} + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo.example.com/24] yml_test.go:157: domain foo:bar/baz.example.com yml_test.go:159: MX: {0 foo:bar/baz.example.com} yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 mx:example.-com] - yml_test.go:225: test mx-nxdomain - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 mx/0 -all" - spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-nxdomain] - yml_test.go:225: test mx-cidr6-0-ip4 - yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 - spf.go:176: dns record "v=spf1 mx//0 -all" - spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4] - yml_test.go:225: test mx-cidr6-0-nxdomain - yml_test.go:227: checkhost 1234::1 foo@e2b.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") - spf.go:160: check e2b.example.com 1 - spf.go:176: dns record "v=spf1 mx//0 -all" - spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-nxdomain] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:159: MX: {0 } + yml_test.go:159: SPF: [v=spf1 mx] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 mx] + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 mx//129 -all] yml_test.go:225: test mx-cidr6 yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") @@ -1990,15 +2037,21 @@ spf.go:526: masks on "mx//33": ["mx//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [mx-cidr6] - yml_test.go:225: test mx-cidr6-0-ip6 - yml_test.go:227: checkhost 1234::1 foo@e2a.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + yml_test.go:225: test mx-bad-cidr6 + yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 mx//129 -all" + spf.go:251: mx ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [mx-bad-cidr6] + yml_test.go:225: test mx-cidr6-0-ip4mapped + yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") spf.go:160: check e2a.example.com 1 spf.go:176: dns record "v=spf1 mx//0 -all" spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:615: mx matched 1234::1, 1234::1, {-1 0} - spf.go:251: mx ok, pass matched 'mx' - yml_test.go:234: success: pass, matched 'mx' [mx-cidr6-0-ip6] + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4mapped] yml_test.go:225: test mx-empty yml_test.go:227: checkhost 1.2.3.4 spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "" ("mail.example.com") @@ -2015,6 +2068,48 @@ spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e4.example.com" {-1 -1} spf.go:284: fallback to neutral yml_test.go:234: success: neutral, [mx-implicit] + yml_test.go:225: test mx-cidr4-0-ip6 + yml_test.go:227: checkhost 1234::1 foo@e2.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2.example.com" ("e2.example.com") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 mx/0 -all" + spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-cidr4-0-ip6] + yml_test.go:225: test mx-cidr6-0-ip4 + yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 mx//0 -all" + spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4] + yml_test.go:225: test mx-cidr6-0-ip6 + yml_test.go:227: checkhost 1234::1 foo@e2a.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 mx//0 -all" + spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:615: mx matched 1234::1, 1234::1, {-1 0} + spf.go:251: mx ok, pass matched 'mx' + yml_test.go:234: success: pass, matched 'mx' [mx-cidr6-0-ip6] + yml_test.go:225: test mx-multi-ip1 + yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") + spf.go:160: check e10.example.com 1 + spf.go:176: dns record "v=spf1 mx:foo.example.com/24" + spf.go:526: masks on "mx:foo.example.com/24": ["mx:foo.example.com/24" ":foo.example.com" "foo.example.com" "/24" "24" "" ""] "foo.example.com" {24 -1} + spf.go:615: mx matched 1.2.3.4, 1.2.3.5, {24 -1} + spf.go:251: mx ok, pass matched 'mx' + yml_test.go:234: success: pass, matched 'mx' [mx-multi-ip1] + yml_test.go:225: test mx-cidr6-0-nxdomain + yml_test.go:227: checkhost 1234::1 foo@e2b.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") + spf.go:160: check e2b.example.com 1 + spf.go:176: dns record "v=spf1 mx//0 -all" + spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-nxdomain] yml_test.go:225: test mx-bad-cidr4 yml_test.go:227: checkhost 1.2.3.4 foo@e6a.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6a.example.com" ("e6a.example.com") @@ -2031,6 +2126,14 @@ spf.go:615: mx matched 1.2.3.4, 1.2.3.5, {24 -1} spf.go:251: mx ok, pass matched 'mx' yml_test.go:234: success: pass, matched 'mx' [mx-multi-ip2] + yml_test.go:225: test mx-nxdomain + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 mx/0 -all" + spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-nxdomain] yml_test.go:225: test mx-cidr4-0 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -2040,57 +2143,39 @@ spf.go:615: mx matched 1.2.3.4, 1.1.1.1, {0 -1} spf.go:251: mx ok, pass matched 'mx' yml_test.go:234: success: pass, matched 'mx' [mx-cidr4-0] - yml_test.go:225: test mx-cidr4-0-ip6 - yml_test.go:227: checkhost 1234::1 foo@e2.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2.example.com" ("e2.example.com") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 mx/0 -all" - spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr4-0-ip6] - yml_test.go:225: test mx-cidr6-0-ip4mapped - yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 - spf.go:176: dns record "v=spf1 mx//0 -all" - spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4mapped] - yml_test.go:225: test mx-bad-cidr6 - yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 mx//129 -all" - spf.go:251: mx ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [mx-bad-cidr6] - yml_test.go:225: test mx-multi-ip1 - yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") - spf.go:160: check e10.example.com 1 - spf.go:176: dns record "v=spf1 mx:foo.example.com/24" - spf.go:526: masks on "mx:foo.example.com/24": ["mx:foo.example.com/24" ":foo.example.com" "foo.example.com" "/24" "24" "" ""] "foo.example.com" {24 -1} - spf.go:615: mx matched 1.2.3.4, 1.2.3.5, {24 -1} - spf.go:251: mx ok, pass matched 'mx' - yml_test.go:234: success: pass, matched 'mx' [mx-multi-ip1] yml_test.go:152: suite: EXISTS mechanism syntax - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 exists:mail.example.com/24] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 exists:] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 exists:err.example.com -all] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain err.example.com yml_test.go:159: TIMEOUT - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 exists:] yml_test.go:157: domain e2.example.com yml_test.go:159: SPF: [v=spf1 exists] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 exists:mail.example.com/24] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 exists:mail.example.com] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 exists:mail6.example.com -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain mail6.example.com yml_test.go:159: AAAA: [CAFE:BABE::4] + yml_test.go:225: test exists-ip4 + yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 exists:mail.example.com" + spf.go:266: exists ok, pass matched 'exists' + yml_test.go:234: success: pass, matched 'exists' [exists-ip4] + yml_test.go:225: test exists-ip6 + yml_test.go:227: checkhost cafe:babe::3 foo@e4.example.com + spf.go:129: check host with sender "cafe:babe::3" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 exists:mail.example.com" + spf.go:266: exists ok, pass matched 'exists' + yml_test.go:234: success: pass, matched 'exists' [exists-ip6] yml_test.go:225: test exists-ip6only yml_test.go:227: checkhost cafe:babe::3 foo@e5.example.com spf.go:129: check host with sender "cafe:babe::3" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -2127,55 +2212,27 @@ spf.go:659: macro contains / spf.go:266: exists ok, permerror invalid macro yml_test.go:234: success: permerror, invalid macro [exists-cidr] - yml_test.go:225: test exists-ip4 - yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 exists:mail.example.com" - spf.go:266: exists ok, pass matched 'exists' - yml_test.go:234: success: pass, matched 'exists' [exists-ip4] - yml_test.go:225: test exists-ip6 - yml_test.go:227: checkhost cafe:babe::3 foo@e4.example.com - spf.go:129: check host with sender "cafe:babe::3" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 exists:mail.example.com" - spf.go:266: exists ok, pass matched 'exists' - yml_test.go:234: success: pass, matched 'exists' [exists-ip6] yml_test.go:152: suite: IP4 mechanism syntax - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1/0 -all] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/032 -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ip4] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4:8080] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/32 -all] yml_test.go:157: domain e3.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/33 -all] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/032 -all] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4//32] yml_test.go:157: domain e7.example.com yml_test.go:159: SPF: [v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/32 -all] - yml_test.go:225: test bare-ip4 - yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 ip4" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [bare-ip4] - yml_test.go:225: test ip4-mapped-ip6 - yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4" - spf.go:256: ip ok, fail matched 'ip' - yml_test.go:234: success: fail, matched 'ip' [ip4-mapped-ip6] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1/0 -all] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 ip4] + yml_test.go:157: domain e8.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4:8080] yml_test.go:225: test bad-ip4-port yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") @@ -2183,6 +2240,20 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4:8080" spf.go:256: ip ok, permerror invalid ipX value yml_test.go:234: success: permerror, invalid ipX value [bad-ip4-port] + yml_test.go:225: test bare-ip4 + yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 ip4" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [bare-ip4] + yml_test.go:225: test cidr4-33 + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 ip4:1.2.3.4/33 -all" + spf.go:256: ip ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [cidr4-33] yml_test.go:225: test bad-ip4-short yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") @@ -2197,6 +2268,13 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4//32" spf.go:256: ip ok, permerror invalid mask yml_test.go:234: success: permerror, invalid mask [ip4-dual-cidr] + yml_test.go:225: test ip4-mapped-ip6 + yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4" + spf.go:256: ip ok, fail matched 'ip' + yml_test.go:234: success: fail, matched 'ip' [ip4-mapped-ip6] yml_test.go:225: test cidr4-0 yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") @@ -2211,14 +2289,13 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4/32 -all" spf.go:256: ip ok, pass matched 'ip' yml_test.go:234: success: pass, matched 'ip' [cidr4-32] - yml_test.go:225: test cidr4-33 - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 ip4:1.2.3.4/33 -all" - spf.go:256: ip ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [cidr4-33] yml_test.go:152: suite: IP6 mechanism syntax + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/0] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/129] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1//33] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 ip6:CAFE:BABE:8000::/33] yml_test.go:157: domain e6.example.com @@ -2227,19 +2304,6 @@ yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain e1.example.com yml_test.go:159: SPF: [v=spf1 -all ip6] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/0] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/129] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1//33] - yml_test.go:225: test cidr6-bad - yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 ip6:::1.1.1.1//33" - spf.go:256: ip ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [cidr6-bad] yml_test.go:225: test cidr6-0-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -2254,13 +2318,13 @@ spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/0" spf.go:256: ip ok, pass matched 'ip' yml_test.go:234: success: pass, matched 'ip' [cidr6-0] - yml_test.go:225: test cidr6-129 - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/129" + yml_test.go:225: test cidr6-bad + yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 ip6:::1.1.1.1//33" spf.go:256: ip ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [cidr6-129] + yml_test.go:234: success: permerror, invalid mask [cidr6-bad] yml_test.go:225: test cidr6-33 yml_test.go:227: checkhost cafe:babe:8000:: foo@e5.example.com spf.go:129: check host with sender "cafe:babe:8000::" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -2268,13 +2332,6 @@ spf.go:176: dns record "v=spf1 ip6:CAFE:BABE:8000::/33" spf.go:256: ip ok, pass matched 'ip' yml_test.go:234: success: pass, matched 'ip' [cidr6-33] - yml_test.go:225: test cidr6-33-ip4 - yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 ip6:CAFE:BABE:8000::/33" - spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [cidr6-33-ip4] yml_test.go:225: test ip6-bad1 yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") @@ -2289,83 +2346,99 @@ spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/0" spf.go:284: fallback to neutral yml_test.go:234: success: neutral, [cidr6-ip4] + yml_test.go:225: test cidr6-129 + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/129" + spf.go:256: ip ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [cidr6-129] + yml_test.go:225: test cidr6-33-ip4 + yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 ip6:CAFE:BABE:8000::/33" + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [cidr6-33-ip4] yml_test.go:152: suite: Semantics of exp and other modifiers - yml_test.go:157: domain nonascii.example.com - yml_test.go:159: SPF: [v=spf1 exp=badexp.example.com -all] - yml_test.go:157: domain e13.example.com - yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all] - yml_test.go:157: domain e13msg.example.com - yml_test.go:159: TXT: [The %{x}-files.] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=exp2.example.com] + yml_test.go:157: domain exp3.example.com + yml_test.go:159: TXT: [Correct!] + yml_test.go:157: domain exp4.example.com + yml_test.go:159: TXT: [%{l} in implementation] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] yml_test.go:157: domain e14.example.com yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain e3.example.com yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 -all foo=%abc] + yml_test.go:157: domain e13msg.example.com + yml_test.go:159: TXT: [The %{x}-files.] + yml_test.go:157: domain e15.example.com + yml_test.go:159: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] + yml_test.go:157: domain e22.example.com + yml_test.go:159: SPF: [v=spf1 exp=mail.example.com -all] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 1up=foo] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 redirect=erehwon.example.com] - yml_test.go:157: domain e18.example.com - yml_test.go:159: SPF: [v=spf1 ?all redirect=] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 exp= -all] + yml_test.go:157: domain e13.example.com + yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all] yml_test.go:157: domain e19.example.com yml_test.go:159: SPF: [v=spf1 default=pass] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] - yml_test.go:157: domain exp2.example.com - yml_test.go:159: TXT: [See me.] - yml_test.go:157: domain exp3.example.com - yml_test.go:159: TXT: [Correct!] - yml_test.go:157: domain e22.example.com - yml_test.go:159: SPF: [v=spf1 exp=mail.example.com -all] - yml_test.go:157: domain tworecs.example.com - yml_test.go:159: SPF: [v=spf1 exp=twoexp.example.com -all] - yml_test.go:157: domain twoexp.example.com - yml_test.go:159: TXT: [one] - yml_test.go:159: TXT: [two] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=exp2.example.com] + yml_test.go:157: domain nonascii.example.com + yml_test.go:159: SPF: [v=spf1 exp=badexp.example.com -all] yml_test.go:157: domain exp1.example.com yml_test.go:159: TXT: [No-see-um] - yml_test.go:157: domain e21msg.example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e11msg.example.com] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 exp= -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 =all] + yml_test.go:157: domain e18.example.com + yml_test.go:159: SPF: [v=spf1 ?all redirect=] yml_test.go:157: domain e20.example.com yml_test.go:159: SPF: [v=spf1 default=+] - yml_test.go:157: domain e21.example.com - yml_test.go:159: SPF: [v=spf1 exp=e21msg.example.com -all] + yml_test.go:157: domain e11msg.example.com + yml_test.go:159: TXT: [Answer a fool according to his folly.] + yml_test.go:159: TXT: [Do not answer a fool according to his folly.] + yml_test.go:157: domain exp2.example.com + yml_test.go:159: TXT: [See me.] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 -all foo=%abc] + yml_test.go:157: domain e16.example.com + yml_test.go:159: SPF: [v=spf1 exp=-all] yml_test.go:157: domain badexp.example.com yml_test.go:159: TXT: [Explanation] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] + yml_test.go:157: domain tworecs.example.com + yml_test.go:159: SPF: [v=spf1 exp=twoexp.example.com -all] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] yml_test.go:157: domain e8.example.com yml_test.go:159: SPF: [v=spf1 -all exp=exp4.example.com] - yml_test.go:157: domain e11msg.example.com - yml_test.go:159: TXT: [Answer a fool according to his folly.] - yml_test.go:159: TXT: [Do not answer a fool according to his folly.] - yml_test.go:157: domain exp4.example.com - yml_test.go:159: TXT: [%{l} in implementation] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e11msg.example.com] + yml_test.go:157: domain e21.example.com + yml_test.go:159: SPF: [v=spf1 exp=e21msg.example.com -all] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 =all] + yml_test.go:157: domain twoexp.example.com + yml_test.go:159: TXT: [one] + yml_test.go:159: TXT: [two] yml_test.go:157: domain e17.example.com yml_test.go:159: SPF: [v=spf1 redirect=-all ?all] - yml_test.go:157: domain e15.example.com - yml_test.go:159: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] - yml_test.go:157: domain e16.example.com - yml_test.go:159: SPF: [v=spf1 exp=-all] - yml_test.go:225: test redirect-twice - yml_test.go:227: checkhost 1.2.3.4 foo@e15.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e15.example.com" ("e15.example.com") - spf.go:160: check e15.example.com 1 - spf.go:176: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" - yml_test.go:234: success: permerror, invalid domain [redirect-twice] + yml_test.go:157: domain e21msg.example.com + yml_test.go:159: TIMEOUT + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 redirect=erehwon.example.com] + yml_test.go:225: test exp-dns-error + yml_test.go:227: checkhost 1.2.3.4 foo@e21.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e21.example.com" ("e21.example.com") + spf.go:160: check e21.example.com 1 + spf.go:176: dns record "v=spf1 exp=e21msg.example.com -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [exp-dns-error] yml_test.go:225: test two-exp-records yml_test.go:227: checkhost 1.2.3.4 foobar@tworecs.example.com spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@tworecs.example.com" ("tworecs.example.com") @@ -2394,48 +2467,6 @@ spf.go:176: dns record "v=spf1 -all" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [redirect-cancels-exp] - yml_test.go:225: test exp-dns-error - yml_test.go:227: checkhost 1.2.3.4 foo@e21.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e21.example.com" ("e21.example.com") - spf.go:160: check e21.example.com 1 - spf.go:176: dns record "v=spf1 exp=e21msg.example.com -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [exp-dns-error] - yml_test.go:225: test explanation-syntax-error - yml_test.go:227: checkhost 1.2.3.4 foo@e13.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e13.example.com" ("e13.example.com") - spf.go:160: check e13.example.com 1 - spf.go:176: dns record "v=spf1 exp=e13msg.example.com -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [explanation-syntax-error] - yml_test.go:225: test redirect-cancels-prior-exp - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 exp=exp1.example.com redirect=e4.example.com" - spf.go:270: exp= not used, skipping - spf.go:273: redirect, "redirect=e4.example.com" - spf.go:160: check e4.example.com 2 - spf.go:176: dns record "v=spf1 -all exp=exp2.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [redirect-cancels-prior-exp] - yml_test.go:225: test exp-multiple-txt - yml_test.go:227: checkhost 1.2.3.4 foo@e11.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e11.example.com" ("e11.example.com") - spf.go:160: check e11.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e11msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [exp-multiple-txt] - yml_test.go:225: test non-ascii-exp - yml_test.go:227: checkhost 1.2.3.4 foobar@nonascii.example.com - spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@nonascii.example.com" ("nonascii.example.com") - spf.go:160: check nonascii.example.com 1 - spf.go:176: dns record "v=spf1 exp=badexp.example.com -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [non-ascii-exp] yml_test.go:225: test include-ignores-exp yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") @@ -2450,13 +2481,13 @@ spf.go:237: fail matched all spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [include-ignores-exp] - yml_test.go:225: test dorky-sentinel - yml_test.go:227: checkhost 1.2.3.4 Macro Error@e8.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "Macro Error@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=exp4.example.com" + yml_test.go:225: test exp-multiple-txt + yml_test.go:227: checkhost 1.2.3.4 foo@e11.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e11.example.com" ("e11.example.com") + spf.go:160: check e11.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e11msg.example.com" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [dorky-sentinel] + yml_test.go:234: success: fail, matched 'all' [exp-multiple-txt] yml_test.go:225: test invalid-modifier yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -2471,6 +2502,17 @@ spf.go:176: dns record "v=spf1 =all" spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [empty-modifier-name] + yml_test.go:225: test redirect-cancels-prior-exp + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 exp=exp1.example.com redirect=e4.example.com" + spf.go:270: exp= not used, skipping + spf.go:273: redirect, "redirect=e4.example.com" + spf.go:160: check e4.example.com 2 + spf.go:176: dns record "v=spf1 -all exp=exp2.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [redirect-cancels-prior-exp] yml_test.go:225: test exp-no-txt yml_test.go:227: checkhost 1.2.3.4 foo@e22.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e22.example.com" ("e22.example.com") @@ -2479,94 +2521,152 @@ spf.go:270: exp= not used, skipping spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exp-no-txt] + yml_test.go:225: test redirect-twice + yml_test.go:227: checkhost 1.2.3.4 foo@e15.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e15.example.com" ("e15.example.com") + spf.go:160: check e15.example.com 1 + spf.go:176: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" + yml_test.go:234: success: permerror, invalid domain [redirect-twice] + yml_test.go:225: test non-ascii-exp + yml_test.go:227: checkhost 1.2.3.4 foobar@nonascii.example.com + spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@nonascii.example.com" ("nonascii.example.com") + spf.go:160: check nonascii.example.com 1 + spf.go:176: dns record "v=spf1 exp=badexp.example.com -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [non-ascii-exp] + yml_test.go:225: test dorky-sentinel + yml_test.go:227: checkhost 1.2.3.4 Macro Error@e8.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "Macro Error@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=exp4.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [dorky-sentinel] + yml_test.go:225: test explanation-syntax-error + yml_test.go:227: checkhost 1.2.3.4 foo@e13.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e13.example.com" ("e13.example.com") + spf.go:160: check e13.example.com 1 + spf.go:176: dns record "v=spf1 exp=e13msg.example.com -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [explanation-syntax-error] yml_test.go:152: suite: Macro expansion rules - yml_test.go:157: 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:159: TXT: [Congratulations! That was tricky.] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=msg8.%{D2}] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] - yml_test.go:157: domain e1e.example.com - yml_test.go:159: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] - yml_test.go:157: domain e1a.example.com - yml_test.go:159: SPF: [v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all] + yml_test.go:157: domain 41.218.168.192.in-addr.arpa + yml_test.go:159: PTR: [mx.example.com] yml_test.go:157: 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:159: PTR: [mx.example.com] - yml_test.go:157: domain mx.example.com.ok.example.com + yml_test.go:157: domain mx.e7.example.com + yml_test.go:159: A: [192.168.218.42] + yml_test.go:157: domain mx.e7.example.com.should.example.com yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain msg8.example.com - yml_test.go:159: TXT: [http://example.com/why.html?l=%{L}] - yml_test.go:157: domain _spfh.example.com - yml_test.go:159: SPF: [v=spf1 -a:%{h} +all] - yml_test.go:157: domain example.com.d.spf.example.com - yml_test.go:159: SPF: [v=spf1 redirect=a.spf.example.com] - yml_test.go:157: domain o.spf.example.com - yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] + yml_test.go:157: domain e1e.example.com + yml_test.go:159: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=%{ir}.example.com] yml_test.go:157: domain somewhat.long.exp.example.com yml_test.go:159: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e6msg.example.com] + yml_test.go:157: domain _spfh.example.com + yml_test.go:159: SPF: [v=spf1 -a:%{h} +all] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] + yml_test.go:157: domain msg.example.com + yml_test.go:159: TXT: [This is a test.] + yml_test.go:157: domain e6msg.example.com + yml_test.go:159: TXT: [connect from %{p}] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] + yml_test.go:157: domain msg8.example.com + yml_test.go:159: TXT: [http://example.com/why.html?l=%{L}] + yml_test.go:157: domain bar.foo.user.example.com + yml_test.go:159: A: [127.0.0.2] + yml_test.go:157: domain e1a.example.com + yml_test.go:159: SPF: [v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all] + yml_test.go:157: domain 40.218.168.192.example.com + yml_test.go:159: TXT: [Connections from %{c} not authorized.] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e4msg.example.com] + yml_test.go:157: domain 40.218.168.192.in-addr.arpa + yml_test.go:159: PTR: [mx.example.com] + yml_test.go:157: domain exp.example.com + yml_test.go:159: SPF: [v=spf1 exp=msg.example.com. -all] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 a:%{a}.example.com -all] + yml_test.go:157: 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:159: PTR: [mx.example.com] + yml_test.go:157: domain mx.example.com.ok.example.com + yml_test.go:159: A: [127.0.0.2] + yml_test.go:157: domain msgbas2x.cos.example.com + yml_test.go:159: A: [192.168.218.40] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=%{r}.example.com] + yml_test.go:157: domain e4msg.example.com + yml_test.go:159: TXT: [%{c} is queried as %{ir}.%{v}.arpa] yml_test.go:157: domain mx.example.com yml_test.go:159: A: [192.168.218.41] yml_test.go:159: A: [192.168.218.42] yml_test.go:159: AAAA: [CAFE:BABE::2] yml_test.go:159: AAAA: [CAFE:BABE::3] - yml_test.go:157: domain bar.foo.user.example.com - yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain msgbas2x.cos.example.com - yml_test.go:159: A: [192.168.218.40] + yml_test.go:157: domain o.spf.example.com + yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] + yml_test.go:157: domain e8.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=msg8.%{D2}] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 a:%{H} -all] yml_test.go:157: domain example.com yml_test.go:159: A: [192.168.90.76] yml_test.go:159: SPF: [v=spf1 redirect=%{d}.d.spf.example.com.] - yml_test.go:157: domain exp.example.com - yml_test.go:159: SPF: [v=spf1 exp=msg.example.com. -all] - yml_test.go:157: domain macro%percent space%20url-space.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=%{r}.example.com] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=%{ir}.example.com] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] yml_test.go:157: domain 42.218.168.192.in-addr.arpa yml_test.go:159: PTR: [mx.example.com] yml_test.go:159: PTR: [mx.e7.example.com] - yml_test.go:157: domain mx.e7.example.com.should.example.com + yml_test.go:157: domain 1.2.3.4.gladstone.philip.user.example.com yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 a:%{H} -all] + yml_test.go:157: 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:159: TXT: [Congratulations! That was tricky.] + yml_test.go:157: domain example.com.d.spf.example.com + yml_test.go:159: SPF: [v=spf1 redirect=a.spf.example.com] yml_test.go:157: domain a.spf.example.com yml_test.go:159: SPF: [v=spf1 include:o.spf.example.com. ~all] - yml_test.go:157: domain 40.218.168.192.in-addr.arpa - yml_test.go:159: PTR: [mx.example.com] - yml_test.go:157: domain 41.218.168.192.in-addr.arpa - yml_test.go:159: PTR: [mx.example.com] - yml_test.go:157: 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:159: PTR: [mx.example.com] - yml_test.go:157: domain mx.e7.example.com - yml_test.go:159: A: [192.168.218.42] yml_test.go:157: domain e1t.example.com yml_test.go:159: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] - yml_test.go:157: domain 40.218.168.192.example.com - yml_test.go:159: TXT: [Connections from %{c} not authorized.] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e4msg.example.com] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] - yml_test.go:157: domain msg.example.com - yml_test.go:159: TXT: [This is a test.] - yml_test.go:157: domain e4msg.example.com - yml_test.go:159: TXT: [%{c} is queried as %{ir}.%{v}.arpa] - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] - yml_test.go:157: domain 1.2.3.4.gladstone.philip.user.example.com - yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e6msg.example.com] - yml_test.go:157: domain e6msg.example.com - yml_test.go:159: TXT: [connect from %{p}] + yml_test.go:157: domain macro%percent space%20url-space.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:225: test trailing-dot-exp + yml_test.go:227: checkhost 192.168.218.40 test@exp.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@exp.example.com" ("exp.example.com") + spf.go:160: check exp.example.com 1 + spf.go:176: dns record "v=spf1 exp=msg.example.com. -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [trailing-dot-exp] + yml_test.go:225: test invalid-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e1.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" + spf.go:266: exists ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [invalid-macro-char] + yml_test.go:225: test invalid-embedded-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e1e.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1e.example.com" ("e1e.example.com") + spf.go:160: check e1e.example.com 1 + spf.go:176: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" + spf.go:266: exists ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [invalid-embedded-macro-char] + yml_test.go:225: test v-macro-ip4 + yml_test.go:227: checkhost 192.168.218.40 test@e4.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e4msg.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [v-macro-ip4] yml_test.go:225: test v-macro-ip6 yml_test.go:227: checkhost cafe:babe::1 test@e4.example.com spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e4.example.com" ("e4.example.com") @@ -2574,13 +2674,38 @@ spf.go:176: dns record "v=spf1 -all exp=e4msg.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [v-macro-ip6] - yml_test.go:225: test upper-macro - yml_test.go:227: checkhost 192.168.218.42 jack&jill=up@e8.example.com - spf.go:129: check host with sender "192.168.218.42" "msgbas2x.cos.example.com" "jack&jill=up@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=msg8.%{D2}" + yml_test.go:225: test p-macro-ip4-valid + yml_test.go:227: checkhost 192.168.218.41 test@e6.example.com + spf.go:129: check host with sender "192.168.218.41" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [upper-macro] + yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-valid] + yml_test.go:225: test p-macro-ip6-novalid + yml_test.go:227: checkhost cafe:babe::1 test@e6.example.com + spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-novalid] + yml_test.go:225: test trailing-dot-domain + yml_test.go:227: checkhost 192.168.218.40 test@example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@example.com" ("example.com") + spf.go:160: check example.com 1 + spf.go:176: dns record "v=spf1 redirect=%{d}.d.spf.example.com." + spf.go:273: redirect, "redirect=%{d}.d.spf.example.com." + spf.go:708: macro "d": ["d" "d" "" "" ""] + spf.go:805: macro expanded "%{d}.d.spf.example.com." to "example.com.d.spf.example.com." + spf.go:160: check example.com.d.spf.example.com. 2 + spf.go:176: dns record "v=spf1 redirect=a.spf.example.com" + spf.go:273: redirect, "redirect=a.spf.example.com" + spf.go:160: check a.spf.example.com 3 + spf.go:176: dns record "v=spf1 include:o.spf.example.com. ~all" + spf.go:160: check o.spf.example.com. 4 + spf.go:176: dns record "v=spf1 ip4:192.168.218.40" + spf.go:256: ip ok, pass matched 'ip' + spf.go:241: include ok, pass matched 'ip' + yml_test.go:234: success: pass, matched 'ip' [trailing-dot-domain] yml_test.go:225: test require-valid-helo yml_test.go:227: checkhost 1.2.3.4 test@e10.example.com spf.go:129: check host with sender "1.2.3.4" "OEMCOMPUTER" "test@e10.example.com" ("e10.example.com") @@ -2596,31 +2721,20 @@ spf.go:237: pass matched all spf.go:241: include ok, fail matched 'all' yml_test.go:234: success: fail, matched 'all' [require-valid-helo] - yml_test.go:225: test macro-reverse-split-on-dash - yml_test.go:227: checkhost 1.2.3.4 philip-gladstone-test@e11.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "philip-gladstone-test@e11.example.com" ("e11.example.com") - spf.go:160: check e11.example.com 1 - spf.go:176: dns record "v=spf1 exists:%{i}.%{l2r-}.user.%{d2}" - spf.go:708: macro "i": ["i" "i" "" "" ""] - spf.go:708: macro "l2r-": ["l2r-" "l" "2" "r" "-"] - spf.go:708: macro "d2": ["d2" "d" "2" "" ""] - spf.go:805: macro expanded "%{i}.%{l2r-}.user.%{d2}" to "1.2.3.4.gladstone.philip.user.example.com" - spf.go:266: exists ok, pass matched 'exists' - yml_test.go:234: success: pass, matched 'exists' [macro-reverse-split-on-dash] - yml_test.go:225: test invalid-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e1.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" - spf.go:266: exists ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [invalid-macro-char] - yml_test.go:225: test v-macro-ip4 - yml_test.go:227: checkhost 192.168.218.40 test@e4.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e4msg.example.com" + yml_test.go:225: test p-macro-ip6-valid + yml_test.go:227: checkhost cafe:babe::3 test@e6.example.com + spf.go:129: check host with sender "cafe:babe::3" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [v-macro-ip4] + yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-valid] + yml_test.go:225: test p-macro-ip4-novalid + yml_test.go:227: checkhost 192.168.218.40 test@e6.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-novalid] yml_test.go:225: test domain-name-truncation yml_test.go:227: checkhost 192.168.218.40 test@somewhat.long.exp.example.com spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@somewhat.long.exp.example.com" ("somewhat.long.exp.example.com") @@ -2628,6 +2742,23 @@ spf.go:176: dns record "v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [domain-name-truncation] + yml_test.go:225: test exp-txt-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e3.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=%{ir}.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [exp-txt-macro-char] + yml_test.go:225: test macro-mania-in-domain + yml_test.go:227: checkhost 1.2.3.4 test@e1a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "test@e1a.example.com" ("e1a.example.com") + spf.go:160: check e1a.example.com 1 + spf.go:176: dns record "v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all" + spf.go:526: masks on "a:macro%%percent%_%_space%-url-space.example.com": ["a:macro%%percent%_%_space%-url-space.example.com" ":macro%%percent%_%_space%-url-space.example.com" "macro%%percent%_%_space%-url-space.example.com" "" "" "" ""] "macro%%percent%_%_space%-url-space.example.com" {-1 -1} + spf.go:805: macro expanded "macro%%percent%_%_space%-url-space.example.com" to "macro%percent space%20url-space.example.com" + spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [macro-mania-in-domain] yml_test.go:225: test undef-macro yml_test.go:227: checkhost cafe:babe::c0a8:da28 test@e5.example.com spf.go:129: check host with sender "cafe:babe::c0a8:da28" "msgbas2x.cos.example.com" "test@e5.example.com" ("e5.example.com") @@ -2637,13 +2768,13 @@ spf.go:708: macro "a": [] spf.go:246: a ok, permerror invalid macro yml_test.go:234: success: permerror, invalid macro [undef-macro] - yml_test.go:225: test p-macro-ip6-valid - yml_test.go:227: checkhost cafe:babe::3 test@e6.example.com - spf.go:129: check host with sender "cafe:babe::3" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" + yml_test.go:225: test upper-macro + yml_test.go:227: checkhost 192.168.218.42 jack&jill=up@e8.example.com + spf.go:129: check host with sender "192.168.218.42" "msgbas2x.cos.example.com" "jack&jill=up@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=msg8.%{D2}" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-valid] + yml_test.go:234: success: fail, matched 'all' [upper-macro] yml_test.go:225: test invalid-hello-macro yml_test.go:227: checkhost 192.168.218.40 test@e9.example.com spf.go:129: check host with sender "192.168.218.40" "JUMPIN' JUPITER" "test@e9.example.com" ("e9.example.com") @@ -2664,37 +2795,17 @@ spf.go:805: macro expanded "%{H}" to "e9.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [hello-domain-literal] - yml_test.go:225: test invalid-embedded-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e1e.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1e.example.com" ("e1e.example.com") - spf.go:160: check e1e.example.com 1 - spf.go:176: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" - spf.go:266: exists ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [invalid-embedded-macro-char] - yml_test.go:225: test macro-mania-in-domain - yml_test.go:227: checkhost 1.2.3.4 test@e1a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "test@e1a.example.com" ("e1a.example.com") - spf.go:160: check e1a.example.com 1 - spf.go:176: dns record "v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all" - spf.go:526: masks on "a:macro%%percent%_%_space%-url-space.example.com": ["a:macro%%percent%_%_space%-url-space.example.com" ":macro%%percent%_%_space%-url-space.example.com" "macro%%percent%_%_space%-url-space.example.com" "" "" "" ""] "macro%%percent%_%_space%-url-space.example.com" {-1 -1} - spf.go:805: macro expanded "macro%%percent%_%_space%-url-space.example.com" to "macro%percent space%20url-space.example.com" - spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [macro-mania-in-domain] - yml_test.go:225: test p-macro-ip4-novalid - yml_test.go:227: checkhost 192.168.218.40 test@e6.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-novalid] - yml_test.go:225: test p-macro-ip4-valid - yml_test.go:227: checkhost 192.168.218.41 test@e6.example.com - spf.go:129: check host with sender "192.168.218.41" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-valid] + yml_test.go:225: test macro-reverse-split-on-dash + yml_test.go:227: checkhost 1.2.3.4 philip-gladstone-test@e11.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "philip-gladstone-test@e11.example.com" ("e11.example.com") + spf.go:160: check e11.example.com 1 + spf.go:176: dns record "v=spf1 exists:%{i}.%{l2r-}.user.%{d2}" + spf.go:708: macro "i": ["i" "i" "" "" ""] + spf.go:708: macro "l2r-": ["l2r-" "l" "2" "r" "-"] + spf.go:708: macro "d2": ["d2" "d" "2" "" ""] + spf.go:805: macro expanded "%{i}.%{l2r-}.user.%{d2}" to "1.2.3.4.gladstone.philip.user.example.com" + spf.go:266: exists ok, pass matched 'exists' + yml_test.go:234: success: pass, matched 'exists' [macro-reverse-split-on-dash] yml_test.go:225: test macro-multiple-delimiters yml_test.go:227: checkhost 1.2.3.4 foo-bar+zip+quux@e12.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo-bar+zip+quux@e12.example.com" ("e12.example.com") @@ -2705,46 +2816,6 @@ spf.go:805: macro expanded "%{l2r+-}.user.%{d2}" to "bar.foo.user.example.com" spf.go:266: exists ok, pass matched 'exists' yml_test.go:234: success: pass, matched 'exists' [macro-multiple-delimiters] - yml_test.go:225: test trailing-dot-exp - yml_test.go:227: checkhost 192.168.218.40 test@exp.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@exp.example.com" ("exp.example.com") - spf.go:160: check exp.example.com 1 - spf.go:176: dns record "v=spf1 exp=msg.example.com. -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [trailing-dot-exp] - yml_test.go:225: test exp-txt-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e3.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=%{ir}.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [exp-txt-macro-char] - yml_test.go:225: test p-macro-ip6-novalid - yml_test.go:227: checkhost cafe:babe::1 test@e6.example.com - spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-novalid] - yml_test.go:225: test trailing-dot-domain - yml_test.go:227: checkhost 192.168.218.40 test@example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@example.com" ("example.com") - spf.go:160: check example.com 1 - spf.go:176: dns record "v=spf1 redirect=%{d}.d.spf.example.com." - spf.go:273: redirect, "redirect=%{d}.d.spf.example.com." - spf.go:708: macro "d": ["d" "d" "" "" ""] - spf.go:805: macro expanded "%{d}.d.spf.example.com." to "example.com.d.spf.example.com." - spf.go:160: check example.com.d.spf.example.com. 2 - spf.go:176: dns record "v=spf1 redirect=a.spf.example.com" - spf.go:273: redirect, "redirect=a.spf.example.com" - spf.go:160: check a.spf.example.com 3 - spf.go:176: dns record "v=spf1 include:o.spf.example.com. ~all" - spf.go:160: check o.spf.example.com. 4 - spf.go:176: dns record "v=spf1 ip4:192.168.218.40" - spf.go:256: ip ok, pass matched 'ip' - spf.go:241: include ok, pass matched 'ip' - yml_test.go:234: success: pass, matched 'ip' [trailing-dot-domain] yml_test.go:225: test invalid-trailing-macro-char yml_test.go:227: checkhost 192.168.218.40 test@e1t.example.com spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1t.example.com" ("e1t.example.com") @@ -2753,30 +2824,30 @@ spf.go:266: exists ok, permerror invalid macro yml_test.go:234: success: permerror, invalid macro [invalid-trailing-macro-char] yml_test.go:152: suite: Processing limits - yml_test.go:157: domain 5.3.2.1.in-addr.arpa - yml_test.go:159: PTR: [e1.example.com.] - yml_test.go:159: PTR: [e2.example.com.] - yml_test.go:159: PTR: [e3.example.com.] - yml_test.go:159: PTR: [e4.example.com.] - yml_test.go:159: PTR: [example.com.] - yml_test.go:159: PTR: [e6.example.com.] - yml_test.go:159: PTR: [e7.example.com.] - yml_test.go:159: PTR: [e8.example.com.] - yml_test.go:159: PTR: [e9.example.com.] - yml_test.go:159: PTR: [e10.example.com.] - yml_test.go:159: PTR: [e5.example.com.] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] + yml_test.go:159: A: [1.2.3.6] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 include:e3.example.com] + yml_test.go:159: A: [1.2.3.7] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 include:e2.example.com] + yml_test.go:159: A: [1.2.3.8] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 ptr] + yml_test.go:159: A: [1.2.3.5] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all] + yml_test.go:159: A: [1.2.3.8] + yml_test.go:159: MX: {10 e6.example.com} yml_test.go:157: domain e7.example.com yml_test.go:159: SPF: [v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all] yml_test.go:159: A: [1.2.3.20] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all] - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain inc.example.com - yml_test.go:159: SPF: [v=spf1 a a a a a a a a] - yml_test.go:159: A: [1.2.3.10] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all] yml_test.go:159: A: [1.2.3.21] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain e10.example.com yml_test.go:159: SPF: [v=spf1 a -all] yml_test.go:159: A: [1.2.3.1] @@ -2791,9 +2862,24 @@ yml_test.go:159: A: [1.2.3.10] yml_test.go:159: A: [1.2.3.11] yml_test.go:159: A: [1.2.3.12] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 include:e2.example.com] - yml_test.go:159: A: [1.2.3.8] + yml_test.go:157: domain 5.3.2.1.in-addr.arpa + yml_test.go:159: PTR: [e1.example.com.] + yml_test.go:159: PTR: [e2.example.com.] + yml_test.go:159: PTR: [e3.example.com.] + yml_test.go:159: PTR: [e4.example.com.] + yml_test.go:159: PTR: [example.com.] + yml_test.go:159: PTR: [e6.example.com.] + yml_test.go:159: PTR: [e7.example.com.] + yml_test.go:159: PTR: [e8.example.com.] + yml_test.go:159: PTR: [e9.example.com.] + yml_test.go:159: PTR: [e10.example.com.] + yml_test.go:159: PTR: [e5.example.com.] + yml_test.go:157: domain e8.example.com + yml_test.go:159: SPF: [v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all] + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain inc.example.com + yml_test.go:159: SPF: [v=spf1 a a a a a a a a] + yml_test.go:159: A: [1.2.3.10] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:159: MX: {0 mail.example.com} @@ -2808,57 +2894,6 @@ yml_test.go:159: MX: {9 mail.example.com} yml_test.go:159: MX: {10 e4.example.com} yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 include:e3.example.com] - yml_test.go:159: A: [1.2.3.7] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ptr] - yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all] - yml_test.go:159: A: [1.2.3.8] - yml_test.go:159: MX: {10 e6.example.com} - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] - yml_test.go:159: A: [1.2.3.6] - yml_test.go:225: test mech-over-limit - yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} - spf.go:407: ptr evaluating "e7.example.com" in [] - spf.go:218: lookup limit reached - yml_test.go:234: success: permerror, lookup limit reached [mech-over-limit] - yml_test.go:225: test include-over-limit - yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") - spf.go:160: check e9.example.com 1 - spf.go:176: dns record "v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e9.example.com" {-1 -1} - spf.go:160: check inc.example.com 3 - spf.go:176: dns record "v=spf1 a a a a a a a a" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} - spf.go:284: fallback to neutral - spf.go:218: lookup limit reached - yml_test.go:234: success: permerror, lookup limit reached [include-over-limit] yml_test.go:225: test redirect-loop yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") @@ -2933,6 +2968,23 @@ spf.go:241: include ok, permerror lookup limit reached spf.go:241: include ok, permerror lookup limit reached yml_test.go:234: success: permerror, lookup limit reached [include-loop] + yml_test.go:225: test mech-over-limit + yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e7.example.com" {-1 -1} + spf.go:407: ptr evaluating "e7.example.com" in [] + spf.go:218: lookup limit reached + yml_test.go:234: success: permerror, lookup limit reached [mech-over-limit] yml_test.go:225: test mx-limit yml_test.go:227: checkhost 1.2.3.5 foo@e4.example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.com" "foo@e4.example.com" ("e4.example.com") @@ -2975,26 +3027,45 @@ spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [include-at-limit] ---- PASS: TestRFC4408 (0.12s) + yml_test.go:225: test include-over-limit + yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") + spf.go:160: check e9.example.com 1 + spf.go:176: dns record "v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e9.example.com" {-1 -1} + spf.go:160: check inc.example.com 3 + spf.go:176: dns record "v=spf1 a a a a a a a a" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "inc.example.com" {-1 -1} + spf.go:284: fallback to neutral + spf.go:218: lookup limit reached + yml_test.go:234: success: permerror, lookup limit reached [include-over-limit] +--- PASS: TestRFC4408 (0.07s) === RUN TestRFC7208 yml_test.go:152: suite: Initial processing + yml_test.go:157: domain example.com + yml_test.go:159: TIMEOUT + yml_test.go:157: domain example.net + yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] yml_test.go:157: domain a.example.net yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] - yml_test.go:157: domain exp.example.net - yml_test.go:159: TXT: [%{l}] yml_test.go:157: domain hosed2.example.com yml_test.go:159: SPF: [v=spf1 €a:example.net -all] - yml_test.go:157: domain ctrl.example.com - yml_test.go:159: SPF: [v=spf1 a:ctrl.example.com ptr -all] - yml_test.go:159: A: [192.0.2.3] yml_test.go:157: domain fine.example.com yml_test.go:159: SPF: [v=spf1 a -all] yml_test.go:157: domain trail.example.com yml_test.go:159: SPF: [v=spf1 a -all ] - yml_test.go:157: domain example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain example.net - yml_test.go:159: SPF: [v=spf1 -all exp=exp.example.net] + yml_test.go:157: domain null.example.com + yml_test.go:159: SPF: [v=spf1 ip4: 192.0.2.5 -all] + yml_test.go:159: + yml_test.go:157: domain exp.example.net + yml_test.go:159: TXT: [%{l}] yml_test.go:157: domain a12345678901234567890123456789012345678901234567890123456789012.example.com yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:157: domain hosed.example.com @@ -3004,33 +3075,30 @@ yml_test.go:157: domain nothosed.example.com yml_test.go:159: SPF: [v=spf1 a:example.net -all] yml_test.go:159: SPF: [–] - yml_test.go:157: domain null.example.com - yml_test.go:159: SPF: [v=spf1 ip4: 192.0.2.5 -all] - yml_test.go:159: - yml_test.go:225: test toolonglabel - yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com - spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com" ("A123456789012345678901234567890123456789012345678901234567890123.example.com") - spf.go:160: check A123456789012345678901234567890123456789012345678901234567890123.example.com 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [toolonglabel] + yml_test.go:157: domain ctrl.example.com + yml_test.go:159: SPF: [v=spf1 a:ctrl.example.com ptr -all] + yml_test.go:159: A: [192.0.2.3] + yml_test.go:225: test trailing-space + yml_test.go:227: checkhost 192.0.2.5 silly@trail.example.com + spf.go:129: check host with sender "192.0.2.5" "hosed" "silly@trail.example.com" ("trail.example.com") + spf.go:160: check trail.example.com 1 + spf.go:176: dns record "v=spf1 a -all " + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "trail.example.com" {-1 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [trailing-space] + yml_test.go:225: test null-text + yml_test.go:227: checkhost 192.0.2.5 silly@null.example.com + spf.go:129: check host with sender "192.0.2.5" "hosed" "silly@null.example.com" ("null.example.com") + spf.go:160: check null.example.com 1 + spf.go:176: dns record "v=spf1 ip4:192.0.2.5 -all" + spf.go:256: ip ok, pass matched 'ip' + yml_test.go:234: success: pass, matched 'ip' [null-text] yml_test.go:225: test emptylabel yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A...example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A...example.com" ("A...example.com") spf.go:160: check A...example.com 1 spf.go:176: dns record "" yml_test.go:234: success: none, no DNS record found [emptylabel] - yml_test.go:225: test helo-domain-literal - yml_test.go:227: checkhost 1.2.3.5 - spf.go:129: check host with sender "1.2.3.5" "[1.2.3.5]" "" ("[1.2.3.5]") - spf.go:160: check [1.2.3.5] 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [helo-domain-literal] - yml_test.go:225: test helo-not-fqdn - yml_test.go:227: checkhost 1.2.3.5 - spf.go:129: check host with sender "1.2.3.5" "A2345678" "" ("A2345678") - spf.go:160: check A2345678 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [helo-not-fqdn] yml_test.go:225: test nolocalpart yml_test.go:227: checkhost 1.2.3.4 @example.net spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "@example.net" ("example.net") @@ -3038,14 +3106,6 @@ spf.go:176: dns record "v=spf1 -all exp=exp.example.net" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [nolocalpart] - yml_test.go:225: test non-ascii-result - yml_test.go:227: checkhost 1.2.3.4 foobar@hosed3.example.com - spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@hosed3.example.com" ("hosed3.example.com") - spf.go:160: check hosed3.example.com 1 - spf.go:176: dns record "v=spf1 a:example.net \u0096all" - spf.go:526: masks on "a:example.net": ["a:example.net" ":example.net" "example.net" "" "" "" ""] "example.net" {-1 -1} - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [non-ascii-result] yml_test.go:225: test non-ascii-non-spf yml_test.go:227: checkhost 1.2.3.4 foobar@nothosed.example.com spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@nothosed.example.com" ("nothosed.example.com") @@ -3054,21 +3114,12 @@ spf.go:526: masks on "a:example.net": ["a:example.net" ":example.net" "example.net" "" "" "" ""] "example.net" {-1 -1} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [non-ascii-non-spf] - yml_test.go:225: test trailing-space - yml_test.go:227: checkhost 192.0.2.5 silly@trail.example.com - spf.go:129: check host with sender "192.0.2.5" "hosed" "silly@trail.example.com" ("trail.example.com") - spf.go:160: check trail.example.com 1 - spf.go:176: dns record "v=spf1 a -all " - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "trail.example.com" {-1 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [trailing-space] - yml_test.go:225: test null-text - yml_test.go:227: checkhost 192.0.2.5 silly@null.example.com - spf.go:129: check host with sender "192.0.2.5" "hosed" "silly@null.example.com" ("null.example.com") - spf.go:160: check null.example.com 1 - spf.go:176: dns record "v=spf1 ip4:192.0.2.5 -all" - spf.go:256: ip ok, pass matched 'ip' - yml_test.go:234: success: pass, matched 'ip' [null-text] + yml_test.go:225: test toolonglabel + yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com + spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com" ("A123456789012345678901234567890123456789012345678901234567890123.example.com") + spf.go:160: check A123456789012345678901234567890123456789012345678901234567890123.example.com 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [toolonglabel] yml_test.go:225: test longlabel yml_test.go:227: checkhost 1.2.3.5 lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@A12345678901234567890123456789012345678901234567890123456789012.example.com" ("A12345678901234567890123456789012345678901234567890123456789012.example.com") @@ -3076,12 +3127,32 @@ spf.go:176: dns record "v=spf1 -all" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [longlabel] + yml_test.go:225: test helo-not-fqdn + yml_test.go:227: checkhost 1.2.3.5 + spf.go:129: check host with sender "1.2.3.5" "A2345678" "" ("A2345678") + spf.go:160: check A2345678 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [helo-not-fqdn] + yml_test.go:225: test helo-domain-literal + yml_test.go:227: checkhost 1.2.3.5 + spf.go:129: check host with sender "1.2.3.5" "[1.2.3.5]" "" ("[1.2.3.5]") + spf.go:160: check [1.2.3.5] 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [helo-domain-literal] yml_test.go:225: test domain-literal yml_test.go:227: checkhost 1.2.3.5 foo@[1.2.3.5] spf.go:129: check host with sender "1.2.3.5" "OEMCOMPUTER" "foo@[1.2.3.5]" ("[1.2.3.5]") spf.go:160: check [1.2.3.5] 1 spf.go:176: dns record "" yml_test.go:234: success: none, no DNS record found [domain-literal] + yml_test.go:225: test non-ascii-result + yml_test.go:227: checkhost 1.2.3.4 foobar@hosed3.example.com + spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@hosed3.example.com" ("hosed3.example.com") + spf.go:160: check hosed3.example.com 1 + spf.go:176: dns record "v=spf1 a:example.net \u0096all" + spf.go:526: masks on "a:example.net": ["a:example.net" ":example.net" "example.net" "" "" "" ""] "example.net" {-1 -1} + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [non-ascii-result] yml_test.go:225: test two-spaces yml_test.go:227: checkhost 1.2.3.4 actually@fine.example.com spf.go:129: check host with sender "1.2.3.4" "hosed" "actually@fine.example.com" ("fine.example.com") @@ -3091,14 +3162,6 @@ spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [two-spaces] yml_test.go:152: suite: Record lookup - yml_test.go:157: domain txtonly.example.net - yml_test.go:159: TXT: [v=spf1 -all] - yml_test.go:157: domain spfonly.example.net - yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:159: TXT: [NONE] - yml_test.go:157: domain spftimeout.example.net - yml_test.go:159: TXT: [v=spf1 -all] - yml_test.go:159: TIMEOUT yml_test.go:157: domain txttimeout.example.net yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: TXT: [NONE] @@ -3112,20 +3175,14 @@ yml_test.go:157: domain both.example.net yml_test.go:159: TXT: [v=spf1 -all] yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:225: test both - yml_test.go:227: checkhost 1.2.3.4 foo@both.example.net - spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@both.example.net" ("both.example.net") - spf.go:160: check both.example.net 1 - spf.go:176: dns record "v=spf1 -all" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [both] - yml_test.go:225: test txtonly - yml_test.go:227: checkhost 1.2.3.4 foo@txtonly.example.net - spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@txtonly.example.net" ("txtonly.example.net") - spf.go:160: check txtonly.example.net 1 - spf.go:176: dns record "v=spf1 -all" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [txtonly] + yml_test.go:157: domain txtonly.example.net + yml_test.go:159: TXT: [v=spf1 -all] + yml_test.go:157: domain spfonly.example.net + yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:159: TXT: [NONE] + yml_test.go:157: domain spftimeout.example.net + yml_test.go:159: TXT: [v=spf1 -all] + yml_test.go:159: TIMEOUT yml_test.go:225: test spfonly yml_test.go:227: checkhost 1.2.3.4 foo@spfonly.example.net spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@spfonly.example.net" ("spfonly.example.net") @@ -3150,49 +3207,75 @@ spf.go:160: check alltimeout.example.net 1 spf.go:164: dns temp error: lookup : test timeout error yml_test.go:234: success: temperror, lookup : test timeout error [alltimeout] + yml_test.go:225: test both + yml_test.go:227: checkhost 1.2.3.4 foo@both.example.net + spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@both.example.net" ("both.example.net") + spf.go:160: check both.example.net 1 + spf.go:176: dns record "v=spf1 -all" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [both] + yml_test.go:225: test txtonly + yml_test.go:227: checkhost 1.2.3.4 foo@txtonly.example.net + spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "foo@txtonly.example.net" ("txtonly.example.net") + spf.go:160: check txtonly.example.net 1 + spf.go:176: dns record "v=spf1 -all" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [txtonly] yml_test.go:152: suite: Selecting records - yml_test.go:157: domain example9.com - yml_test.go:159: SPF: [v=SpF1 ~all] + yml_test.go:157: domain example3.com + yml_test.go:159: SPF: [v=spf10] + yml_test.go:159: SPF: [v=spf1 mx] + yml_test.go:159: MX: {0 mail.example1.com} yml_test.go:157: domain example2.com yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:157: domain mail.example1.com yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain example4.com - yml_test.go:159: SPF: [v=spf1 +all] - yml_test.go:159: TXT: [v=spf1 -all] yml_test.go:157: domain example5.com yml_test.go:159: SPF: [v=spf1 +all] yml_test.go:159: TXT: [v=spf1 -all] yml_test.go:159: TXT: [v=spf1 +all] - yml_test.go:157: domain example6.com - yml_test.go:159: SPF: [v=spf1 -all] - yml_test.go:159: SPF: [V=sPf1 +all] yml_test.go:157: domain example7.com yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:157: domain example1.com + yml_test.go:159: SPF: [v=spf1] + yml_test.go:157: domain example4.com + yml_test.go:159: SPF: [v=spf1 +all] + yml_test.go:159: TXT: [v=spf1 -all] + yml_test.go:157: domain example6.com + yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:159: SPF: [V=sPf1 +all] yml_test.go:157: domain example8.com yml_test.go:159: SPF: [V=spf1 -all] yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: TXT: [v=spf1 +all] - yml_test.go:157: domain example3.com - yml_test.go:159: SPF: [v=spf10] - yml_test.go:159: SPF: [v=spf1 mx] - yml_test.go:159: MX: {0 mail.example1.com} - yml_test.go:157: domain example1.com - yml_test.go:159: SPF: [v=spf1] - yml_test.go:225: test nospace1 - yml_test.go:227: checkhost 1.2.3.4 foo@example2.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example2.com" ("example2.com") - spf.go:160: check example2.com 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [nospace1] - yml_test.go:225: test empty - yml_test.go:227: checkhost 1.2.3.4 foo@example1.com - spf.go:129: check host with sender "1.2.3.4" "mail1.example1.com" "foo@example1.com" ("example1.com") - spf.go:160: check example1.com 1 - spf.go:176: dns record "v=spf1" - spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [empty] + yml_test.go:157: domain example9.com + yml_test.go:159: SPF: [v=SpF1 ~all] + yml_test.go:225: test multispf1 + yml_test.go:227: checkhost 1.2.3.4 foo@example7.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example7.com" ("example7.com") + spf.go:160: check example7.com 1 + spf.go:168: multiple dns records + yml_test.go:234: success: permerror, multiple matching DNS records [multispf1] + yml_test.go:225: test case-insensitive + yml_test.go:227: checkhost 1.2.3.4 foo@example9.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example9.com" ("example9.com") + spf.go:160: check example9.com 1 + spf.go:176: dns record "v=SpF1 ~all" + spf.go:237: softfail matched all + yml_test.go:234: success: softfail, matched 'all' [case-insensitive] + yml_test.go:225: test multitxt1 + yml_test.go:227: checkhost 1.2.3.4 foo@example5.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example5.com" ("example5.com") + spf.go:160: check example5.com 1 + spf.go:168: multiple dns records + yml_test.go:234: success: permerror, multiple matching DNS records [multitxt1] + yml_test.go:225: test multitxt2 + yml_test.go:227: checkhost 1.2.3.4 foo@example6.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example6.com" ("example6.com") + spf.go:160: check example6.com 1 + spf.go:168: multiple dns records + yml_test.go:234: success: permerror, multiple matching DNS records [multitxt2] yml_test.go:225: test nospace2 yml_test.go:227: checkhost 1.2.3.4 foo@example3.com spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example3.com" ("example3.com") @@ -3202,25 +3285,6 @@ spf.go:615: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} spf.go:251: mx ok, pass matched 'mx' yml_test.go:234: success: pass, matched 'mx' [nospace2] - yml_test.go:225: test multitxt2 - yml_test.go:227: checkhost 1.2.3.4 foo@example6.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example6.com" ("example6.com") - spf.go:160: check example6.com 1 - spf.go:168: multiple dns records - yml_test.go:234: success: permerror, multiple matching DNS records [multitxt2] - yml_test.go:225: test multispf1 - yml_test.go:227: checkhost 1.2.3.4 foo@example7.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example7.com" ("example7.com") - spf.go:160: check example7.com 1 - spf.go:168: multiple dns records - yml_test.go:234: success: permerror, multiple matching DNS records [multispf1] - yml_test.go:225: test multispf2 - yml_test.go:227: checkhost 1.2.3.4 foo@example8.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example8.com" ("example8.com") - spf.go:160: check example8.com 1 - spf.go:176: dns record "v=spf1 +all" - spf.go:237: pass matched all - yml_test.go:234: success: pass, matched 'all' [multispf2] yml_test.go:225: test spfoverride yml_test.go:227: checkhost 1.2.3.4 foo@example4.com spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example4.com" ("example4.com") @@ -3228,75 +3292,59 @@ spf.go:176: dns record "v=spf1 -all" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [spfoverride] - yml_test.go:225: test multitxt1 - yml_test.go:227: checkhost 1.2.3.4 foo@example5.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example5.com" ("example5.com") - spf.go:160: check example5.com 1 - spf.go:168: multiple dns records - yml_test.go:234: success: permerror, multiple matching DNS records [multitxt1] + yml_test.go:225: test multispf2 + yml_test.go:227: checkhost 1.2.3.4 foo@example8.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example8.com" ("example8.com") + spf.go:160: check example8.com 1 + spf.go:176: dns record "v=spf1 +all" + spf.go:237: pass matched all + yml_test.go:234: success: pass, matched 'all' [multispf2] yml_test.go:225: test nospf yml_test.go:227: checkhost 1.2.3.4 foo@mail.example1.com spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@mail.example1.com" ("mail.example1.com") spf.go:160: check mail.example1.com 1 spf.go:176: dns record "" yml_test.go:234: success: none, no DNS record found [nospf] - yml_test.go:225: test case-insensitive - yml_test.go:227: checkhost 1.2.3.4 foo@example9.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example9.com" ("example9.com") - spf.go:160: check example9.com 1 - spf.go:176: dns record "v=SpF1 ~all" - spf.go:237: softfail matched all - yml_test.go:234: success: softfail, matched 'all' [case-insensitive] + yml_test.go:225: test nospace1 + yml_test.go:227: checkhost 1.2.3.4 foo@example2.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example2.com" ("example2.com") + spf.go:160: check example2.com 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [nospace1] + yml_test.go:225: test empty + yml_test.go:227: checkhost 1.2.3.4 foo@example1.com + spf.go:129: check host with sender "1.2.3.4" "mail1.example1.com" "foo@example1.com" ("example1.com") + spf.go:160: check example1.com 1 + spf.go:176: dns record "v=spf1" + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [empty] yml_test.go:152: suite: Record evaluation - yml_test.go:157: domain t7.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4] - yml_test.go:157: domain t8.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 redirect:t2.example.com] - yml_test.go:157: domain t12.example.com - yml_test.go:159: SPF: [v=spf1 a:%{H}.bar -all] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain t1.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 -all moo] - yml_test.go:157: domain t3.example.com - yml_test.go:159: SPF: [v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:157: domain t4.example.com yml_test.go:159: SPF: [v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all] yml_test.go:157: domain t5.example.com yml_test.go:159: SPF: [v=spf1 redirect=t5.example.com ~all] yml_test.go:157: domain t6.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 redirect=t2.example.com] - yml_test.go:157: domain t9.example.com - yml_test.go:159: SPF: [v=spf1 a:foo-bar -all] - yml_test.go:157: domain t10.example.com - yml_test.go:159: SPF: [v=spf1 a:mail.example...com -all] + yml_test.go:157: domain t8.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4 redirect:t2.example.com] yml_test.go:157: domain t11.example.com yml_test.go:159: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain t12.example.com + yml_test.go:159: SPF: [v=spf1 a:%{H}.bar -all] yml_test.go:157: domain t2.example.com yml_test.go:159: SPF: [v=spf1 moo.cow-far_out=man:dog/cat ip4:1.2.3.4 -all] - yml_test.go:225: test modifier-charset-bad2 - yml_test.go:227: checkhost 1.2.3.4 foo@t4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t4.example.com" ("t4.example.com") - spf.go:160: check t4.example.com 1 - spf.go:176: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [modifier-charset-bad2] - yml_test.go:225: test invalid-domain-empty-label - yml_test.go:227: checkhost 1.2.3.4 foo@t10.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t10.example.com" ("t10.example.com") - spf.go:160: check t10.example.com 1 - spf.go:176: dns record "v=spf1 a:mail.example...com -all" - spf.go:526: masks on "a:mail.example...com": ["a:mail.example...com" ":mail.example...com" "mail.example...com" "" "" "" ""] "mail.example...com" {-1 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [invalid-domain-empty-label] - yml_test.go:225: test invalid-domain-long - yml_test.go:227: checkhost 1.2.3.4 foo@t11.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t11.example.com" ("t11.example.com") - spf.go:160: check t11.example.com 1 - spf.go:176: dns record "v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all" - spf.go:526: masks on "a:a123456789012345678901234567890123456789012345678901234567890123.example.com": ["a:a123456789012345678901234567890123456789012345678901234567890123.example.com" ":a123456789012345678901234567890123456789012345678901234567890123.example.com" "a123456789012345678901234567890123456789012345678901234567890123.example.com" "" "" "" ""] "a123456789012345678901234567890123456789012345678901234567890123.example.com" {-1 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [invalid-domain-long] + yml_test.go:157: domain t3.example.com + yml_test.go:159: SPF: [v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all] + yml_test.go:157: domain t7.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4] + yml_test.go:157: domain t9.example.com + yml_test.go:159: SPF: [v=spf1 a:foo-bar -all] + yml_test.go:157: domain t10.example.com + yml_test.go:159: SPF: [v=spf1 a:mail.example...com -all] yml_test.go:225: test modifier-charset-bad1 yml_test.go:227: checkhost 1.2.3.4 foo@t3.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t3.example.com" ("t3.example.com") @@ -3304,13 +3352,6 @@ spf.go:176: dns record "v=spf1 moo.cow/far_out=man:dog/cat ip4:1.2.3.4 -all" spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [modifier-charset-bad1] - yml_test.go:225: test redirect-after-mechanisms1 - yml_test.go:227: checkhost 1.2.3.4 foo@t5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t5.example.com" ("t5.example.com") - spf.go:160: check t5.example.com 1 - spf.go:176: dns record "v=spf1 redirect=t5.example.com ~all" - spf.go:237: softfail matched all - yml_test.go:234: success: softfail, matched 'all' [redirect-after-mechanisms1] yml_test.go:225: test default-result yml_test.go:227: checkhost 1.2.3.5 foo@t7.example.com spf.go:129: check host with sender "1.2.3.5" "mail.example.com" "foo@t7.example.com" ("t7.example.com") @@ -3318,6 +3359,14 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4" spf.go:284: fallback to neutral yml_test.go:234: success: neutral, [default-result] + yml_test.go:225: test invalid-domain-long + yml_test.go:227: checkhost 1.2.3.4 foo@t11.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t11.example.com" ("t11.example.com") + spf.go:160: check t11.example.com 1 + spf.go:176: dns record "v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all" + spf.go:526: masks on "a:a123456789012345678901234567890123456789012345678901234567890123.example.com": ["a:a123456789012345678901234567890123456789012345678901234567890123.example.com" ":a123456789012345678901234567890123456789012345678901234567890123.example.com" "a123456789012345678901234567890123456789012345678901234567890123.example.com" "" "" "" ""] "a123456789012345678901234567890123456789012345678901234567890123.example.com" {-1 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [invalid-domain-long] yml_test.go:225: test invalid-domain-long-via-macro yml_test.go:227: checkhost 1.2.3.4 foo@t12.example.com spf.go:129: check host with sender "1.2.3.4" "%%%%%%%%%%%%%%%%%%%%%%" "foo@t12.example.com" ("t12.example.com") @@ -3328,33 +3377,41 @@ spf.go:805: macro expanded "%{H}.bar" to "t12.example.com.bar" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [invalid-domain-long-via-macro] + yml_test.go:225: test invalid-domain-empty-label + yml_test.go:227: checkhost 1.2.3.4 foo@t10.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t10.example.com" ("t10.example.com") + spf.go:160: check t10.example.com 1 + spf.go:176: dns record "v=spf1 a:mail.example...com -all" + spf.go:526: masks on "a:mail.example...com": ["a:mail.example...com" ":mail.example...com" "mail.example...com" "" "" "" ""] "mail.example...com" {-1 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [invalid-domain-empty-label] + yml_test.go:225: test modifier-charset-bad2 + yml_test.go:227: checkhost 1.2.3.4 foo@t4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t4.example.com" ("t4.example.com") + spf.go:160: check t4.example.com 1 + spf.go:176: dns record "v=spf1 moo.cow:far_out=man:dog/cat ip4:1.2.3.4 -all" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [modifier-charset-bad2] + yml_test.go:225: test redirect-after-mechanisms1 + yml_test.go:227: checkhost 1.2.3.4 foo@t5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@t5.example.com" ("t5.example.com") + spf.go:160: check t5.example.com 1 + spf.go:176: dns record "v=spf1 redirect=t5.example.com ~all" + spf.go:237: softfail matched all + yml_test.go:234: success: softfail, matched 'all' [redirect-after-mechanisms1] yml_test.go:152: suite: ALL mechanism syntax - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 -all.] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 -all:foobar] yml_test.go:157: domain e3.example.com yml_test.go:159: SPF: [v=spf1 -all/8] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 ?all] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 all -all] - yml_test.go:225: test all-arg - yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 -all:foobar" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [all-arg] - yml_test.go:225: test all-cidr - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 -all/8" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [all-cidr] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 -all.] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 -all:foobar] yml_test.go:225: test all-neutral yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") @@ -3376,32 +3433,46 @@ spf.go:176: dns record "v=spf1 -all." spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [all-dot] + yml_test.go:225: test all-arg + yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 -all:foobar" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [all-arg] + yml_test.go:225: test all-cidr + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 -all/8" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [all-cidr] yml_test.go:152: suite: PTR mechanism syntax - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:159: AAAA: [2001:db8::1] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 ptr:] yml_test.go:157: domain loop.example.com yml_test.go:159: SPF: [v=spf1 ptr] - yml_test.go:157: domain 4.2.0.192.in-addr.arpa - yml_test.go:159: PTR: [loop4.example.com.] + yml_test.go:157: domain loop4.example.com + yml_test.go:159: CNAME: [CNAME.example.com.] yml_test.go:157: domain cname.example.com yml_test.go:159: CNAME: [CNAME.example.com.] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:159: AAAA: [2001:db8::1] yml_test.go:157: domain e2.example.com yml_test.go:159: SPF: [v=spf1 ptr:example.com -all] - yml_test.go:157: domain loop4.example.com - yml_test.go:159: CNAME: [CNAME.example.com.] yml_test.go:157: domain 4.3.2.1.in-addr.arpa yml_test.go:159: PTR: [e3.example.com] yml_test.go:159: PTR: [e4.example.com] yml_test.go:159: PTR: [mail.example.com] yml_test.go:157: 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:159: PTR: [mail.Example.com] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 ptr -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ptr:] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 ptr:example.Com -all] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ptr -all] + yml_test.go:157: domain 4.2.0.192.in-addr.arpa + yml_test.go:159: PTR: [loop4.example.com.] yml_test.go:157: domain e1.example.com yml_test.go:159: SPF: [v=spf1 ptr/0 -all] yml_test.go:157: 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 @@ -3410,13 +3481,6 @@ yml_test.go:159: SPF: [v=spf1 ptr -all] yml_test.go:159: A: [1.2.3.4] yml_test.go:159: AAAA: [CAFE:BABE::1] - yml_test.go:225: test ptr-cidr - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 ptr/0 -all" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [ptr-cidr] yml_test.go:225: test ptr-match-target yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -3484,9 +3548,34 @@ spf.go:407: ptr evaluating "loop.example.com" in [] spf.go:284: fallback to neutral yml_test.go:234: success: neutral, [ptr-cname-loop] + yml_test.go:225: test ptr-cidr + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 ptr/0 -all" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [ptr-cidr] yml_test.go:152: suite: A mechanism syntax - yml_test.go:157: domain e6a.example.com - yml_test.go:159: SPF: [v=spf1 a/33 -all] + yml_test.go:157: domain foo.example.com + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: A: [1.2.3.5] + yml_test.go:157: domain e13.example.com + yml_test.go:159: SPF: [v=spf1 a:] + yml_test.go:157: domain e14.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.xn--zckzah -all] + yml_test.go:157: domain e2a.example.com + yml_test.go:159: AAAA: [1234::1] + yml_test.go:159: SPF: [v=spf1 a//0 -all] + yml_test.go:157: domain e8.example.com + yml_test.go:159: A: [1.2.3.5] + yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] + yml_test.go:159: SPF: [v=spf1 a/24//64 -all] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 a/0 -all] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 a:abc.123] + yml_test.go:157: domain e5a.example.com + yml_test.go:159: SPF: [v=spf1 a:museum] yml_test.go:157: domain e8a.example.com yml_test.go:159: A: [1.2.3.5] yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] @@ -3495,66 +3584,73 @@ yml_test.go:159: A: [1.2.3.5] yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] yml_test.go:159: SPF: [v=spf1 a//64 -all] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 a:example.com:8080] - yml_test.go:157: domain e2.example.com - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: AAAA: [1234::2] - yml_test.go:159: SPF: [v=spf1 a/0 -all] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 a:111.222.33.44] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 a:abc.123] - yml_test.go:157: domain e5b.example.com - yml_test.go:159: SPF: [v=spf1 a:museum.] - yml_test.go:157: domain e8.example.com - yml_test.go:159: A: [1.2.3.5] - yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:159: SPF: [v=spf1 a/24//64 -all] - yml_test.go:157: domain foo.example.com - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 a:example.-com] - yml_test.go:157: domain e14.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.xn--zckzah -all] - yml_test.go:157: domain e2a.example.com + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 a//129 -all] + yml_test.go:157: domain foo.example.xn--zckzah + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain ipv6.example.com yml_test.go:159: AAAA: [1234::1] - yml_test.go:159: SPF: [v=spf1 a//0 -all] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.com] + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: SPF: [v=spf1 a -all] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 a//33 -all] + yml_test.go:157: domain e6a.example.com + yml_test.go:159: SPF: [v=spf1 a/33 -all] yml_test.go:157: domain e8e.example.com yml_test.go:159: A: [1.2.3.5] yml_test.go:159: AAAA: [2001:db8:1234::dead:beef] yml_test.go:159: SPF: [v=spf1 a/24/64 -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain ipv6.example.com - yml_test.go:159: AAAA: [1234::1] - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: SPF: [v=spf1 a -all] - yml_test.go:157: domain e5a.example.com - yml_test.go:159: SPF: [v=spf1 a:museum] - yml_test.go:157: domain foo.example.xn--zckzah - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 a:example.com:8080] yml_test.go:157: domain e11.example.com yml_test.go:159: SPF: [v=spf1 a:foo:bar/baz.example.com] - yml_test.go:157: domain e1.example.com + yml_test.go:157: domain e2.example.com + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: AAAA: [1234::2] yml_test.go:159: SPF: [v=spf1 a/0 -all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.com] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.com/24] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 a:example.-com] + yml_test.go:157: domain e5b.example.com + yml_test.go:159: SPF: [v=spf1 a:museum.] yml_test.go:157: domain e2b.example.com yml_test.go:159: A: [1.1.1.1] yml_test.go:159: SPF: [v=spf1 a//0 -all] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 a//129 -all] yml_test.go:157: domain foo:bar/baz.example.com yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.com/24] - yml_test.go:157: domain e13.example.com - yml_test.go:159: SPF: [v=spf1 a:] - yml_test.go:225: test a-multi-ip1 + yml_test.go:225: test a-dual-cidr-ip4-err + yml_test.go:227: checkhost 1.2.3.4 foo@e8e.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8e.example.com" ("e8e.example.com") + spf.go:160: check e8e.example.com 1 + spf.go:176: dns record "v=spf1 a/24/64 -all" + spf.go:526: masks on "a/24/64": [] "e8e.example.com" {-1 -1} + spf.go:246: a ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [a-dual-cidr-ip4-err] + yml_test.go:225: test a-dual-cidr-ip6-default + yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com + spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8a.example.com" ("e8a.example.com") + spf.go:160: check e8a.example.com 1 + spf.go:176: dns record "v=spf1 a/24 -all" + spf.go:526: masks on "a/24": ["a/24" "" "" "/24" "24" "" ""] "e8a.example.com" {24 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip6-default] + yml_test.go:225: test a-cidr6-0-ip6 + yml_test.go:227: checkhost 1234::1 foo@e2a.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 a//0 -all" + spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:561: mx matched 1234::1, 1234::1, {-1 0} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-cidr6-0-ip6] + yml_test.go:225: test a-multi-ip2 yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") spf.go:160: check e10.example.com 1 @@ -3562,15 +3658,49 @@ spf.go:526: masks on "a:foo.example.com/24": ["a:foo.example.com/24" ":foo.example.com" "foo.example.com" "/24" "24" "" ""] "foo.example.com" {24 -1} spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 -1} spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-multi-ip1] - yml_test.go:225: test a-cidr6-0-ip4mapped + yml_test.go:234: success: pass, matched 'a' [a-multi-ip2] + yml_test.go:225: test a-cidr6-0-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") spf.go:160: check e2a.example.com 1 spf.go:176: dns record "v=spf1 a//0 -all" spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4mapped] + yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4] + yml_test.go:225: test a-ip6-dualstack + yml_test.go:227: checkhost 1234::1 foo@ipv6.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@ipv6.example.com" ("ipv6.example.com") + spf.go:160: check ipv6.example.com 1 + spf.go:176: dns record "v=spf1 a -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "ipv6.example.com" {-1 -1} + spf.go:561: mx matched 1234::1, 1234::1, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-ip6-dualstack] + yml_test.go:225: test a-bad-cidr4 + yml_test.go:227: checkhost 1.2.3.4 foo@e6a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6a.example.com" ("e6a.example.com") + spf.go:160: check e6a.example.com 1 + spf.go:176: dns record "v=spf1 a/33 -all" + spf.go:246: a ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [a-bad-cidr4] + yml_test.go:225: test a-dual-cidr-ip4-match + yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 a/24//64 -all" + spf.go:526: masks on "a/24//64": ["a/24//64" "" "" "/24" "24" "//64" "64"] "e8.example.com" {24 64} + spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 64} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip4-match] + yml_test.go:225: test a-dual-cidr-ip6-match + yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com + spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 a/24//64 -all" + spf.go:526: masks on "a/24//64": ["a/24//64" "" "" "/24" "24" "//64" "64"] "e8.example.com" {24 64} + spf.go:561: mx matched 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, {24 64} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip6-match] yml_test.go:225: test a-dual-cidr-ip4-default yml_test.go:227: checkhost 1.2.3.4 foo@e8b.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8b.example.com" ("e8b.example.com") @@ -3579,23 +3709,7 @@ spf.go:526: masks on "a//64": ["a//64" "" "" "" "" "//64" "64"] "e8b.example.com" {-1 64} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip4-default] - yml_test.go:225: test a-cidr6-0-nxdomain - yml_test.go:227: checkhost 1234::1 foo@e2b.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") - spf.go:160: check e2b.example.com 1 - spf.go:176: dns record "v=spf1 a//0 -all" - spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-nxdomain] - yml_test.go:225: test a-dual-cidr-ip6-default - yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8a.example.com - spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8a.example.com" ("e8a.example.com") - spf.go:160: check e8a.example.com 1 - spf.go:176: dns record "v=spf1 a/24 -all" - spf.go:526: masks on "a/24": ["a/24" "" "" "/24" "24" "" ""] "e8a.example.com" {24 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip6-default] - yml_test.go:225: test a-multi-ip2 + yml_test.go:225: test a-multi-ip1 yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") spf.go:160: check e10.example.com 1 @@ -3603,7 +3717,7 @@ spf.go:526: masks on "a:foo.example.com/24": ["a:foo.example.com/24" ":foo.example.com" "foo.example.com" "/24" "24" "" ""] "foo.example.com" {24 -1} spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 -1} spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-multi-ip2] + yml_test.go:234: success: pass, matched 'a' [a-multi-ip1] yml_test.go:225: test a-cidr4-0 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -3621,47 +3735,6 @@ spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [a-cidr4-0-ip6] - yml_test.go:225: test a-cidr6-0-ip6 - yml_test.go:227: checkhost 1234::1 foo@e2a.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 - spf.go:176: dns record "v=spf1 a//0 -all" - spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:561: mx matched 1234::1, 1234::1, {-1 0} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-cidr6-0-ip6] - yml_test.go:225: test a-bad-cidr6 - yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 a//129 -all" - spf.go:246: a ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [a-bad-cidr6] - yml_test.go:225: test a-dual-cidr-ip4-err - yml_test.go:227: checkhost 1.2.3.4 foo@e8e.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8e.example.com" ("e8e.example.com") - spf.go:160: check e8e.example.com 1 - spf.go:176: dns record "v=spf1 a/24/64 -all" - spf.go:526: masks on "a/24/64": [] "e8e.example.com" {-1 -1} - spf.go:246: a ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [a-dual-cidr-ip4-err] - yml_test.go:225: test a-cidr6 - yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 a//33 -all" - spf.go:526: masks on "a//33": ["a//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6] - yml_test.go:225: test a-ip6-dualstack - yml_test.go:227: checkhost 1234::1 foo@ipv6.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@ipv6.example.com" ("ipv6.example.com") - spf.go:160: check ipv6.example.com 1 - spf.go:176: dns record "v=spf1 a -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "ipv6.example.com" {-1 -1} - spf.go:561: mx matched 1234::1, 1234::1, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-ip6-dualstack] yml_test.go:225: test a-dash-in-toplabel yml_test.go:227: checkhost 1.2.3.4 foo@e14.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e14.example.com" ("e14.example.com") @@ -3671,39 +3744,29 @@ spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [a-dash-in-toplabel] - yml_test.go:225: test a-dual-cidr-ip6-match - yml_test.go:227: checkhost 2001:db8:1234::cafe:babe foo@e8.example.com - spf.go:129: check host with sender "2001:db8:1234::cafe:babe" "mail.example.com" "foo@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 a/24//64 -all" - spf.go:526: masks on "a/24//64": ["a/24//64" "" "" "/24" "24" "//64" "64"] "e8.example.com" {24 64} - spf.go:561: mx matched 2001:db8:1234::cafe:babe, 2001:db8:1234::dead:beef, {24 64} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip6-match] - yml_test.go:225: test a-cidr6-0-ip4 - yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 + yml_test.go:225: test a-cidr6-0-nxdomain + yml_test.go:227: checkhost 1234::1 foo@e2b.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") + spf.go:160: check e2b.example.com 1 spf.go:176: dns record "v=spf1 a//0 -all" - spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4] - yml_test.go:225: test a-bad-cidr4 - yml_test.go:227: checkhost 1.2.3.4 foo@e6a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6a.example.com" ("e6a.example.com") - spf.go:160: check e6a.example.com 1 - spf.go:176: dns record "v=spf1 a/33 -all" + yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-nxdomain] + yml_test.go:225: test a-cidr6 + yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 a//33 -all" + spf.go:526: masks on "a//33": ["a//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-cidr6] + yml_test.go:225: test a-bad-cidr6 + yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 a//129 -all" spf.go:246: a ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [a-bad-cidr4] - yml_test.go:225: test a-dual-cidr-ip4-match - yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 a/24//64 -all" - spf.go:526: masks on "a/24//64": ["a/24//64" "" "" "/24" "24" "//64" "64"] "e8.example.com" {24 64} - spf.go:561: mx matched 1.2.3.4, 1.2.3.5, {24 64} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip4-match] + yml_test.go:234: success: permerror, invalid mask [a-bad-cidr6] yml_test.go:225: test a-nxdomain yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") @@ -3712,63 +3775,45 @@ spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [a-nxdomain] + yml_test.go:225: test a-cidr6-0-ip4mapped + yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 a//0 -all" + spf.go:526: masks on "a//0": ["a//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [a-cidr6-0-ip4mapped] yml_test.go:152: suite: Include mechanism semantics and syntax - yml_test.go:157: domain ip6.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.6 ~all] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 include:ip5.example.com ~all] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 include:erehwon.example.com -all] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 include: -all] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 include:e6.example.com -all] yml_test.go:157: domain ip8.example.com yml_test.go:159: TIMEOUT - yml_test.go:157: domain erehwon.example.com - yml_test.go:159: TXT: [v=spfl am not an SPF record] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 include:ip7.example.com -all] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 include +all] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 include:ip5.example.com/24 -all] - yml_test.go:157: domain ip5.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -all] - yml_test.go:157: domain ip7.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.7 ?all] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 include:ip8.example.com -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 include:e6.example.com -all] + yml_test.go:157: domain ip7.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.7 ?all] + yml_test.go:157: domain e8.example.com + yml_test.go:159: SPF: [v=spf1 include: -all] yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain ip5.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -all] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 include:ip5.example.com ~all] yml_test.go:157: domain e2.example.com yml_test.go:159: SPF: [v=spf1 include:ip6.example.com all] - yml_test.go:225: test include-temperror - yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 include:ip8.example.com -all" - spf.go:160: check ip8.example.com 2 - spf.go:164: dns temp error: lookup : test timeout error - spf.go:241: include ok, temperror lookup : test timeout error - yml_test.go:234: success: temperror, lookup : test timeout error [include-temperror] - yml_test.go:225: test include-permerror - yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 include:e6.example.com -all" - spf.go:160: check e6.example.com 2 - spf.go:176: dns record "v=spf1 include +all" - spf.go:277: permerror, unknown field - spf.go:241: include ok, permerror unknown field - yml_test.go:234: success: permerror, unknown field [include-permerror] - yml_test.go:225: test include-syntax-error - yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 include +all" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [include-syntax-error] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 include +all] + yml_test.go:157: domain ip6.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.6 ~all] + yml_test.go:157: domain erehwon.example.com + yml_test.go:159: TXT: [v=spfl am not an SPF record] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 include:ip5.example.com/24 -all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 include:ip7.example.com -all] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 include:erehwon.example.com -all] yml_test.go:225: test include-fail yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") @@ -3779,6 +3824,32 @@ spf.go:237: fail matched all spf.go:237: softfail matched all yml_test.go:234: success: softfail, matched 'all' [include-fail] + yml_test.go:225: test include-temperror + yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 include:ip8.example.com -all" + spf.go:160: check ip8.example.com 2 + spf.go:164: dns temp error: lookup : test timeout error + spf.go:241: include ok, temperror lookup : test timeout error + yml_test.go:234: success: temperror, lookup : test timeout error [include-temperror] + yml_test.go:225: test include-cidr + yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") + spf.go:160: check e9.example.com 1 + spf.go:176: dns record "v=spf1 include:ip5.example.com/24 -all" + spf.go:659: macro contains / + spf.go:241: include ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [include-cidr] + yml_test.go:225: test include-empty-domain + yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 include: -all" + spf.go:160: check 2 + spf.go:176: dns record "" + spf.go:241: include ok, permerror no DNS record found + yml_test.go:234: success: permerror, no DNS record found [include-empty-domain] yml_test.go:225: test include-softfail yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -3799,14 +3870,23 @@ spf.go:237: neutral matched all spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [include-neutral] - yml_test.go:225: test include-cidr - yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") - spf.go:160: check e9.example.com 1 - spf.go:176: dns record "v=spf1 include:ip5.example.com/24 -all" - spf.go:659: macro contains / - spf.go:241: include ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [include-cidr] + yml_test.go:225: test include-permerror + yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 include:e6.example.com -all" + spf.go:160: check e6.example.com 2 + spf.go:176: dns record "v=spf1 include +all" + spf.go:277: permerror, unknown field + spf.go:241: include ok, permerror unknown field + yml_test.go:234: success: permerror, unknown field [include-permerror] + yml_test.go:225: test include-syntax-error + yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 include +all" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [include-syntax-error] yml_test.go:225: test include-none yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") @@ -3816,67 +3896,99 @@ spf.go:176: dns record "" spf.go:241: include ok, permerror no DNS record found yml_test.go:234: success: permerror, no DNS record found [include-none] - yml_test.go:225: test include-empty-domain - yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 include: -all" - spf.go:160: check 2 - spf.go:176: dns record "" - spf.go:241: include ok, permerror no DNS record found - yml_test.go:234: success: permerror, no DNS record found [include-empty-domain] yml_test.go:152: suite: MX mechanism syntax - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 mx//129 -all] - yml_test.go:157: domain e13.example.com - yml_test.go:159: SPF: [v=spf1 mx: -all] - yml_test.go:157: domain e2a.example.com - yml_test.go:159: AAAA: [1234::1] - yml_test.go:159: MX: {0 e2a.example.com} - yml_test.go:159: SPF: [v=spf1 mx//0 -all] - yml_test.go:157: domain e2b.example.com - yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: MX: {0 e2b.example.com} - yml_test.go:159: SPF: [v=spf1 mx//0 -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 mx:abc.123] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 mx/0 -all] + yml_test.go:159: MX: {0 e1.example.com} yml_test.go:157: domain e6a.example.com yml_test.go:159: SPF: [v=spf1 mx/33 -all] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 mx//129 -all] yml_test.go:157: domain e2.example.com yml_test.go:159: A: [1.1.1.1] yml_test.go:159: AAAA: [1234::2] yml_test.go:159: MX: {0 e2.example.com} yml_test.go:159: SPF: [v=spf1 mx/0 -all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo.example.com] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 mx:example.com:8080] yml_test.go:157: domain e10.example.com yml_test.go:159: SPF: [v=spf1 mx:foo.example.com/24] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 mx//33 -all] yml_test.go:157: domain foo.example.com yml_test.go:159: MX: {0 foo1.example.com} + yml_test.go:157: domain foo1.example.com + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: A: [1.2.3.5] yml_test.go:157: domain foo:bar/baz.example.com yml_test.go:159: MX: {0 foo:bar/baz.example.com} yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 mx:example.-com] - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo:bar/baz.example.com] yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] yml_test.go:159: MX: {0 } yml_test.go:159: SPF: [v=spf1 mx] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 mx/0 -all] - yml_test.go:159: MX: {0 e1.example.com} - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo.example.com] - yml_test.go:157: domain foo1.example.com + yml_test.go:157: domain e2b.example.com yml_test.go:159: A: [1.1.1.1] - yml_test.go:159: A: [1.2.3.5] + yml_test.go:159: MX: {0 e2b.example.com} + yml_test.go:159: SPF: [v=spf1 mx//0 -all] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 mx:abc.123] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 mx//33 -all] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 mx:example.com:8080] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo:bar/baz.example.com] + yml_test.go:157: domain e13.example.com + yml_test.go:159: SPF: [v=spf1 mx: -all] + yml_test.go:157: domain e2a.example.com + yml_test.go:159: AAAA: [1234::1] + yml_test.go:159: MX: {0 e2a.example.com} + yml_test.go:159: SPF: [v=spf1 mx//0 -all] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 mx:example.-com] + yml_test.go:225: test mx-cidr4-0 + yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 mx/0 -all" + spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} + spf.go:615: mx matched 1.2.3.4, 1.1.1.1, {0 -1} + spf.go:251: mx ok, pass matched 'mx' + yml_test.go:234: success: pass, matched 'mx' [mx-cidr4-0] + yml_test.go:225: test mx-cidr6-0-ip4mapped + yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 mx//0 -all" + spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4mapped] + yml_test.go:225: test mx-cidr6-0-nxdomain + yml_test.go:227: checkhost 1234::1 foo@e2b.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") + spf.go:160: check e2b.example.com 1 + spf.go:176: dns record "v=spf1 mx//0 -all" + spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-nxdomain] + yml_test.go:225: test mx-empty + yml_test.go:227: checkhost 1.2.3.4 + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "" ("mail.example.com") + spf.go:160: check mail.example.com 1 + spf.go:176: dns record "v=spf1 mx" + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "mail.example.com" {-1 -1} + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [mx-empty] + yml_test.go:225: test mx-nxdomain + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 mx/0 -all" + spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [mx-nxdomain] yml_test.go:225: test mx-cidr6-0-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") @@ -3885,6 +3997,23 @@ spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4] + yml_test.go:225: test mx-cidr6-0-ip6 + yml_test.go:227: checkhost 1234::1 foo@e2a.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") + spf.go:160: check e2a.example.com 1 + spf.go:176: dns record "v=spf1 mx//0 -all" + spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} + spf.go:615: mx matched 1234::1, 1234::1, {-1 0} + spf.go:251: mx ok, pass matched 'mx' + yml_test.go:234: success: pass, matched 'mx' [mx-cidr6-0-ip6] + yml_test.go:225: test mx-implicit + yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 mx" + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e4.example.com" {-1 -1} + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [mx-implicit] yml_test.go:225: test mx-bad-cidr6 yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") @@ -3901,22 +4030,6 @@ spf.go:615: mx matched 1.2.3.4, 1.2.3.5, {24 -1} spf.go:251: mx ok, pass matched 'mx' yml_test.go:234: success: pass, matched 'mx' [mx-multi-ip1] - yml_test.go:225: test mx-cidr6-0-ip4mapped - yml_test.go:227: checkhost 1.2.3.4 foo@e2a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 - spf.go:176: dns record "v=spf1 mx//0 -all" - spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-ip4mapped] - yml_test.go:225: test mx-cidr6 - yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 mx//33 -all" - spf.go:526: masks on "mx//33": ["mx//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr6] yml_test.go:225: test mx-multi-ip2 yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") @@ -3926,23 +4039,14 @@ spf.go:615: mx matched 1.2.3.4, 1.2.3.5, {24 -1} spf.go:251: mx ok, pass matched 'mx' yml_test.go:234: success: pass, matched 'mx' [mx-multi-ip2] - yml_test.go:225: test mx-cidr4-0 - yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") + yml_test.go:225: test mx-cidr4-0-ip6 + yml_test.go:227: checkhost 1234::1 foo@e2.example.com + spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2.example.com" ("e2.example.com") spf.go:160: check e2.example.com 1 spf.go:176: dns record "v=spf1 mx/0 -all" spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} - spf.go:615: mx matched 1.2.3.4, 1.1.1.1, {0 -1} - spf.go:251: mx ok, pass matched 'mx' - yml_test.go:234: success: pass, matched 'mx' [mx-cidr4-0] - yml_test.go:225: test mx-cidr6-0-nxdomain - yml_test.go:227: checkhost 1234::1 foo@e2b.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2b.example.com" ("e2b.example.com") - spf.go:160: check e2b.example.com 1 - spf.go:176: dns record "v=spf1 mx//0 -all" - spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2b.example.com" {-1 0} spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr6-0-nxdomain] + yml_test.go:234: success: fail, matched 'all' [mx-cidr4-0-ip6] yml_test.go:225: test mx-bad-cidr4 yml_test.go:227: checkhost 1.2.3.4 foo@e6a.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6a.example.com" ("e6a.example.com") @@ -3950,73 +4054,33 @@ spf.go:176: dns record "v=spf1 mx/33 -all" spf.go:251: mx ok, permerror invalid mask yml_test.go:234: success: permerror, invalid mask [mx-bad-cidr4] - yml_test.go:225: test mx-implicit - yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 mx" - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e4.example.com" {-1 -1} - spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [mx-implicit] - yml_test.go:225: test mx-cidr4-0-ip6 - yml_test.go:227: checkhost 1234::1 foo@e2.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2.example.com" ("e2.example.com") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 mx/0 -all" - spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-cidr4-0-ip6] - yml_test.go:225: test mx-cidr6-0-ip6 - yml_test.go:227: checkhost 1234::1 foo@e2a.example.com - spf.go:129: check host with sender "1234::1" "mail.example.com" "foo@e2a.example.com" ("e2a.example.com") - spf.go:160: check e2a.example.com 1 - spf.go:176: dns record "v=spf1 mx//0 -all" - spf.go:526: masks on "mx//0": ["mx//0" "" "" "" "" "//0" "0"] "e2a.example.com" {-1 0} - spf.go:615: mx matched 1234::1, 1234::1, {-1 0} - spf.go:251: mx ok, pass matched 'mx' - yml_test.go:234: success: pass, matched 'mx' [mx-cidr6-0-ip6] - yml_test.go:225: test mx-empty - yml_test.go:227: checkhost 1.2.3.4 - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "" ("mail.example.com") - spf.go:160: check mail.example.com 1 - spf.go:176: dns record "v=spf1 mx" - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "mail.example.com" {-1 -1} - spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [mx-empty] - yml_test.go:225: test mx-nxdomain - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 mx/0 -all" - spf.go:526: masks on "mx/0": ["mx/0" "" "" "/0" "0" "" ""] "e1.example.com" {0 -1} + yml_test.go:225: test mx-cidr6 + yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 mx//33 -all" + spf.go:526: masks on "mx//33": ["mx//33" "" "" "" "" "//33" "33"] "e6.example.com" {-1 33} spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [mx-nxdomain] + yml_test.go:234: success: fail, matched 'all' [mx-cidr6] yml_test.go:152: suite: EXISTS mechanism syntax + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 exists:mail6.example.com -all] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 exists:err.example.com -all] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 exists:] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 exists:mail.example.com/24] + yml_test.go:157: domain mail6.example.com + yml_test.go:159: AAAA: [CAFE:BABE::4] yml_test.go:157: domain err.example.com yml_test.go:159: TIMEOUT yml_test.go:157: domain e2.example.com yml_test.go:159: SPF: [v=spf1 exists] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 exists:mail.example.com/24] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 exists:mail.example.com] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 exists:mail6.example.com -all] yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain mail6.example.com - yml_test.go:159: AAAA: [CAFE:BABE::4] - yml_test.go:225: test exists-dnserr - yml_test.go:227: checkhost cafe:babe::3 foo@e6.example.com - spf.go:129: check host with sender "cafe:babe::3" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 exists:err.example.com -all" - spf.go:266: exists ok, temperror lookup : test timeout error - yml_test.go:234: success: temperror, lookup : test timeout error [exists-dnserr] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 exists:] yml_test.go:225: test exists-empty-domain yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") @@ -4060,34 +4124,48 @@ spf.go:176: dns record "v=spf1 exists:mail6.example.com -all" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exists-ip6only] + yml_test.go:225: test exists-dnserr + yml_test.go:227: checkhost cafe:babe::3 foo@e6.example.com + spf.go:129: check host with sender "cafe:babe::3" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 exists:err.example.com -all" + spf.go:266: exists ok, temperror lookup : test timeout error + yml_test.go:234: success: temperror, lookup : test timeout error [exists-dnserr] yml_test.go:152: suite: IP4 mechanism syntax yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1/0 -all] yml_test.go:157: domain e3.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/33 -all] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/32 -all] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/032 -all] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 ip4] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4//32] yml_test.go:157: domain e7.example.com yml_test.go:159: SPF: [v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1/0 -all] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4/32 -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ip4] yml_test.go:157: domain e8.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4:8080] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3] - yml_test.go:225: test ip4-mapped-ip6 - yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4" - spf.go:256: ip ok, fail matched 'ip' - yml_test.go:234: success: fail, matched 'ip' [ip4-mapped-ip6] + yml_test.go:225: test cidr4-0 + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1/0 -all" + spf.go:256: ip ok, pass matched 'ip' + yml_test.go:234: success: pass, matched 'ip' [cidr4-0] + yml_test.go:225: test cidr4-33 + yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 ip4:1.2.3.4/33 -all" + spf.go:256: ip ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [cidr4-33] yml_test.go:225: test bare-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -4095,20 +4173,6 @@ spf.go:176: dns record "v=spf1 ip4" spf.go:277: permerror, unknown field yml_test.go:234: success: permerror, unknown field [bare-ip4] - yml_test.go:225: test bad-ip4-port - yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 ip4:1.2.3.4:8080" - spf.go:256: ip ok, permerror invalid ipX value - yml_test.go:234: success: permerror, invalid ipX value [bad-ip4-port] - yml_test.go:225: test bad-ip4-short - yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") - spf.go:160: check e9.example.com 1 - spf.go:176: dns record "v=spf1 ip4:1.2.3" - spf.go:256: ip ok, permerror invalid ipX value - yml_test.go:234: success: permerror, invalid ipX value [bad-ip4-short] yml_test.go:225: test ip4-dual-cidr yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") @@ -4116,13 +4180,6 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4//32" spf.go:256: ip ok, permerror invalid mask yml_test.go:234: success: permerror, invalid mask [ip4-dual-cidr] - yml_test.go:225: test cidr4-0 - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1/0 -all" - spf.go:256: ip ok, pass matched 'ip' - yml_test.go:234: success: pass, matched 'ip' [cidr4-0] yml_test.go:225: test cidr4-32 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -4130,18 +4187,28 @@ spf.go:176: dns record "v=spf1 ip4:1.2.3.4/32 -all" spf.go:256: ip ok, pass matched 'ip' yml_test.go:234: success: pass, matched 'ip' [cidr4-32] - yml_test.go:225: test cidr4-33 - yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 ip4:1.2.3.4/33 -all" - spf.go:256: ip ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [cidr4-33] + yml_test.go:225: test bad-ip4-port + yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 ip4:1.2.3.4:8080" + spf.go:256: ip ok, permerror invalid ipX value + yml_test.go:234: success: permerror, invalid ipX value [bad-ip4-port] + yml_test.go:225: test bad-ip4-short + yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") + spf.go:160: check e9.example.com 1 + spf.go:176: dns record "v=spf1 ip4:1.2.3" + spf.go:256: ip ok, permerror invalid ipX value + yml_test.go:234: success: permerror, invalid ipX value [bad-ip4-short] + yml_test.go:225: test ip4-mapped-ip6 + yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 -ip4:1.2.3.4 ip6:::FFFF:1.2.3.4" + spf.go:256: ip ok, fail matched 'ip' + yml_test.go:234: success: fail, matched 'ip' [ip4-mapped-ip6] yml_test.go:152: suite: IP6 mechanism syntax - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/129] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1//33] yml_test.go:157: domain e5.example.com yml_test.go:159: SPF: [v=spf1 ip6:Cafe:Babe:8000::/33] yml_test.go:157: domain e6.example.com @@ -4152,20 +4219,24 @@ yml_test.go:159: SPF: [v=spf1 -all ip6] yml_test.go:157: domain e2.example.com yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/0] - yml_test.go:225: test cidr6-ip4 + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1/129] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ip6:::1.1.1.1//33] + yml_test.go:225: test cidr6-0-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") spf.go:160: check e2.example.com 1 spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/0" spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [cidr6-ip4] - yml_test.go:225: test cidr6-0 - yml_test.go:227: checkhost deaf:babe::cab:fee foo@e2.example.com - spf.go:129: check host with sender "deaf:babe::cab:fee" "mail.example.com" "foo@e2.example.com" ("e2.example.com") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/0" - spf.go:256: ip ok, pass matched 'ip' - yml_test.go:234: success: pass, matched 'ip' [cidr6-0] + yml_test.go:234: success: neutral, [cidr6-0-ip4] + yml_test.go:225: test cidr6-bad + yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 ip6:::1.1.1.1//33" + spf.go:256: ip ok, permerror invalid mask + yml_test.go:234: success: permerror, invalid mask [cidr6-bad] yml_test.go:225: test cidr6-33-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -4173,13 +4244,27 @@ spf.go:176: dns record "v=spf1 ip6:Cafe:Babe:8000::/33" spf.go:284: fallback to neutral yml_test.go:234: success: neutral, [cidr6-33-ip4] - yml_test.go:225: test cidr6-0-ip4 + yml_test.go:225: test ip6-bad1 + yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 ip6::CAFE::BABE" + spf.go:256: ip ok, permerror invalid ipX value + yml_test.go:234: success: permerror, invalid ipX value [ip6-bad1] + yml_test.go:225: test cidr6-ip4 yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") spf.go:160: check e2.example.com 1 spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/0" spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [cidr6-0-ip4] + yml_test.go:234: success: neutral, [cidr6-ip4] + yml_test.go:225: test cidr6-0 + yml_test.go:227: checkhost deaf:babe::cab:fee foo@e2.example.com + spf.go:129: check host with sender "deaf:babe::cab:fee" "mail.example.com" "foo@e2.example.com" ("e2.example.com") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/0" + spf.go:256: ip ok, pass matched 'ip' + yml_test.go:234: success: pass, matched 'ip' [cidr6-0] yml_test.go:225: test cidr6-129 yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") @@ -4187,13 +4272,6 @@ spf.go:176: dns record "v=spf1 ip6:::1.1.1.1/129" spf.go:256: ip ok, permerror invalid mask yml_test.go:234: success: permerror, invalid mask [cidr6-129] - yml_test.go:225: test cidr6-bad - yml_test.go:227: checkhost 1.2.3.4 foo@e4.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 ip6:::1.1.1.1//33" - spf.go:256: ip ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [cidr6-bad] yml_test.go:225: test cidr6-33 yml_test.go:227: checkhost cafe:babe:8000:: foo@e5.example.com spf.go:129: check host with sender "cafe:babe:8000::" "mail.example.com" "foo@e5.example.com" ("e5.example.com") @@ -4201,100 +4279,110 @@ spf.go:176: dns record "v=spf1 ip6:Cafe:Babe:8000::/33" spf.go:256: ip ok, pass matched 'ip' yml_test.go:234: success: pass, matched 'ip' [cidr6-33] - yml_test.go:225: test ip6-bad1 - yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 ip6::CAFE::BABE" - spf.go:256: ip ok, permerror invalid ipX value - yml_test.go:234: success: permerror, invalid ipX value [ip6-bad1] yml_test.go:152: suite: Semantics of exp and other modifiers - yml_test.go:157: domain exp4.example.com - yml_test.go:159: TXT: [%{l} in implementation] + yml_test.go:157: domain e21msg.example.com + yml_test.go:159: TIMEOUT + yml_test.go:157: domain e22.example.com + yml_test.go:159: SPF: [v=spf1 exp=mail.example.com -all] + yml_test.go:157: domain e23.example.com + yml_test.go:159: SPF: [v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] yml_test.go:157: domain e10.example.com yml_test.go:159: SPF: [v=spf1 redirect=erehwon.example.com] - yml_test.go:157: domain e16.example.com - yml_test.go:159: SPF: [v=spf1 exp=-all] - yml_test.go:157: domain e21.example.com - yml_test.go:159: SPF: [v=spf1 exp=e21msg.example.com -all] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 =all] - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e11msg.example.com] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 exp= -all] - yml_test.go:157: domain e24.example.com - yml_test.go:159: SPF: [v=spf1 redirect=testimplicit.example.com] - yml_test.go:159: A: [192.0.2.1] - yml_test.go:157: domain testimplicit.example.com - yml_test.go:159: SPF: [v=spf1 a -all] - yml_test.go:159: A: [192.0.2.2] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:157: domain e11msg.example.com yml_test.go:159: TXT: [Answer a fool according to his folly.] yml_test.go:159: TXT: [Do not answer a fool according to his folly.] - yml_test.go:157: domain e13.example.com - yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] yml_test.go:157: domain e20.example.com yml_test.go:159: SPF: [v=spf1 default=+] - yml_test.go:157: domain e22.example.com - yml_test.go:159: SPF: [v=spf1 exp=mail.example.com -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 1up=foo] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=exp4.example.com] - yml_test.go:157: domain e13msg.example.com - yml_test.go:159: TXT: [The %{x}-files.] - yml_test.go:157: domain e18.example.com - yml_test.go:159: SPF: [v=spf1 ?all redirect=] yml_test.go:157: domain nonascii.example.com yml_test.go:159: SPF: [v=spf1 exp=badexp.example.com -all] + yml_test.go:157: domain e24.example.com + yml_test.go:159: SPF: [v=spf1 redirect=testimplicit.example.com] + yml_test.go:159: A: [192.0.2.1] yml_test.go:157: domain exp3.example.com yml_test.go:159: TXT: [Correct!] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=exp2.example.com] - yml_test.go:157: domain exp1.example.com - yml_test.go:159: TXT: [No-see-um] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 -all foo=%abc] - yml_test.go:157: domain e15.example.com - yml_test.go:159: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] yml_test.go:157: domain e17.example.com yml_test.go:159: SPF: [v=spf1 redirect=-all ?all] - yml_test.go:157: domain e21msg.example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 =all] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e11msg.example.com] + yml_test.go:157: domain e15.example.com + yml_test.go:159: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.example.com] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:157: domain exp1.example.com + yml_test.go:159: TXT: [No-see-um] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 1up=foo] + yml_test.go:157: domain e13msg.example.com + yml_test.go:159: TXT: [The %{x}-files.] + yml_test.go:157: domain e16.example.com + yml_test.go:159: SPF: [v=spf1 exp=-all] + yml_test.go:157: domain exp2.example.com + yml_test.go:159: TXT: [See me.] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 include:e3.example.com -all exp=exp3.example.com] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 exp= -all] yml_test.go:157: domain e14.example.com yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] + yml_test.go:157: domain tworecs.example.com + yml_test.go:159: SPF: [v=spf1 exp=twoexp.example.com -all] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e2.example.com] + yml_test.go:157: domain e8.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=exp4.example.com] + yml_test.go:157: domain e13.example.com + yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all] + yml_test.go:157: domain e21.example.com + yml_test.go:159: SPF: [v=spf1 exp=e21msg.example.com -all] + yml_test.go:157: domain badexp.example.com + yml_test.go:159: TXT: [Explanation] yml_test.go:157: domain twoexp.example.com yml_test.go:159: TXT: [one] yml_test.go:159: TXT: [two] - yml_test.go:157: domain e23.example.com - yml_test.go:159: SPF: [v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all] - yml_test.go:157: domain exp2.example.com - yml_test.go:159: TXT: [See me.] - yml_test.go:157: domain badexp.example.com - yml_test.go:159: TXT: [Explanation] - yml_test.go:157: domain tworecs.example.com - yml_test.go:159: SPF: [v=spf1 exp=twoexp.example.com -all] + yml_test.go:157: domain testimplicit.example.com + yml_test.go:159: SPF: [v=spf1 a -all] + yml_test.go:159: A: [192.0.2.2] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e18.example.com + yml_test.go:159: SPF: [v=spf1 ?all redirect=] yml_test.go:157: domain e19.example.com yml_test.go:159: SPF: [v=spf1 default=pass] - yml_test.go:225: test exp-dns-error - yml_test.go:227: checkhost 1.2.3.4 foo@e21.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e21.example.com" ("e21.example.com") - spf.go:160: check e21.example.com 1 - spf.go:176: dns record "v=spf1 exp=e21msg.example.com -all" + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=exp2.example.com] + yml_test.go:157: domain exp4.example.com + yml_test.go:159: TXT: [%{l} in implementation] + yml_test.go:225: test redirect-cancels-exp + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 exp=exp1.example.com redirect=e2.example.com" spf.go:270: exp= not used, skipping + spf.go:273: redirect, "redirect=e2.example.com" + spf.go:160: check e2.example.com 2 + spf.go:176: dns record "v=spf1 -all" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [exp-dns-error] + yml_test.go:234: success: fail, matched 'all' [redirect-cancels-exp] + yml_test.go:225: test empty-modifier-name + yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 =all" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [empty-modifier-name] + yml_test.go:225: test dorky-sentinel + yml_test.go:227: checkhost 1.2.3.4 Macro Error@e8.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "Macro Error@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=exp4.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [dorky-sentinel] yml_test.go:225: test non-ascii-exp yml_test.go:227: checkhost 1.2.3.4 foobar@nonascii.example.com spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@nonascii.example.com" ("nonascii.example.com") @@ -4303,14 +4391,6 @@ spf.go:270: exp= not used, skipping spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [non-ascii-exp] - yml_test.go:225: test two-exp-records - yml_test.go:227: checkhost 1.2.3.4 foobar@tworecs.example.com - spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@tworecs.example.com" ("tworecs.example.com") - spf.go:160: check tworecs.example.com 1 - spf.go:176: dns record "v=spf1 exp=twoexp.example.com -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [two-exp-records] yml_test.go:225: test redirect-none yml_test.go:227: checkhost 1.2.3.4 foo@e10.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e10.example.com" ("e10.example.com") @@ -4320,17 +4400,27 @@ spf.go:160: check erehwon.example.com 2 spf.go:176: dns record "" yml_test.go:234: success: permerror, no DNS record found [redirect-none] - yml_test.go:225: test redirect-cancels-exp - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 exp=exp1.example.com redirect=e2.example.com" + yml_test.go:225: test invalid-modifier + yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 1up=foo" + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [invalid-modifier] + yml_test.go:225: test explanation-syntax-error + yml_test.go:227: checkhost 1.2.3.4 foo@e13.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e13.example.com" ("e13.example.com") + spf.go:160: check e13.example.com 1 + spf.go:176: dns record "v=spf1 exp=e13msg.example.com -all" spf.go:270: exp= not used, skipping - spf.go:273: redirect, "redirect=e2.example.com" - spf.go:160: check e2.example.com 2 - spf.go:176: dns record "v=spf1 -all" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [redirect-cancels-exp] + yml_test.go:234: success: fail, matched 'all' [explanation-syntax-error] + yml_test.go:225: test redirect-twice + yml_test.go:227: checkhost 1.2.3.4 foo@e15.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e15.example.com" ("e15.example.com") + spf.go:160: check e15.example.com 1 + spf.go:176: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" + yml_test.go:234: success: permerror, invalid domain [redirect-twice] yml_test.go:225: test include-ignores-exp yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") @@ -4345,13 +4435,6 @@ spf.go:237: fail matched all spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [include-ignores-exp] - yml_test.go:225: test dorky-sentinel - yml_test.go:227: checkhost 1.2.3.4 Macro Error@e8.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "Macro Error@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=exp4.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [dorky-sentinel] yml_test.go:225: test exp-multiple-txt yml_test.go:227: checkhost 1.2.3.4 foo@e11.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e11.example.com" ("e11.example.com") @@ -4359,14 +4442,6 @@ spf.go:176: dns record "v=spf1 -all exp=e11msg.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exp-multiple-txt] - yml_test.go:225: test exp-no-txt - yml_test.go:227: checkhost 1.2.3.4 foo@e22.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e22.example.com" ("e22.example.com") - spf.go:160: check e22.example.com 1 - spf.go:176: dns record "v=spf1 exp=mail.example.com -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [exp-no-txt] yml_test.go:225: test exp-void yml_test.go:227: checkhost 1.2.3.4 foo@e23.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e23.example.com" ("e23.example.com") @@ -4377,12 +4452,30 @@ spf.go:270: exp= not used, skipping spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exp-void] - yml_test.go:225: test redirect-twice - yml_test.go:227: checkhost 1.2.3.4 foo@e15.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e15.example.com" ("e15.example.com") - spf.go:160: check e15.example.com 1 - spf.go:176: dns record "v=spf1 redirect=e12.example.com -all redirect=e12.example.com" - yml_test.go:234: success: permerror, invalid domain [redirect-twice] + yml_test.go:225: test exp-no-txt + yml_test.go:227: checkhost 1.2.3.4 foo@e22.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e22.example.com" ("e22.example.com") + spf.go:160: check e22.example.com 1 + spf.go:176: dns record "v=spf1 exp=mail.example.com -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [exp-no-txt] + yml_test.go:225: test exp-dns-error + yml_test.go:227: checkhost 1.2.3.4 foo@e21.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e21.example.com" ("e21.example.com") + spf.go:160: check e21.example.com 1 + spf.go:176: dns record "v=spf1 exp=e21msg.example.com -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [exp-dns-error] + yml_test.go:225: test two-exp-records + yml_test.go:227: checkhost 1.2.3.4 foobar@tworecs.example.com + spf.go:129: check host with sender "1.2.3.4" "hosed" "foobar@tworecs.example.com" ("tworecs.example.com") + spf.go:160: check tworecs.example.com 1 + spf.go:176: dns record "v=spf1 exp=twoexp.example.com -all" + spf.go:270: exp= not used, skipping + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [two-exp-records] yml_test.go:225: test redirect-cancels-prior-exp yml_test.go:227: checkhost 1.2.3.4 foo@e3.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e3.example.com" ("e3.example.com") @@ -4394,28 +4487,6 @@ spf.go:176: dns record "v=spf1 -all exp=exp2.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [redirect-cancels-prior-exp] - yml_test.go:225: test invalid-modifier - yml_test.go:227: checkhost 1.2.3.4 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 1up=foo" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [invalid-modifier] - yml_test.go:225: test empty-modifier-name - yml_test.go:227: checkhost 1.2.3.4 foo@e6.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 =all" - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [empty-modifier-name] - yml_test.go:225: test explanation-syntax-error - yml_test.go:227: checkhost 1.2.3.4 foo@e13.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e13.example.com" ("e13.example.com") - spf.go:160: check e13.example.com 1 - spf.go:176: dns record "v=spf1 exp=e13msg.example.com -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [explanation-syntax-error] yml_test.go:225: test redirect-implicit yml_test.go:227: checkhost 192.0.2.2 bar@e24.example.com spf.go:129: check host with sender "192.0.2.2" "e24.example.com" "bar@e24.example.com" ("e24.example.com") @@ -4429,109 +4500,125 @@ spf.go:246: a ok, pass matched 'a' yml_test.go:234: success: pass, matched 'a' [redirect-implicit] yml_test.go:152: suite: Macro expansion rules - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=%{ir}.example.com] + yml_test.go:157: domain a.spf.example.com + yml_test.go:159: SPF: [v=spf1 include:o.spf.example.com. ~all] + yml_test.go:157: domain msg.example.com + yml_test.go:159: TXT: [This is a test.] + yml_test.go:157: domain somewhat.long.exp.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] + yml_test.go:157: 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:159: TXT: [Congratulations! That was tricky.] yml_test.go:157: domain e6msg.example.com yml_test.go:159: TXT: [connect from %{p}] - yml_test.go:157: domain 41.218.168.192.in-addr.arpa - yml_test.go:159: PTR: [mx.example.com] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] - yml_test.go:157: domain exp.example.com - yml_test.go:159: SPF: [v=spf1 exp=msg.example.com. -all] - yml_test.go:157: domain 40.218.168.192.in-addr.arpa - yml_test.go:159: PTR: [mx.example.com] yml_test.go:157: 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:159: PTR: [mx.example.com] - yml_test.go:157: 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:159: TXT: [Congratulations! That was tricky.] - yml_test.go:157: domain somewhat.long.exp.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com] - yml_test.go:157: domain e4msg.example.com - yml_test.go:159: TXT: [%{c} is queried as %{ir}.%{v}.arpa] - yml_test.go:157: domain mx.e7.example.com - yml_test.go:159: A: [192.168.218.42] - yml_test.go:157: domain e1t.example.com - yml_test.go:159: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] + yml_test.go:157: domain e11.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] yml_test.go:157: domain example.com yml_test.go:159: A: [192.168.90.76] yml_test.go:159: SPF: [v=spf1 redirect=%{d}.d.spf.example.com.] - yml_test.go:157: domain e4.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e4msg.example.com] + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=%{r}.example.com] + yml_test.go:157: domain 40.218.168.192.example.com + yml_test.go:159: TXT: [Connections from %{c} not authorized.] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 a:%{a}.example.com -all] yml_test.go:157: domain e8.example.com yml_test.go:159: SPF: [v=spf1 -all exp=msg8.%{D2}] - yml_test.go:157: domain a.spf.example.com - yml_test.go:159: SPF: [v=spf1 include:o.spf.example.com. ~all] - yml_test.go:157: domain msg.example.com - yml_test.go:159: TXT: [This is a test.] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] + yml_test.go:157: domain o.spf.example.com + yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] yml_test.go:157: domain e1a.example.com yml_test.go:159: SPF: [v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all] - yml_test.go:157: domain 40.218.168.192.example.com - yml_test.go:159: TXT: [Connections from %{c} not authorized.] - yml_test.go:157: domain mx.example.com - yml_test.go:159: A: [192.168.218.41] + yml_test.go:157: domain mx.e7.example.com yml_test.go:159: A: [192.168.218.42] - yml_test.go:159: AAAA: [CAFE:BABE::2] - yml_test.go:159: AAAA: [CAFE:BABE::3] - yml_test.go:157: 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:159: PTR: [mx.example.com] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] - yml_test.go:157: domain o.spf.example.com - yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 a:%{H} -all] - yml_test.go:157: domain 1.2.3.4.gladstone.philip.user.example.com - yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] - yml_test.go:157: domain msg8.example.com - yml_test.go:159: TXT: [http://example.com/why.html?l=%{L}] + yml_test.go:157: domain msgbas2x.cos.example.com + yml_test.go:159: A: [192.168.218.40] yml_test.go:157: domain e1e.example.com yml_test.go:159: SPF: [v=spf1 exists:foo%(ir).sbl.example.com ?all] - yml_test.go:157: domain macro%percent space%20url-space.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=%{r}.example.com] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e4msg.example.com] + yml_test.go:157: domain 41.218.168.192.in-addr.arpa + yml_test.go:159: PTR: [mx.example.com] + yml_test.go:157: domain e1t.example.com + yml_test.go:159: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=%{ir}.example.com] + yml_test.go:157: domain _spfh.example.com + yml_test.go:159: SPF: [v=spf1 -a:%{h} +all] + yml_test.go:157: domain example.com.d.spf.example.com + yml_test.go:159: SPF: [v=spf1 redirect=a.spf.example.com] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 -all exp=e6msg.example.com] + yml_test.go:157: domain 40.218.168.192.in-addr.arpa + yml_test.go:159: PTR: [mx.example.com] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{p}.should.example.com ~exists:%{p}.ok.example.com] + yml_test.go:157: domain msg8.example.com + yml_test.go:159: TXT: [http://example.com/why.html?l=%{L}] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 -exists:%(ir).sbl.example.com ?all] yml_test.go:157: domain mx.e7.example.com.should.example.com yml_test.go:159: A: [127.0.0.2] + yml_test.go:157: domain mx.example.com.ok.example.com + yml_test.go:159: A: [127.0.0.2] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all] + yml_test.go:157: domain 1.2.3.4.gladstone.philip.user.example.com + yml_test.go:159: A: [127.0.0.2] yml_test.go:157: domain bar.foo.user.example.com yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain msgbas2x.cos.example.com - yml_test.go:159: A: [192.168.218.40] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 a:%{a}.example.com -all] + yml_test.go:157: domain exp.example.com + yml_test.go:159: SPF: [v=spf1 exp=msg.example.com. -all] + yml_test.go:157: domain macro%percent space%20url-space.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e4msg.example.com + yml_test.go:159: TXT: [%{c} is queried as %{ir}.%{v}.arpa] + yml_test.go:157: domain mx.example.com + yml_test.go:159: A: [192.168.218.41] + yml_test.go:159: A: [192.168.218.42] + yml_test.go:159: AAAA: [CAFE:BABE::2] + yml_test.go:159: AAAA: [CAFE:BABE::3] yml_test.go:157: domain 42.218.168.192.in-addr.arpa yml_test.go:159: PTR: [mx.example.com] yml_test.go:159: PTR: [mx.e7.example.com] - yml_test.go:157: domain mx.example.com.ok.example.com - yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain _spfh.example.com - yml_test.go:159: SPF: [v=spf1 -a:%{h} +all] - yml_test.go:157: domain example.com.d.spf.example.com - yml_test.go:159: SPF: [v=spf1 redirect=a.spf.example.com] - yml_test.go:157: domain e11.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] - yml_test.go:225: test exp-txt-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e3.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e3.example.com" ("e3.example.com") - spf.go:160: check e3.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=%{ir}.example.com" + yml_test.go:157: 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:159: PTR: [mx.example.com] + yml_test.go:225: test trailing-dot-exp + yml_test.go:227: checkhost 192.168.218.40 test@exp.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@exp.example.com" ("exp.example.com") + spf.go:160: check exp.example.com 1 + spf.go:176: dns record "v=spf1 exp=msg.example.com. -all" + spf.go:270: exp= not used, skipping spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [exp-txt-macro-char] - yml_test.go:225: test undef-macro - yml_test.go:227: checkhost cafe:babe::c0a8:da28 test@e5.example.com - spf.go:129: check host with sender "cafe:babe::c0a8:da28" "msgbas2x.cos.example.com" "test@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 a:%{a}.example.com -all" - spf.go:526: masks on "a:%{a}.example.com": ["a:%{a}.example.com" ":%{a}.example.com" "%{a}.example.com" "" "" "" ""] "%{a}.example.com" {-1 -1} - spf.go:708: macro "a": [] - spf.go:246: a ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [undef-macro] + yml_test.go:234: success: fail, matched 'all' [trailing-dot-exp] + yml_test.go:225: test invalid-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e1.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" + spf.go:266: exists ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [invalid-macro-char] + yml_test.go:225: test invalid-embedded-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e1e.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1e.example.com" ("e1e.example.com") + spf.go:160: check e1e.example.com 1 + spf.go:176: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" + spf.go:266: exists ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [invalid-embedded-macro-char] + yml_test.go:225: test macro-mania-in-domain + yml_test.go:227: checkhost 1.2.3.4 test@e1a.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "test@e1a.example.com" ("e1a.example.com") + spf.go:160: check e1a.example.com 1 + spf.go:176: dns record "v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all" + spf.go:526: masks on "a:macro%%percent%_%_space%-url-space.example.com": ["a:macro%%percent%_%_space%-url-space.example.com" ":macro%%percent%_%_space%-url-space.example.com" "macro%%percent%_%_space%-url-space.example.com" "" "" "" ""] "macro%%percent%_%_space%-url-space.example.com" {-1 -1} + spf.go:805: macro expanded "macro%%percent%_%_space%-url-space.example.com" to "macro%percent space%20url-space.example.com" + spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [macro-mania-in-domain] yml_test.go:225: test p-macro-ip6-valid yml_test.go:227: checkhost cafe:babe::3 test@e6.example.com spf.go:129: check host with sender "cafe:babe::3" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") @@ -4557,42 +4644,6 @@ spf.go:256: ip ok, pass matched 'ip' spf.go:241: include ok, pass matched 'ip' yml_test.go:234: success: pass, matched 'ip' [trailing-dot-domain] - yml_test.go:225: test trailing-dot-exp - yml_test.go:227: checkhost 192.168.218.40 test@exp.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@exp.example.com" ("exp.example.com") - spf.go:160: check exp.example.com 1 - spf.go:176: dns record "v=spf1 exp=msg.example.com. -all" - spf.go:270: exp= not used, skipping - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [trailing-dot-exp] - yml_test.go:225: test invalid-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e1.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 -exists:%(ir).sbl.example.com ?all" - spf.go:266: exists ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [invalid-macro-char] - yml_test.go:225: test v-macro-ip6 - yml_test.go:227: checkhost cafe:babe::1 test@e4.example.com - spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e4.example.com" ("e4.example.com") - spf.go:160: check e4.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e4msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [v-macro-ip6] - yml_test.go:225: test p-macro-ip4-valid - yml_test.go:227: checkhost 192.168.218.41 test@e6.example.com - spf.go:129: check host with sender "192.168.218.41" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-valid] - yml_test.go:225: test invalid-trailing-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e1t.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1t.example.com" ("e1t.example.com") - spf.go:160: check e1t.example.com 1 - spf.go:176: dns record "v=spf1 exists:foo%.sbl.example.com ?all" - spf.go:266: exists ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [invalid-trailing-macro-char] yml_test.go:225: test domain-name-truncation yml_test.go:227: checkhost 192.168.218.40 test@somewhat.long.exp.example.com spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@somewhat.long.exp.example.com" ("somewhat.long.exp.example.com") @@ -4617,16 +4668,34 @@ spf.go:805: macro expanded "%{H}" to "e9.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [invalid-hello-macro] - yml_test.go:225: test hello-domain-literal - yml_test.go:227: checkhost 192.168.218.40 test@e9.example.com - spf.go:129: check host with sender "192.168.218.40" "[192.168.218.40]" "test@e9.example.com" ("e9.example.com") - spf.go:160: check e9.example.com 1 - spf.go:176: dns record "v=spf1 a:%{H} -all" - spf.go:526: masks on "a:%{H}": ["a:%{H}" ":%{H}" "%{H}" "" "" "" ""] "%{H}" {-1 -1} - spf.go:708: macro "H": ["H" "H" "" "" ""] - spf.go:805: macro expanded "%{H}" to "e9.example.com" + yml_test.go:225: test invalid-trailing-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e1t.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1t.example.com" ("e1t.example.com") + spf.go:160: check e1t.example.com 1 + spf.go:176: dns record "v=spf1 exists:foo%.sbl.example.com ?all" + spf.go:266: exists ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [invalid-trailing-macro-char] + yml_test.go:225: test p-macro-ip4-novalid + yml_test.go:227: checkhost 192.168.218.40 test@e6.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [hello-domain-literal] + yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-novalid] + yml_test.go:225: test p-macro-ip4-valid + yml_test.go:227: checkhost 192.168.218.41 test@e6.example.com + spf.go:129: check host with sender "192.168.218.41" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-valid] + yml_test.go:225: test p-macro-ip6-novalid + yml_test.go:227: checkhost cafe:babe::1 test@e6.example.com + spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-novalid] yml_test.go:225: test require-valid-helo yml_test.go:227: checkhost 1.2.3.4 test@e10.example.com spf.go:129: check host with sender "1.2.3.4" "OEMCOMPUTER" "test@e10.example.com" ("e10.example.com") @@ -4642,30 +4711,6 @@ spf.go:237: pass matched all spf.go:241: include ok, fail matched 'all' yml_test.go:234: success: fail, matched 'all' [require-valid-helo] - yml_test.go:225: test invalid-embedded-macro-char - yml_test.go:227: checkhost 192.168.218.40 test@e1e.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e1e.example.com" ("e1e.example.com") - spf.go:160: check e1e.example.com 1 - spf.go:176: dns record "v=spf1 exists:foo%(ir).sbl.example.com ?all" - spf.go:266: exists ok, permerror invalid macro - yml_test.go:234: success: permerror, invalid macro [invalid-embedded-macro-char] - yml_test.go:225: test macro-mania-in-domain - yml_test.go:227: checkhost 1.2.3.4 test@e1a.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "test@e1a.example.com" ("e1a.example.com") - spf.go:160: check e1a.example.com 1 - spf.go:176: dns record "v=spf1 a:macro%%percent%_%_space%-url-space.example.com -all" - spf.go:526: masks on "a:macro%%percent%_%_space%-url-space.example.com": ["a:macro%%percent%_%_space%-url-space.example.com" ":macro%%percent%_%_space%-url-space.example.com" "macro%%percent%_%_space%-url-space.example.com" "" "" "" ""] "macro%%percent%_%_space%-url-space.example.com" {-1 -1} - spf.go:805: macro expanded "macro%%percent%_%_space%-url-space.example.com" to "macro%percent space%20url-space.example.com" - spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [macro-mania-in-domain] - yml_test.go:225: test p-macro-ip4-novalid - yml_test.go:227: checkhost 192.168.218.40 test@e6.example.com - spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-novalid] yml_test.go:225: test macro-reverse-split-on-dash yml_test.go:227: checkhost 1.2.3.4 philip-gladstone-test@e11.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "philip-gladstone-test@e11.example.com" ("e11.example.com") @@ -4694,32 +4739,92 @@ spf.go:176: dns record "v=spf1 -all exp=e4msg.example.com" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [v-macro-ip4] - yml_test.go:225: test p-macro-ip6-novalid - yml_test.go:227: checkhost cafe:babe::1 test@e6.example.com - spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=e6msg.example.com" + yml_test.go:225: test exp-txt-macro-char + yml_test.go:227: checkhost 192.168.218.40 test@e3.example.com + spf.go:129: check host with sender "192.168.218.40" "msgbas2x.cos.example.com" "test@e3.example.com" ("e3.example.com") + spf.go:160: check e3.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=%{ir}.example.com" spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-novalid] + yml_test.go:234: success: fail, matched 'all' [exp-txt-macro-char] + yml_test.go:225: test v-macro-ip6 + yml_test.go:227: checkhost cafe:babe::1 test@e4.example.com + spf.go:129: check host with sender "cafe:babe::1" "msgbas2x.cos.example.com" "test@e4.example.com" ("e4.example.com") + spf.go:160: check e4.example.com 1 + spf.go:176: dns record "v=spf1 -all exp=e4msg.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [v-macro-ip6] + yml_test.go:225: test undef-macro + yml_test.go:227: checkhost cafe:babe::c0a8:da28 test@e5.example.com + spf.go:129: check host with sender "cafe:babe::c0a8:da28" "msgbas2x.cos.example.com" "test@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 a:%{a}.example.com -all" + spf.go:526: masks on "a:%{a}.example.com": ["a:%{a}.example.com" ":%{a}.example.com" "%{a}.example.com" "" "" "" ""] "%{a}.example.com" {-1 -1} + spf.go:708: macro "a": [] + spf.go:246: a ok, permerror invalid macro + yml_test.go:234: success: permerror, invalid macro [undef-macro] + yml_test.go:225: test hello-domain-literal + yml_test.go:227: checkhost 192.168.218.40 test@e9.example.com + spf.go:129: check host with sender "192.168.218.40" "[192.168.218.40]" "test@e9.example.com" ("e9.example.com") + spf.go:160: check e9.example.com 1 + spf.go:176: dns record "v=spf1 a:%{H} -all" + spf.go:526: masks on "a:%{H}": ["a:%{H}" ":%{H}" "%{H}" "" "" "" ""] "%{H}" {-1 -1} + spf.go:708: macro "H": ["H" "H" "" "" ""] + spf.go:805: macro expanded "%{H}" to "e9.example.com" + spf.go:237: fail matched all + yml_test.go:234: success: fail, matched 'all' [hello-domain-literal] yml_test.go:152: suite: Processing limits + yml_test.go:157: domain e2.example.com + yml_test.go:159: SPF: [v=spf1 include:e3.example.com] + yml_test.go:159: A: [1.2.3.7] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] + yml_test.go:159: A: [1.2.3.6] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 a -all] + yml_test.go:159: A: [1.2.3.1] + yml_test.go:159: A: [1.2.3.2] + yml_test.go:159: A: [1.2.3.3] + yml_test.go:159: A: [1.2.3.4] + yml_test.go:159: A: [1.2.3.5] + yml_test.go:159: A: [1.2.3.6] + yml_test.go:159: A: [1.2.3.7] + yml_test.go:159: A: [1.2.3.8] + yml_test.go:159: A: [1.2.3.9] + yml_test.go:159: A: [1.2.3.10] + yml_test.go:159: A: [1.2.3.11] + yml_test.go:159: A: [1.2.3.12] yml_test.go:157: domain e11.example.com yml_test.go:159: TXT: [v=spf1 a:err.example.com a:err1.example.com a:err2.example.com ?all] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 include:e2.example.com] - yml_test.go:159: A: [1.2.3.8] + yml_test.go:157: domain e5.example.com + yml_test.go:159: SPF: [v=spf1 ptr] + yml_test.go:159: A: [1.2.3.5] + yml_test.go:157: domain 5.3.2.1.in-addr.arpa + yml_test.go:159: PTR: [e1.example.com.] + yml_test.go:159: PTR: [e2.example.com.] + yml_test.go:159: PTR: [e3.example.com.] + yml_test.go:159: PTR: [e4.example.com.] + yml_test.go:159: PTR: [example.com.] + yml_test.go:159: PTR: [e6.example.com.] + yml_test.go:159: PTR: [e7.example.com.] + yml_test.go:159: PTR: [e8.example.com.] + yml_test.go:159: PTR: [e9.example.com.] + yml_test.go:159: PTR: [e10.example.com.] + yml_test.go:159: PTR: [e5.example.com.] yml_test.go:157: domain e6.example.com yml_test.go:159: SPF: [v=spf1 a mx a mx a mx a mx a ptr ip4:1.2.3.4 -all] yml_test.go:159: A: [1.2.3.8] yml_test.go:159: MX: {10 e6.example.com} - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all] - yml_test.go:159: A: [1.2.3.20] yml_test.go:157: domain e8.example.com yml_test.go:159: SPF: [v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all] yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain e9.example.com yml_test.go:159: SPF: [v=spf1 a include:inc.example.com a ip4:1.2.3.4 -all] yml_test.go:159: A: [1.2.3.21] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 include:e2.example.com] + yml_test.go:159: A: [1.2.3.8] yml_test.go:157: domain e4.example.com yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:159: MX: {0 mail.example.com} @@ -4734,48 +4839,85 @@ yml_test.go:159: MX: {9 mail.example.com} yml_test.go:159: MX: {10 e4.example.com} yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ptr] - yml_test.go:159: A: [1.2.3.5] - yml_test.go:157: domain 5.3.2.1.in-addr.arpa - yml_test.go:159: PTR: [e1.example.com.] - yml_test.go:159: PTR: [e2.example.com.] - yml_test.go:159: PTR: [e3.example.com.] - yml_test.go:159: PTR: [e4.example.com.] - yml_test.go:159: PTR: [example.com.] - yml_test.go:159: PTR: [e6.example.com.] - yml_test.go:159: PTR: [e7.example.com.] - yml_test.go:159: PTR: [e8.example.com.] - yml_test.go:159: PTR: [e9.example.com.] - yml_test.go:159: PTR: [e10.example.com.] - yml_test.go:159: PTR: [e5.example.com.] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1 redirect=e1.example.com] - yml_test.go:159: A: [1.2.3.6] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 a mx a mx a mx a mx a ptr a ip4:1.2.3.4 -all] + yml_test.go:159: A: [1.2.3.20] yml_test.go:157: domain inc.example.com yml_test.go:159: SPF: [v=spf1 a a a a a a a a] yml_test.go:159: A: [1.2.3.10] yml_test.go:157: domain e12.example.com yml_test.go:159: TXT: [v=spf1 a:err.example.com a:err1.example.com ?all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 include:e3.example.com] - yml_test.go:159: A: [1.2.3.7] - yml_test.go:157: domain e10.example.com - yml_test.go:159: SPF: [v=spf1 a -all] - yml_test.go:159: A: [1.2.3.1] - yml_test.go:159: A: [1.2.3.2] - yml_test.go:159: A: [1.2.3.3] - yml_test.go:159: A: [1.2.3.4] - yml_test.go:159: A: [1.2.3.5] - yml_test.go:159: A: [1.2.3.6] - yml_test.go:159: A: [1.2.3.7] - yml_test.go:159: A: [1.2.3.8] - yml_test.go:159: A: [1.2.3.9] - yml_test.go:159: A: [1.2.3.10] - yml_test.go:159: A: [1.2.3.11] - yml_test.go:159: A: [1.2.3.12] + yml_test.go:225: test redirect-loop + yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") + spf.go:160: check e1.example.com 1 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 2 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 3 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 4 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 5 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 6 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 7 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 8 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 9 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 10 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:273: redirect, "redirect=e1.example.com" + spf.go:160: check e1.example.com 11 + spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" + spf.go:218: lookup limit reached + yml_test.go:234: success: permerror, lookup limit reached [redirect-loop] + yml_test.go:225: test ptr-limit + yml_test.go:227: checkhost 1.2.3.5 foo@e5.example.com + spf.go:129: check host with sender "1.2.3.5" "mail.example.com" "foo@e5.example.com" ("e5.example.com") + spf.go:160: check e5.example.com 1 + spf.go:176: dns record "v=spf1 ptr" + spf.go:398: ptr forward resolution "e1.example.com." -> ["1.2.3.6"] + spf.go:398: ptr forward resolution "e2.example.com." -> ["1.2.3.7"] + spf.go:398: ptr forward resolution "e3.example.com." -> ["1.2.3.8"] + spf.go:398: ptr forward resolution "e4.example.com." -> ["1.2.3.5"] + spf.go:398: ptr forward resolution "example.com." -> [] + spf.go:398: ptr forward resolution "e6.example.com." -> ["1.2.3.8"] + spf.go:398: ptr forward resolution "e7.example.com." -> ["1.2.3.20"] + spf.go:398: ptr forward resolution "e8.example.com." -> ["1.2.3.4"] + spf.go:398: ptr forward resolution "e9.example.com." -> ["1.2.3.21"] + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [ptr-limit] + yml_test.go:225: test include-at-limit + yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") + spf.go:160: check e8.example.com 1 + spf.go:176: dns record "v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e8.example.com" {-1 -1} + spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [include-at-limit] + yml_test.go:225: test void-at-limit + yml_test.go:227: checkhost 1.2.3.4 foo@e12.example.com + spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e12.example.com" ("e12.example.com") + spf.go:160: check e12.example.com 1 + spf.go:176: dns record "v=spf1 a:err.example.com a:err1.example.com ?all" + spf.go:526: masks on "a:err.example.com": ["a:err.example.com" ":err.example.com" "err.example.com" "" "" "" ""] "err.example.com" {-1 -1} + spf.go:526: masks on "a:err1.example.com": ["a:err1.example.com" ":err1.example.com" "err1.example.com" "" "" "" ""] "err1.example.com" {-1 -1} + spf.go:237: neutral matched all + yml_test.go:234: success: neutral, matched 'all' [void-at-limit] yml_test.go:225: test include-loop yml_test.go:227: checkhost 1.2.3.4 foo@e2.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e2.example.com" ("e2.example.com") @@ -4821,6 +4963,15 @@ spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "e4.example.com" {-1 -1} spf.go:251: mx ok, permerror too many MX records yml_test.go:234: success: permerror, too many MX records [mx-limit] + yml_test.go:225: test false-a-limit + yml_test.go:227: checkhost 1.2.3.12 foo@e10.example.com + spf.go:129: check host with sender "1.2.3.12" "mail.example.com" "foo@e10.example.com" ("e10.example.com") + spf.go:160: check e10.example.com 1 + spf.go:176: dns record "v=spf1 a -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e10.example.com" {-1 -1} + spf.go:561: mx matched 1.2.3.12, 1.2.3.12, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [false-a-limit] yml_test.go:225: test mech-over-limit yml_test.go:227: checkhost 1.2.3.4 foo@e7.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e7.example.com" ("e7.example.com") @@ -4838,15 +4989,6 @@ spf.go:407: ptr evaluating "e7.example.com" in [] spf.go:218: lookup limit reached yml_test.go:234: success: permerror, lookup limit reached [mech-over-limit] - yml_test.go:225: test include-at-limit - yml_test.go:227: checkhost 1.2.3.4 foo@e8.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e8.example.com" ("e8.example.com") - spf.go:160: check e8.example.com 1 - spf.go:176: dns record "v=spf1 a include:inc.example.com ip4:1.2.3.4 mx -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e8.example.com" {-1 -1} - spf.go:561: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [include-at-limit] yml_test.go:225: test include-over-limit yml_test.go:227: checkhost 1.2.3.4 foo@e9.example.com spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e9.example.com" ("e9.example.com") @@ -4866,78 +5008,9 @@ spf.go:284: fallback to neutral spf.go:218: lookup limit reached yml_test.go:234: success: permerror, lookup limit reached [include-over-limit] - yml_test.go:225: test void-at-limit - yml_test.go:227: checkhost 1.2.3.4 foo@e12.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e12.example.com" ("e12.example.com") - spf.go:160: check e12.example.com 1 - spf.go:176: dns record "v=spf1 a:err.example.com a:err1.example.com ?all" - spf.go:526: masks on "a:err.example.com": ["a:err.example.com" ":err.example.com" "err.example.com" "" "" "" ""] "err.example.com" {-1 -1} - spf.go:526: masks on "a:err1.example.com": ["a:err1.example.com" ":err1.example.com" "err1.example.com" "" "" "" ""] "err1.example.com" {-1 -1} - spf.go:237: neutral matched all - yml_test.go:234: success: neutral, matched 'all' [void-at-limit] - yml_test.go:225: test redirect-loop - yml_test.go:227: checkhost 1.2.3.4 foo@e1.example.com - spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "foo@e1.example.com" ("e1.example.com") - spf.go:160: check e1.example.com 1 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 2 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 3 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 4 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 5 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 6 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 7 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 8 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 9 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 10 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:273: redirect, "redirect=e1.example.com" - spf.go:160: check e1.example.com 11 - spf.go:176: dns record "v=spf1 ip4:1.1.1.1 redirect=e1.example.com" - spf.go:218: lookup limit reached - yml_test.go:234: success: permerror, lookup limit reached [redirect-loop] - yml_test.go:225: test ptr-limit - yml_test.go:227: checkhost 1.2.3.5 foo@e5.example.com - spf.go:129: check host with sender "1.2.3.5" "mail.example.com" "foo@e5.example.com" ("e5.example.com") - spf.go:160: check e5.example.com 1 - spf.go:176: dns record "v=spf1 ptr" - spf.go:398: ptr forward resolution "e1.example.com." -> ["1.2.3.6"] - spf.go:398: ptr forward resolution "e2.example.com." -> ["1.2.3.7"] - spf.go:398: ptr forward resolution "e3.example.com." -> ["1.2.3.8"] - spf.go:398: ptr forward resolution "e4.example.com." -> ["1.2.3.5"] - spf.go:398: ptr forward resolution "example.com." -> [] - spf.go:398: ptr forward resolution "e6.example.com." -> ["1.2.3.8"] - spf.go:398: ptr forward resolution "e7.example.com." -> ["1.2.3.20"] - spf.go:398: ptr forward resolution "e8.example.com." -> ["1.2.3.4"] - spf.go:398: ptr forward resolution "e9.example.com." -> ["1.2.3.21"] - spf.go:284: fallback to neutral - yml_test.go:234: success: neutral, [ptr-limit] - yml_test.go:225: test false-a-limit - yml_test.go:227: checkhost 1.2.3.12 foo@e10.example.com - spf.go:129: check host with sender "1.2.3.12" "mail.example.com" "foo@e10.example.com" ("e10.example.com") - spf.go:160: check e10.example.com 1 - spf.go:176: dns record "v=spf1 a -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "e10.example.com" {-1 -1} - spf.go:561: mx matched 1.2.3.12, 1.2.3.12, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [false-a-limit] yml_test.go:152: suite: Test cases from implementation bugs + yml_test.go:157: 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:159: PTR: [smtp6-v.fe.example.org] yml_test.go:157: domain smtp6-v.fe.example.org yml_test.go:159: AAAA: [2001:db8:ff0:100::2] yml_test.go:157: domain _spf.example.com @@ -4954,8 +5027,6 @@ yml_test.go:157: domain smtp1.example.com yml_test.go:159: A: [192.0.2.26] yml_test.go:159: AAAA: [2001:db8:ff0:200::2] - yml_test.go:157: 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:159: PTR: [smtp6-v.fe.example.org] yml_test.go:225: test bytes-bug yml_test.go:227: checkhost 2001:db8:ff0:100::2 test@example.org spf.go:129: check host with sender "2001:db8:ff0:100::2" "example.org" "test@example.org" ("example.org") @@ -4969,7 +5040,7 @@ spf.go:407: ptr evaluating "fe.example.org" in ["smtp6-v.fe.example.org."] spf.go:261: ptr ok, pass matched 'ptr' yml_test.go:234: success: pass, matched 'ptr' [bytes-bug] ---- PASS: TestRFC7208 (0.10s) +--- PASS: TestRFC7208 (0.06s) === RUN TestPySPF yml_test.go:152: suite: yml_test.go:157: domain lyme.eater.example.co.uk.1.2.3.5.spf.example.net @@ -5001,6 +5072,10 @@ spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exists-fail] yml_test.go:152: suite: + yml_test.go:157: domain exampled.com + yml_test.go:159: SPF: [v=spf1 a:examplea.com:8080] + yml_test.go:157: domain examplee.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4:8080] yml_test.go:157: domain examplef.com yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:159: SPF: [v=spf1 +all] @@ -5010,10 +5085,6 @@ yml_test.go:159: SPF: [v=spf1 a mx include:a.com] yml_test.go:157: domain examplec.com yml_test.go:159: SPF: [v=spf1 -all:foobar] - yml_test.go:157: domain exampled.com - yml_test.go:159: SPF: [v=spf1 a:examplea.com:8080] - yml_test.go:157: domain examplee.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4:8080] yml_test.go:225: test incloop yml_test.go:227: checkhost 66.150.186.79 chuckvsr@examplea.com spf.go:129: check host with sender "66.150.186.79" "mail.example.com" "chuckvsr@examplea.com" ("examplea.com") @@ -5056,6 +5127,12 @@ yml_test.go:159: SPF: [v=spf1mx] yml_test.go:157: domain mail.example1.com yml_test.go:159: A: [1.2.3.4] + yml_test.go:225: test nospace1 + yml_test.go:227: checkhost 1.2.3.4 foo@example2.com + spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example2.com" ("example2.com") + spf.go:160: check example2.com 1 + spf.go:176: dns record "" + yml_test.go:234: success: none, no DNS record found [nospace1] yml_test.go:225: test empty yml_test.go:227: checkhost 1.2.3.4 foo@example1.com spf.go:129: check host with sender "1.2.3.4" "mail1.example1.com" "foo@example1.com" ("example1.com") @@ -5072,13 +5149,14 @@ spf.go:615: mx matched 1.2.3.4, 1.2.3.4, {-1 -1} spf.go:251: mx ok, pass matched 'mx' yml_test.go:234: success: pass, matched 'mx' [nospace2] - yml_test.go:225: test nospace1 - yml_test.go:227: checkhost 1.2.3.4 foo@example2.com - spf.go:129: check host with sender "1.2.3.4" "mail.example1.com" "foo@example2.com" ("example2.com") - spf.go:160: check example2.com 1 - spf.go:176: dns record "" - yml_test.go:234: success: none, no DNS record found [nospace1] yml_test.go:152: suite: + yml_test.go:157: domain mx1.example.com + yml_test.go:159: CNAME: [] + yml_test.go:157: domain e3.example.com + yml_test.go:159: SPF: [v=spf1 a:mx1.example.com mx:mx1.example.com ~all] + yml_test.go:157: domain mail.example.com + yml_test.go:159: MX: {0 } + yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:157: domain example.com yml_test.go:159: SPF: [v=spf1 -all] yml_test.go:157: domain e1.example.com @@ -5090,13 +5168,6 @@ yml_test.go:157: domain c2.example.com yml_test.go:159: SPF: [v=spf1 a a:c1.example.com -all] yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain mx1.example.com - yml_test.go:159: CNAME: [] - yml_test.go:157: domain e3.example.com - yml_test.go:159: SPF: [v=spf1 a:mx1.example.com mx:mx1.example.com ~all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: MX: {0 } - yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:225: test emptyMX yml_test.go:227: checkhost 1.2.3.4 spf.go:129: check host with sender "1.2.3.4" "mail.example.com" "" ("mail.example.com") @@ -5121,9 +5192,9 @@ spf.go:526: masks on "mx:mx1.example.com": ["mx:mx1.example.com" ":mx1.example.com" "mx1.example.com" "" "" "" ""] "mx1.example.com" {-1 -1} spf.go:237: softfail matched all yml_test.go:234: success: softfail, matched 'all' [null-cname] ---- PASS: TestPySPF (0.01s) +--- PASS: TestPySPF (0.00s) PASS -ok blitiri.com.ar/go/spf 0.314s +ok blitiri.com.ar/go/spf 0.159s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -5151,12 +5222,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/868/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/868/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/6094 and its subdirectories -I: Current time: Thu Jul 22 09:11:57 -12 2021 -I: pbuilder-time-stamp: 1626988317 +I: removing directory /srv/workspace/pbuilder/868 and its subdirectories +I: Current time: Thu Aug 25 17:36:07 +14 2022 +I: pbuilder-time-stamp: 1661398567