Diff of the two buildlogs: -- --- b1/build.log 2021-06-07 01:26:42.561249981 +0000 +++ b2/build.log 2021-06-07 01:33:31.629288489 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jul 9 19:49:09 -12 2022 -I: pbuilder-time-stamp: 1657439349 +I: Current time: Mon Jun 7 15:26:44 +14 2021 +I: pbuilder-time-stamp: 1623029204 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -17,8 +17,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.pNgQnUJw/trustedkeys.kbx': General error -gpgv: Signature made Mon Jun 29 03:19:37 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.e52R6s4h/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 @@ -27,137 +27,171 @@ 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/14160/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/14884/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +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/14884/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/14884/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=18' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-pc-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=10' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='6de1386a3bb2429b97bdbabbf1b55679' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='14160' - PS1='# ' - PS2='> ' + INVOCATION_ID=2bca2c6a730345cea2ce9037a44d5893 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=14884 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.029M3RVQlC/pbuilderrc_pSeq --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.029M3RVQlC/b1 --logfile b1/build.log golang-blitiri-go-spf_1.1.0-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68: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.029M3RVQlC/pbuilderrc_tLDt --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.029M3RVQlC/b2 --logfile b2/build.log --extrapackages usrmerge golang-blitiri-go-spf_1.1.0-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos16-i386 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-16-686-pae #1 SMP Debian 4.19.181-1 (2021-03-19) i686 GNU/Linux I: ls -l /bin - total 5776 - -rwxr-xr-x 1 root root 1367848 Feb 24 2021 bash - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38280 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 38280 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 17768 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 38824 Sep 22 2020 cat - -rwxr-xr-x 1 root root 71624 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 67528 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 75752 Sep 22 2020 chown - -rwxr-xr-x 1 root root 157960 Sep 22 2020 cp - -rwxr-xr-x 1 root root 128724 Dec 10 2020 dash - -rwxr-xr-x 1 root root 124904 Sep 22 2020 date - -rwxr-xr-x 1 root root 92172 Sep 22 2020 dd - -rwxr-xr-x 1 root root 100752 Sep 22 2020 df - -rwxr-xr-x 1 root root 153964 Sep 22 2020 dir - -rwxr-xr-x 1 root root 83644 Feb 7 2021 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 34664 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 34664 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 71928 Feb 7 2021 findmnt - -rwsr-xr-x 1 root root 30112 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 210488 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 100952 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 21916 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 83980 Sep 22 2020 ln - -rwxr-xr-x 1 root root 55572 Feb 7 2020 login - -rwxr-xr-x 1 root root 153964 Sep 22 2020 ls - -rwxr-xr-x 1 root root 153124 Feb 7 2021 lsblk - -rwxr-xr-x 1 root root 96328 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 79912 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 47048 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 58920 Feb 7 2021 more - -rwsr-xr-x 1 root root 50720 Feb 7 2021 mount - -rwxr-xr-x 1 root root 13856 Feb 7 2021 mountpoint - -rwxr-xr-x 1 root root 157996 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38824 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Feb 24 2021 rbash -> bash - -rwxr-xr-x 1 root root 46984 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 75720 Sep 22 2020 rm - -rwxr-xr-x 1 root root 46984 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 22292 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 7 03:46 sh -> dash - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 83880 Sep 22 2020 stty - -rwsr-xr-x 1 root root 79396 Feb 7 2021 su - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sync - -rwxr-xr-x 1 root root 602584 Feb 16 2021 tar - -rwxr-xr-x 1 root root 13860 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 108520 Sep 22 2020 touch - -rwxr-xr-x 1 root root 34664 Sep 22 2020 true - -rwxr-xr-x 1 root root 17768 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 30236 Feb 7 2021 umount - -rwxr-xr-x 1 root root 34664 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 153964 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 63024 Feb 7 2021 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/14160/tmp/hooks/D02_print_environment finished + total 5780 + -rwxr-xr-x 1 root root 1367848 Feb 25 10:57 bash + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38280 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 38280 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 17768 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 38824 Sep 23 2020 cat + -rwxr-xr-x 1 root root 71624 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 67528 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 75752 Sep 23 2020 chown + -rwxr-xr-x 1 root root 157960 Sep 23 2020 cp + -rwxr-xr-x 1 root root 128724 Dec 11 03:23 dash + -rwxr-xr-x 1 root root 124904 Sep 23 2020 date + -rwxr-xr-x 1 root root 92172 Sep 23 2020 dd + -rwxr-xr-x 1 root root 100752 Sep 23 2020 df + -rwxr-xr-x 1 root root 153964 Sep 23 2020 dir + -rwxr-xr-x 1 root root 83644 Feb 8 04:38 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 34664 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 34664 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 71928 Feb 8 04:38 findmnt + -rwsr-xr-x 1 root root 30112 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 210488 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 100952 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 21916 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 83980 Sep 23 2020 ln + -rwxr-xr-x 1 root root 55572 Feb 8 2020 login + -rwxr-xr-x 1 root root 153964 Sep 23 2020 ls + -rwxr-xr-x 1 root root 153124 Feb 8 04:38 lsblk + -rwxr-xr-x 1 root root 96328 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 79912 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 47048 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 58920 Feb 8 04:38 more + -rwsr-xr-x 1 root root 50720 Feb 8 04:38 mount + -rwxr-xr-x 1 root root 13856 Feb 8 04:38 mountpoint + -rwxr-xr-x 1 root root 157996 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38824 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Feb 25 10:57 rbash -> bash + -rwxr-xr-x 1 root root 46984 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 75720 Sep 23 2020 rm + -rwxr-xr-x 1 root root 46984 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 22292 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jun 7 15:29 sh -> bash + lrwxrwxrwx 1 root root 4 Jun 4 23:26 sh.distrib -> dash + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 83880 Sep 23 2020 stty + -rwsr-xr-x 1 root root 79396 Feb 8 04:38 su + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sync + -rwxr-xr-x 1 root root 602584 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 13860 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 108520 Sep 23 2020 touch + -rwxr-xr-x 1 root root 34664 Sep 23 2020 true + -rwxr-xr-x 1 root root 17768 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 30236 Feb 8 04:38 umount + -rwxr-xr-x 1 root root 34664 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 153964 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 63024 Feb 8 04:38 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/14884/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -237,7 +271,7 @@ Get: 36 http://deb.debian.org/debian bullseye/main i386 golang-go i386 2:1.15~1 [24.0 kB] Get: 37 http://deb.debian.org/debian bullseye/main i386 golang-any i386 2:1.15~1 [4980 B] Get: 38 http://deb.debian.org/debian bullseye/main i386 golang-gopkg-yaml.v2-dev all 2.4.0-1 [61.3 kB] -Fetched 78.8 MB in 1s (86.6 MB/s) +Fetched 78.8 MB in 20s (4008 kB/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 ... 19675 files and directories currently installed.) @@ -404,8 +438,44 @@ 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 i386 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main i386 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main i386 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main i386 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (903 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 ... 32179 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 +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 dpkg-buildpackage: info: source package golang-blitiri-go-spf dpkg-buildpackage: info: source version 1.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -423,22 +493,22 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-i686-linux-gnu && go install -trimpath -v -p 18 blitiri.com.ar/go/spf + cd obj-i686-linux-gnu && go install -trimpath -v -p 10 blitiri.com.ar/go/spf internal/unsafeheader internal/race -unicode/utf8 internal/nettrace -internal/cpu -sync/atomic -math/bits +unicode/utf8 +unicode runtime/internal/sys runtime/internal/atomic +sync/atomic +internal/cpu runtime/cgo -unicode +math/bits internal/testlog -internal/bytealg runtime/internal/math math +internal/bytealg runtime internal/reflectlite sync @@ -448,27 +518,27 @@ sort internal/oserror io -vendor/golang.org/x/net/dns/dnsmessage strconv +vendor/golang.org/x/net/dns/dnsmessage syscall -bytes strings +bytes reflect regexp/syntax internal/syscall/unix internal/syscall/execenv time regexp -context internal/poll -os +context internal/fmtsort +os fmt net net/url blitiri.com.ar/go/spf dh_auto_test -O--buildsystem=golang - cd obj-i686-linux-gnu && go test -vet=off -v -p 18 blitiri.com.ar/go/spf + cd obj-i686-linux-gnu && go test -vet=off -v -p 10 blitiri.com.ar/go/spf === RUN TestBasic spf.go:114: check host "1.1.1.1" "domain" spf.go:160: check domain 1 @@ -1110,27 +1180,34 @@ --- PASS: TestSimple (0.00s) === RUN TestRFC4408 yml_test.go:152: suite: Initial processing - 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 nothosed.example.com - yml_test.go:159: SPF: [v=spf1 a:example.net -all] - yml_test.go:159: SPF: [–] 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 a12345678901234567890123456789012345678901234567890123456789012.example.com - yml_test.go:159: SPF: [v=spf1 -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 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 a12345678901234567890123456789012345678901234567890123456789012.example.com + yml_test.go:159: SPF: [v=spf1 -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 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 exp.example.net + yml_test.go:159: TXT: [%{l}] + 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") + spf.go:160: check A12345678901234567890123456789012345678901234567890123456789012.example.com 1 + 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") @@ -1143,12 +1220,6 @@ 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 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") @@ -1156,14 +1227,20 @@ 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" + 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:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [non-ascii-result] + 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") @@ -1178,28 +1255,24 @@ 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 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]") + 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 [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" + yml_test.go:234: success: none, no DNS record found [helo-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:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [non-ascii-non-spf] - 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") - spf.go:160: check A12345678901234567890123456789012345678901234567890123456789012.example.com 1 - spf.go:176: dns record "v=spf1 -all" - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [longlabel] + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [non-ascii-result] yml_test.go:152: suite: Record lookup + 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:157: domain txtonly.example.net yml_test.go:159: TXT: [v=spf1 -all] yml_test.go:157: domain spfonly.example.net @@ -1218,9 +1291,6 @@ 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 - yml_test.go:159: TXT: [v=spf1 -all] - yml_test.go:159: SPF: [v=spf1 -all] 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") @@ -1266,12 +1336,9 @@ spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [both] 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 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] @@ -1279,22 +1346,25 @@ 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 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 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 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 example1.com + yml_test.go:159: SPF: [v=spf1] yml_test.go:157: domain mail.example1.com yml_test.go:159: A: [1.2.3.4] + 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 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: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") @@ -1302,6 +1372,25 @@ 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 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") + 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 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 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") @@ -1311,19 +1400,18 @@ 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: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") @@ -1337,24 +1425,6 @@ 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 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 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 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") @@ -1363,53 +1433,48 @@ spf.go:237: softfail matched all yml_test.go:234: success: softfail, matched 'all' [case-insensitive] yml_test.go:152: suite: Record evaluation - 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 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 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 t8.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 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 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 t8.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: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 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") - spf.go:160: check t7.example.com 1 - 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:157: domain t11.example.com + yml_test.go:159: SPF: [v=spf1 a:a123456789012345678901234567890123456789012345678901234567890123.example.com -all] + 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 t9.example.com + yml_test.go:159: SPF: [v=spf1 a:foo-bar -all] + yml_test.go:157: domain t12.example.com + yml_test.go:159: SPF: [v=spf1 a:%{H}.bar -all] + 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: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") @@ -1427,25 +1492,28 @@ 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: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") + spf.go:160: check t7.example.com 1 + 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 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: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 @@ -1456,13 +1524,8 @@ 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:225: test all-dot - 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 -all." - spf.go:277: permerror, unknown field - yml_test.go:234: success: permerror, unknown field [all-dot] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 ?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") @@ -1491,6 +1554,13 @@ spf.go:176: dns record "v=spf1 all -all" spf.go:237: pass matched all yml_test.go:234: success: pass, matched 'all' [all-double] + yml_test.go:225: test all-dot + 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 -all." + spf.go:277: permerror, unknown field + yml_test.go:234: success: permerror, unknown field [all-dot] 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] @@ -1512,22 +1582,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-match-ip6 - yml_test.go:227: checkhost cafe:babe::1 foo@e3.example.com - spf.go:129: check host with sender "cafe:babe::1" "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 ptr -all" - spf.go:398: ptr forward resolution "e3.example.com." -> ["1.2.3.4" "cafe:babe::1"] - 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: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") @@ -1568,85 +1622,99 @@ spf.go:407: ptr evaluating "e4.example.com" in ["e3.example.com." "mail.example.com."] spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [ptr-nomatch-invalid] + yml_test.go:225: test ptr-match-ip6 + yml_test.go:227: checkhost cafe:babe::1 foo@e3.example.com + spf.go:129: check host with sender "cafe:babe::1" "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 ptr -all" + spf.go:398: ptr forward resolution "e3.example.com." -> ["1.2.3.4" "cafe:babe::1"] + 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 foo.example.xn--zckzah + yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain e6a.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 e12.example.com + yml_test.go:159: SPF: [v=spf1 a:example.-com] + 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 e3.example.com yml_test.go:159: SPF: [v=spf1 a:foo.example.com] - yml_test.go:157: domain e6.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 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 e13.example.com - yml_test.go:159: SPF: [v=spf1 a:] 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 e1.example.com + yml_test.go:159: SPF: [v=spf1 a/0 -all] + yml_test.go:157: domain e5b.example.com + yml_test.go:159: SPF: [v=spf1 a:museum.] + yml_test.go:157: domain foo:bar/baz.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 e10.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.com/24] 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 e12.example.com - yml_test.go:159: SPF: [v=spf1 a:example.-com] - yml_test.go:157: domain e2a.example.com - yml_test.go:159: AAAA: [1234::1] + yml_test.go:157: domain e13.example.com + yml_test.go:159: SPF: [v=spf1 a:] + 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 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 foo:bar/baz.example.com - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e5b.example.com - yml_test.go:159: SPF: [v=spf1 a:museum.] - yml_test.go:157: domain e6a.example.com - yml_test.go:159: SPF: [v=spf1 a/33 -all] yml_test.go:157: domain e7.example.com yml_test.go:159: SPF: [v=spf1 a//129 -all] 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 foo.example.xn--zckzah - 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 e5a.example.com - yml_test.go:159: SPF: [v=spf1 a:museum] - yml_test.go:157: domain e8.example.com + yml_test.go:157: domain e6.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:159: AAAA: [2001:db8:1234::dead:beef] - yml_test.go:159: SPF: [v=spf1 a/24//64 -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 e9.example.com yml_test.go:159: SPF: [v=spf1 a:example.com:8080] - 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 e1.example.com - yml_test.go:159: SPF: [v=spf1 a/0 -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: SPF: [v=spf1 a/0 -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 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: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-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-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") @@ -1656,23 +1724,46 @@ 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-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-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 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:561: mx matched 1234::1, 1234::1, {-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-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-cidr6-0-ip6] + yml_test.go:234: success: pass, matched 'a' [a-dual-cidr-ip4-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") + 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") @@ -1682,14 +1773,15 @@ 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-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-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 + 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-ip2] 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") @@ -1698,30 +1790,32 @@ 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-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-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 - 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 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-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:561: mx matched 1.2.3.4, 1.1.1.1, {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-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-cidr4-0] + yml_test.go:234: success: pass, matched 'a' [a-ip6-dualstack] 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") @@ -1730,22 +1824,6 @@ 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-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-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-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") @@ -1754,6 +1832,23 @@ 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-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 a/0 -all" + spf.go:526: masks on "a/0": ["a/0" "" "" "/0" "0" "" ""] "e2.example.com" {0 -1} + 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-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-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") @@ -1762,81 +1857,56 @@ 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-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") + 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: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-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 - 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-ip2] - 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: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-ip6-dualstack] + yml_test.go:234: success: pass, matched 'a' [a-cidr6-0-ip6] yml_test.go:152: suite: Include mechanism semantics and syntax - 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 ip7.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.7 ?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 e5.example.com - yml_test.go:159: SPF: [v=spf1 include:e6.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 e7.example.com - yml_test.go:159: SPF: [v=spf1 include:erehwon.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 ip5.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -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 e8.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 e1.example.com - yml_test.go:159: SPF: [v=spf1 include:ip5.example.com ~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 ip8.example.com - yml_test.go:159: TIMEOUT + 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 e4.example.com yml_test.go:159: SPF: [v=spf1 include:ip8.example.com -all] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - 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") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 include:ip6.example.com all" - spf.go:160: check ip6.example.com 2 - spf.go:176: dns record "v=spf1 ip4:1.2.3.6 ~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 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 ip7.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.7 ?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 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: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 - spf.go:237: pass matched all - yml_test.go:234: success: pass, matched 'all' [include-softfail] + yml_test.go:234: success: softfail, matched 'all' [include-fail] 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") @@ -1856,23 +1926,25 @@ 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-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-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 + 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") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 include:ip6.example.com all" + spf.go:160: check ip6.example.com 2 + spf.go:176: dns record "v=spf1 ip4:1.2.3.6 ~all" spf.go:237: softfail matched all - yml_test.go:234: success: softfail, matched 'all' [include-fail] + spf.go:237: pass matched all + yml_test.go:234: success: pass, matched 'all' [include-softfail] 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") @@ -1883,6 +1955,13 @@ 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-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") @@ -1900,100 +1979,58 @@ 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 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 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 e10.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo.example.com/24] - yml_test.go:157: domain foo.example.com - yml_test.go:159: MX: {0 foo1.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 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 e6.example.com yml_test.go:159: SPF: [v=spf1 mx//33 -all] 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 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 e9.example.com yml_test.go:159: SPF: [v=spf1 mx:example.com:8080] + yml_test.go:157: domain foo.example.com + yml_test.go:159: MX: {0 foo1.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 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 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 e5.example.com + yml_test.go:159: SPF: [v=spf1 mx:abc.123] 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 e13.example.com - yml_test.go:159: SPF: [v=spf1 mx: -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 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 foo1.example.com yml_test.go:159: A: [1.1.1.1] yml_test.go:159: A: [1.2.3.5] - 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-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") @@ -2019,22 +2056,29 @@ 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-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 mx/33 -all" + 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 + 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-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-cidr4] - 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") - 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-ip2] + 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") @@ -2043,6 +2087,14 @@ 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-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") @@ -2051,21 +2103,39 @@ 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 - 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-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" + 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-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 mx/33 -all" spf.go:251: mx ok, permerror invalid mask - yml_test.go:234: success: permerror, invalid mask [mx-bad-cidr6] + yml_test.go:234: success: permerror, invalid mask [mx-bad-cidr4] + 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") + 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-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") @@ -2080,41 +2150,20 @@ yml_test.go:159: A: [1.2.3.4] 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 e2.example.com + yml_test.go:159: SPF: [v=spf1 exists] + yml_test.go:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 exists:mail.example.com] 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 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 e4.example.com - yml_test.go:159: SPF: [v=spf1 exists:mail.example.com] + 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 e5.example.com yml_test.go:159: SPF: [v=spf1 exists:mail6.example.com -all] - 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") - spf.go:160: check e5.example.com 1 - 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") @@ -2144,27 +2193,48 @@ 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: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") + spf.go:160: check e5.example.com 1 + 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:152: suite: IP4 mechanism syntax - 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 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 e8.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4:8080] 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 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 e9.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3] 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") @@ -2172,20 +2242,6 @@ 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 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 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 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") @@ -2193,6 +2249,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") @@ -2207,6 +2270,20 @@ 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") + 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 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") @@ -2214,18 +2291,7 @@ 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 e6.example.com - yml_test.go:159: SPF: [v=spf1 ip6::CAFE::BABE] - 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 ip6] yml_test.go:157: domain e2.example.com @@ -2236,6 +2302,17 @@ 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 + yml_test.go:159: SPF: [v=spf1 ip6::CAFE::BABE] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + 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 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") @@ -2243,13 +2320,20 @@ 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: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") + 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:284: fallback to neutral - yml_test.go:234: success: neutral, [cidr6-ip4] + spf.go:256: ip ok, pass matched 'ip' + yml_test.go:234: success: pass, matched 'ip' [cidr6-0] + 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") @@ -2257,20 +2341,13 @@ 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 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") + 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:256: ip ok, pass matched 'ip' - yml_test.go:234: success: pass, matched 'ip' [cidr6-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") @@ -2278,13 +2355,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 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") @@ -2293,83 +2363,90 @@ 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 e7.example.com - yml_test.go:159: SPF: [v=spf1 include:e3.example.com -all exp=exp3.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 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 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 e10.example.com - yml_test.go:159: SPF: [v=spf1 redirect=erehwon.example.com] - 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 e19.example.com - yml_test.go:159: SPF: [v=spf1 default=pass] + yml_test.go:157: domain e17.example.com + yml_test.go:159: SPF: [v=spf1 redirect=-all ?all] yml_test.go:157: domain e20.example.com yml_test.go:159: SPF: [v=spf1 default=+] + 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 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 twoexp.example.com + yml_test.go:159: TXT: [one] + yml_test.go:159: TXT: [two] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain badexp.example.com + yml_test.go:159: TXT: [Explanation] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 redirect=erehwon.example.com] + 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 e14.example.com + yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all exp=e11msg.example.com] + yml_test.go:157: domain exp3.example.com + yml_test.go:159: TXT: [Correct!] 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 exp1.example.com - yml_test.go:159: TXT: [No-see-um] - 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 e22.example.com - yml_test.go:159: SPF: [v=spf1 exp=mail.example.com -all] - yml_test.go:157: domain e9.example.com - yml_test.go:159: SPF: [v=spf1 -all foo=%abc] - yml_test.go:157: domain e17.example.com - yml_test.go:159: SPF: [v=spf1 redirect=-all ?all] - yml_test.go:157: domain e16.example.com - yml_test.go:159: SPF: [v=spf1 exp=-all] - yml_test.go:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 exp= -all] - yml_test.go:157: domain e13msg.example.com - yml_test.go:159: TXT: [The %{x}-files.] 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 e21msg.example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 -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 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 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 e12.example.com + yml_test.go:159: SPF: [v=spf1 exp= -all] + yml_test.go:157: domain e16.example.com + yml_test.go:159: SPF: [v=spf1 exp=-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 exp2.example.com - yml_test.go:159: TXT: [See me.] - yml_test.go:157: domain exp4.example.com - yml_test.go:159: TXT: [%{l} in implementation] - yml_test.go:157: domain exp3.example.com - yml_test.go:159: TXT: [Correct!] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 1up=foo] + 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 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 nonascii.example.com yml_test.go:159: SPF: [v=spf1 exp=badexp.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 mail.example.com - yml_test.go:159: A: [1.2.3.4] + yml_test.go:157: domain exp4.example.com + yml_test.go:159: TXT: [%{l} in implementation] + yml_test.go:157: domain e19.example.com + yml_test.go:159: SPF: [v=spf1 default=pass] + yml_test.go:157: domain exp2.example.com + yml_test.go:159: TXT: [See me.] + 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 e3.example.com yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e4.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:157: domain e4.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=exp2.example.com] + 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") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 include:e3.example.com -all exp=exp3.example.com" + spf.go:160: check e3.example.com 2 + 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 3 + spf.go:176: dns record "v=spf1 -all exp=exp2.example.com" + 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 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") @@ -2377,14 +2454,6 @@ 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 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-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") @@ -2392,20 +2461,36 @@ 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 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") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 include:e3.example.com -all exp=exp3.example.com" - spf.go:160: check e3.example.com 2 + 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 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' [redirect-cancels-exp] + 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 3 + 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 - spf.go:237: fail matched all - yml_test.go:234: success: fail, matched 'all' [include-ignores-exp] + yml_test.go:234: success: fail, matched 'all' [redirect-cancels-prior-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") @@ -2413,23 +2498,6 @@ 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") - 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 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") - spf.go:160: check e10.example.com 1 - spf.go:176: dns record "v=spf1 redirect=erehwon.example.com" - spf.go:273: redirect, "redirect=erehwon.example.com" - 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 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") @@ -2438,14 +2506,6 @@ 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-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") @@ -2460,133 +2520,134 @@ 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-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 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") + spf.go:160: check e10.example.com 1 + spf.go:176: dns record "v=spf1 redirect=erehwon.example.com" + spf.go:273: redirect, "redirect=erehwon.example.com" + 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 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 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: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: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" + yml_test.go:234: success: fail, matched 'all' [exp-no-txt] + 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=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:234: success: fail, matched 'all' [explanation-syntax-error] yml_test.go:152: suite: Macro expansion rules - 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 e1.example.com - yml_test.go:159: SPF: [v=spf1 -exists:%(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 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 e4msg.example.com yml_test.go:159: TXT: [%{c} is queried as %{ir}.%{v}.arpa] - 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 o.spf.example.com - yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] - 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 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 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 41.218.168.192.in-addr.arpa + yml_test.go:159: PTR: [mx.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:157: domain e12.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{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 exp.example.com - yml_test.go:159: SPF: [v=spf1 exp=msg.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 a.spf.example.com + yml_test.go:159: SPF: [v=spf1 include:o.spf.example.com. ~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 _spfh.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 e1.example.com + yml_test.go:159: SPF: [v=spf1 -exists:%(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 e8.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=msg8.%{D2}] - yml_test.go:157: domain 1.2.3.4.gladstone.philip.user.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:159: A: [127.0.0.2] - yml_test.go:157: domain msg.example.com - yml_test.go:159: TXT: [This is a test.] + 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 e1t.example.com yml_test.go:159: SPF: [v=spf1 exists:foo%.sbl.example.com ?all] - 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 mx.e7.example.com - yml_test.go:159: A: [192.168.218.42] - 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:157: domain mx.e7.example.com.should.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 e6.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e6msg.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 e6msg.example.com + yml_test.go:159: TXT: [connect from %{p}] + yml_test.go:157: domain 40.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 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 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 example.com.d.spf.example.com yml_test.go:159: SPF: [v=spf1 redirect=a.spf.example.com] - yml_test.go:157: domain msgbas2x.cos.example.com - yml_test.go:159: A: [192.168.218.40] - 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 e4.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e4msg.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 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 40.218.168.192.example.com - yml_test.go:159: TXT: [Connections from %{c} not authorized.] - yml_test.go:157: domain 40.218.168.192.in-addr.arpa + yml_test.go:157: domain 42.218.168.192.in-addr.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:159: PTR: [mx.e7.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 msg.example.com + yml_test.go:159: TXT: [This is a test.] + 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 e4.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e4msg.example.com] + 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 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 exp.example.com + yml_test.go:159: SPF: [v=spf1 exp=msg.example.com. -all] + yml_test.go:157: domain msgbas2x.cos.example.com + yml_test.go:159: A: [192.168.218.40] + 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 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 _spfh.example.com - yml_test.go:159: SPF: [v=spf1 -a:%{h} +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 e6msg.example.com - yml_test.go:159: TXT: [connect from %{p}] - 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.e7.example.com.should.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: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") - spf.go:160: check e12.example.com 1 - spf.go:176: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" - spf.go:708: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] - spf.go:708: macro "d2": ["d2" "d" "2" "" ""] - 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 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:157: domain o.spf.example.com + yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] + 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' [v-macro-ip4] + yml_test.go:234: success: fail, matched 'all' [trailing-dot-exp] 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") @@ -2596,20 +2657,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-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" + 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-novalid] + yml_test.go:234: success: fail, matched 'all' [upper-macro] 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") @@ -2621,14 +2675,21 @@ 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 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 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") + spf.go:160: check e10.example.com 1 + spf.go:176: dns record "v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all" + spf.go:708: macro "d2": ["d2" "d" "2" "" ""] + spf.go:805: macro expanded "_spfh.%{d2}" to "_spfh.example.com" + spf.go:160: check _spfh.example.com 2 + 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 "_spfh.example.com" + 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") @@ -2636,30 +2697,6 @@ 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 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' [upper-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: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 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") @@ -2670,13 +2707,13 @@ 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 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") - spf.go:160: check somewhat.long.exp.example.com 1 - spf.go:176: dns record "v=spf1 -all exp=foobar.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.%{o}.example.com" + 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' [domain-name-truncation] + 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") @@ -2684,6 +2721,13 @@ 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-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 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") @@ -2694,21 +2738,6 @@ 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 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") - spf.go:160: check e10.example.com 1 - spf.go:176: dns record "v=spf1 -include:_spfh.%{d2} ip4:1.2.3.0/24 -all" - spf.go:708: macro "d2": ["d2" "d" "2" "" ""] - spf.go:805: macro expanded "_spfh.%{d2}" to "_spfh.example.com" - spf.go:160: check _spfh.example.com 2 - 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 "_spfh.example.com" - 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 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") @@ -2734,20 +2763,20 @@ 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 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: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") + spf.go:160: check somewhat.long.exp.example.com 1 + 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' [exp-txt-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") + yml_test.go:234: success: fail, matched 'all' [domain-name-truncation] + 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-novalid] + yml_test.go:234: success: fail, matched 'all' [p-macro-ip4-valid] 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") @@ -2755,10 +2784,54 @@ 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-valid] + 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: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") + spf.go:160: check e12.example.com 1 + spf.go:176: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" + spf.go:708: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] + spf.go:708: macro "d2": ["d2" "d" "2" "" ""] + 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 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 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:152: suite: Processing limits 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 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.] @@ -2771,30 +2844,31 @@ 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 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 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 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 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} @@ -2812,82 +2886,16 @@ 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 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: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: A: [1.2.3.9] + 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 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:159: A: [1.2.3.11] - yml_test.go:159: A: [1.2.3.12] - 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") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 2 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 3 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 4 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 5 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 6 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 7 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 8 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 9 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 10 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 11 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:218: lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - 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 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: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") @@ -2970,6 +2978,43 @@ 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 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") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 2 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 3 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 4 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 5 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 6 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 7 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 8 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 9 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 10 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 11 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:218: lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + 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 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") @@ -2978,24 +3023,38 @@ 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] ---- PASS: TestRFC4408 (0.02s) + 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 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] +--- PASS: TestRFC4408 (0.05s) === RUN TestRFC7208 yml_test.go:152: suite: Initial processing - yml_test.go:157: domain exp.example.net - yml_test.go:159: TXT: [%{l}] - 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 example.com - yml_test.go:159: TIMEOUT - yml_test.go:157: domain 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 hosed3.example.com yml_test.go:159: SPF: [v=spf1 a:example.net –all] yml_test.go:157: domain nothosed.example.com @@ -3006,10 +3065,21 @@ 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 a.example.net + yml_test.go:157: domain 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 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 example.com + yml_test.go:159: TIMEOUT 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") @@ -3022,19 +3092,6 @@ 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 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") - spf.go:160: check example.net 1 - 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") @@ -3043,33 +3100,6 @@ 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 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") - spf.go:160: check A12345678901234567890123456789012345678901234567890123456789012.example.com 1 - 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 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 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 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") @@ -3078,6 +3108,24 @@ 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 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 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 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") @@ -3086,6 +3134,28 @@ 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 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") + spf.go:160: check A12345678901234567890123456789012345678901234567890123456789012.example.com 1 + 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 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") + spf.go:160: check example.net 1 + 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-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 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") @@ -3115,6 +3185,13 @@ 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 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: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") @@ -3146,75 +3223,42 @@ 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 example3.com - yml_test.go:159: SPF: [v=spf10] + yml_test.go:157: domain example2.com yml_test.go:159: SPF: [v=spf1 mx] - yml_test.go:159: MX: {0 mail.example1.com} 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 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 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 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 example7.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 example9.com yml_test.go:159: SPF: [v=SpF1 ~all] - 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: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 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 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") @@ -3243,6 +3287,12 @@ 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") @@ -3250,41 +3300,53 @@ 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 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 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 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 mail.example.com - yml_test.go:159: A: [1.2.3.4] 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 t7.example.com yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.4] + 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 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 t8.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 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 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: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 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") @@ -3292,20 +3354,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") - spf.go:160: check t7.example.com 1 - 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 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") @@ -3313,14 +3361,21 @@ 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} + 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") + spf.go:160: check t7.example.com 1 + 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-empty-label] + 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") @@ -3331,11 +3386,22 @@ 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 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-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: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 @@ -3344,6 +3410,10 @@ 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 + 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:225: test all-dot 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") @@ -3380,39 +3450,75 @@ spf.go:237: pass matched all yml_test.go:234: success: pass, matched 'all' [all-double] yml_test.go:152: suite: PTR mechanism syntax + yml_test.go:157: domain e2.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 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 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 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 e6.example.com - yml_test.go:159: SPF: [v=spf1 ptr: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: [e3.example.com] 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 e1.example.com - yml_test.go:159: SPF: [v=spf1 ptr/0 -all] - yml_test.go:157: domain e5.example.com - yml_test.go:159: SPF: [v=spf1 ptr:] yml_test.go:157: domain cname.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.E.B.A.B.E.F.A.C.ip6.arpa - yml_test.go:159: PTR: [e3.example.com] - yml_test.go:157: domain loop.example.com - yml_test.go:159: SPF: [v=spf1 ptr] - yml_test.go:157: domain e2.example.com - yml_test.go:159: SPF: [v=spf1 ptr: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.8.b.D.0.1.0.0.2.ip6.arpa + yml_test.go:159: PTR: [mail.Example.com] yml_test.go:157: domain e3.example.com 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 e6.example.com + yml_test.go:159: SPF: [v=spf1 ptr:example.Com -all] + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 ptr/0 -all] + yml_test.go:225: test ptr-case-change + yml_test.go:227: checkhost 2001:db8::1 bar@e6.example.com + spf.go:129: check host with sender "2001:db8::1" "mail.example.com" "bar@e6.example.com" ("e6.example.com") + spf.go:160: check e6.example.com 1 + spf.go:176: dns record "v=spf1 ptr:example.Com -all" + spf.go:398: ptr forward resolution "mail.Example.com." -> ["1.2.3.4" "2001:db8::1"] + spf.go:407: ptr evaluating "example.Com" in ["mail.example.com."] + spf.go:261: ptr ok, pass matched 'ptr' + yml_test.go:234: success: pass, matched 'ptr' [ptr-case-change] + yml_test.go:225: test ptr-cname-loop + yml_test.go:227: checkhost 192.0.2.4 postmaster@loop.example.com + spf.go:129: check host with sender "192.0.2.4" "loop.example.com" "postmaster@loop.example.com" ("loop.example.com") + spf.go:160: check loop.example.com 1 + spf.go:176: dns record "v=spf1 ptr" + spf.go:398: ptr forward resolution "loop4.example.com." -> [] + 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: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") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 ptr:example.com -all" + spf.go:398: ptr forward resolution "e3.example.com." -> ["1.2.3.4" "cafe:babe::1"] + spf.go:398: ptr forward resolution "e4.example.com." -> [] + spf.go:398: ptr forward resolution "mail.example.com." -> ["1.2.3.4" "2001:db8::1"] + spf.go:407: ptr evaluating "example.com" in ["e3.example.com." "mail.example.com."] + spf.go:261: ptr ok, pass matched 'ptr' + yml_test.go:234: success: pass, matched 'ptr' [ptr-match-target] yml_test.go:225: test ptr-match-implicit 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") @@ -3451,137 +3557,93 @@ 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-case-change - yml_test.go:227: checkhost 2001:db8::1 bar@e6.example.com - spf.go:129: check host with sender "2001:db8::1" "mail.example.com" "bar@e6.example.com" ("e6.example.com") - spf.go:160: check e6.example.com 1 - spf.go:176: dns record "v=spf1 ptr:example.Com -all" - spf.go:398: ptr forward resolution "mail.Example.com." -> ["1.2.3.4" "2001:db8::1"] - spf.go:407: ptr evaluating "example.Com" in ["mail.example.com."] - spf.go:261: ptr ok, pass matched 'ptr' - yml_test.go:234: success: pass, matched 'ptr' [ptr-case-change] - yml_test.go:225: test ptr-cname-loop - yml_test.go:227: checkhost 192.0.2.4 postmaster@loop.example.com - spf.go:129: check host with sender "192.0.2.4" "loop.example.com" "postmaster@loop.example.com" ("loop.example.com") - spf.go:160: check loop.example.com 1 - spf.go:176: dns record "v=spf1 ptr" - spf.go:398: ptr forward resolution "loop4.example.com." -> [] - 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: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") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 ptr:example.com -all" - spf.go:398: ptr forward resolution "e3.example.com." -> ["1.2.3.4" "cafe:babe::1"] - spf.go:398: ptr forward resolution "e4.example.com." -> [] - spf.go:398: ptr forward resolution "mail.example.com." -> ["1.2.3.4" "2001:db8::1"] - spf.go:407: ptr evaluating "example.com" in ["e3.example.com." "mail.example.com."] - spf.go:261: ptr ok, pass matched 'ptr' - yml_test.go:234: success: pass, matched 'ptr' [ptr-match-target] yml_test.go:152: suite: A mechanism syntax - 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 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 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 e9.example.com - yml_test.go:159: SPF: [v=spf1 a:example.com:8080] + yml_test.go:157: domain e5a.example.com + yml_test.go:159: SPF: [v=spf1 a:museum] 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 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 e3.example.com + yml_test.go:159: SPF: [v=spf1 a:foo.example.com] + 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 e11.example.com yml_test.go:159: SPF: [v=spf1 a:foo:bar/baz.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 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 foo:bar/baz.example.com + yml_test.go:157: domain e5b.example.com + yml_test.go:159: SPF: [v=spf1 a:museum.] + yml_test.go:157: domain e12.example.com + yml_test.go:159: SPF: [v=spf1 a:example.-com] + yml_test.go:157: domain foo.example.xn--zckzah yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain mail.example.com yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain e6a.example.com yml_test.go:159: SPF: [v=spf1 a/33 -all] + yml_test.go:157: domain e7.example.com + yml_test.go:159: SPF: [v=spf1 a//129 -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 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 e4.example.com - yml_test.go:159: SPF: [v=spf1 a:111.222.33.44] - yml_test.go:157: domain foo.example.xn--zckzah - yml_test.go:159: A: [1.2.3.4] - yml_test.go:157: domain e13.example.com - yml_test.go:159: SPF: [v=spf1 a:] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 a:example.com:8080] yml_test.go:157: domain e1.example.com 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 e5a.example.com - yml_test.go:159: SPF: [v=spf1 a:museum] - yml_test.go:157: domain e5b.example.com - yml_test.go:159: SPF: [v=spf1 a:museum.] - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 a//33 -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 -all] - 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 e3.example.com - yml_test.go:159: SPF: [v=spf1 a:foo.example.com] + 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 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 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 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 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 e5.example.com yml_test.go:159: SPF: [v=spf1 a:abc.123] - 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-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 - 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} + 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 foo:bar/baz.example.com + yml_test.go:159: A: [1.2.3.4] + 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-multi-ip2] - 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 + yml_test.go:234: success: pass, matched 'a' [a-dash-in-toplabel] + 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" "" ""] "e1.example.com" {0 -1} + 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-nxdomain] + yml_test.go:234: success: fail, matched 'all' [a-cidr4-0-ip6] 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") @@ -3590,57 +3652,23 @@ 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-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-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} + 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-dual-cidr-ip6-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} + yml_test.go:234: success: pass, matched 'a' [a-cidr6-0-ip6] + 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-dual-cidr-ip6-default] - 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-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-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:234: success: fail, matched 'all' [a-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") @@ -3650,31 +3678,14 @@ 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-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: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: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] - 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:234: success: fail, matched 'all' [a-cidr6-0-nxdomain] 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") @@ -3682,6 +3693,15 @@ 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-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-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") @@ -3690,62 +3710,131 @@ 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-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} + 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-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") + yml_test.go:234: success: fail, matched 'all' [a-dual-cidr-ip6-default] + 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:561: mx matched 1234::1, 1234::1, {-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-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-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 + 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-cidr6-0-ip6] - 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} + yml_test.go:234: success: pass, matched 'a' [a-multi-ip2] + 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-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-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-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-0-nxdomain] + yml_test.go:234: success: fail, matched 'all' [a-cidr6] 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 e3.example.com + yml_test.go:159: SPF: [v=spf1 include:ip7.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 e8.example.com + yml_test.go:159: SPF: [v=spf1 include: -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 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 e9.example.com yml_test.go:159: SPF: [v=spf1 include:ip5.example.com/24 -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 ip5.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -all] + yml_test.go:157: domain mail.example.com + yml_test.go:159: A: [1.2.3.4] 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 erehwon.example.com - yml_test.go:159: TXT: [v=spfl am not an SPF record] 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 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:ip6.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 ip8.example.com - yml_test.go:159: TIMEOUT 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 ip5.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.2.3.5 -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 e2.example.com + yml_test.go:159: SPF: [v=spf1 include:ip6.example.com all] + 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-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-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") @@ -3765,6 +3854,13 @@ 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-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") @@ -3782,15 +3878,6 @@ 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: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") @@ -3811,107 +3898,74 @@ 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-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:152: suite: MX mechanism syntax - yml_test.go:157: domain e6.example.com - yml_test.go:159: SPF: [v=spf1 mx//33 -all] - 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 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: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: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 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 e6a.example.com yml_test.go:159: SPF: [v=spf1 mx/33 -all] - 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 e3.example.com - yml_test.go:159: SPF: [v=spf1 mx:foo.example.com] - yml_test.go:157: domain e7.example.com - yml_test.go:159: SPF: [v=spf1 mx//129 -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 e12.example.com - yml_test.go:159: SPF: [v=spf1 mx: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 e10.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo.example.com/24] + 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 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 e11.example.com + yml_test.go:159: SPF: [v=spf1 mx:foo:bar/baz.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 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 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 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 foo.example.com - yml_test.go:159: MX: {0 foo1.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 e13.example.com - yml_test.go:159: SPF: [v=spf1 mx: -all] - 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} + 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 foo1.example.com + yml_test.go:159: A: [1.1.1.1] + yml_test.go:159: A: [1.2.3.5] + 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-cidr6-0-ip4] - 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-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-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} + yml_test.go:234: success: fail, matched 'all' [mx-nxdomain] + 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-0-nxdomain] + yml_test.go:234: success: fail, matched 'all' [mx-cidr6] 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") @@ -3919,6 +3973,31 @@ 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-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-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-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") @@ -3935,31 +4014,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-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 - 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-ip2] - 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 - 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-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") @@ -3969,64 +4023,66 @@ 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: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") + 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-ip2] + 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-ip4mapped] - 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 + 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"] "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-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: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-nxdomain] + 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-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:152: suite: EXISTS mechanism syntax + yml_test.go:157: domain mail6.example.com + yml_test.go:159: AAAA: [CAFE:BABE::4] + 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 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 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 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 mail6.example.com - yml_test.go:159: AAAA: [CAFE:BABE::4] - yml_test.go:157: domain e1.example.com - yml_test.go:159: SPF: [v=spf1 exists:] - 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") @@ -4063,27 +4119,48 @@ 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 e9.example.com - yml_test.go:159: SPF: [v=spf1 ip4:1.2.3] - 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 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 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: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 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 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 e1.example.com + yml_test.go:159: SPF: [v=spf1 ip4:1.1.1.1/0 -all] + 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") @@ -4091,6 +4168,13 @@ 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") + spf.go:160: check e2.example.com 1 + 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") @@ -4126,21 +4210,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-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") - spf.go:160: check e2.example.com 1 - 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:152: suite: IP6 mechanism syntax + 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 + yml_test.go:159: SPF: [v=spf1 ip6::CAFE::BABE] + 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 ip6] yml_test.go:157: domain e2.example.com @@ -4149,19 +4225,13 @@ 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 - yml_test.go:159: SPF: [v=spf1 ip6::CAFE::BABE] - yml_test.go:157: domain mail.example.com - yml_test.go:159: A: [1.2.3.4] - 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") + 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:284: fallback to neutral - yml_test.go:234: success: neutral, [cidr6-ip4] + 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") @@ -4169,13 +4239,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") @@ -4183,13 +4246,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") @@ -4204,30 +4260,67 @@ 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: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") + 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:256: ip ok, pass matched 'ip' - yml_test.go:234: success: pass, matched 'ip' [cidr6-0] + spf.go:284: fallback to neutral + yml_test.go:234: success: neutral, [cidr6-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") + 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 e11.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=e11msg.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 mail.example.com - yml_test.go:159: A: [1.2.3.4] + 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 e18.example.com + yml_test.go:159: SPF: [v=spf1 ?all redirect=] + yml_test.go:157: domain badexp.example.com + yml_test.go:159: TXT: [Explanation] + 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 e2.example.com + yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:157: domain exp2.example.com + yml_test.go:159: TXT: [See me.] + 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 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 e7.example.com - yml_test.go:159: SPF: [v=spf1 include:e3.example.com -all exp=exp3.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 exp3.example.com yml_test.go:159: TXT: [Correct!] + 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 e19.example.com + yml_test.go:159: SPF: [v=spf1 default=pass] + 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 e3.example.com + yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] + 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 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 exp4.example.com yml_test.go:159: TXT: [%{l} in implementation] yml_test.go:157: domain nonascii.example.com @@ -4236,92 +4329,37 @@ yml_test.go:159: SPF: [v=spf1 exp= -all] yml_test.go:157: domain e20.example.com yml_test.go:159: SPF: [v=spf1 default=+] - 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 e2.example.com - yml_test.go:159: SPF: [v=spf1 -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 exp2.example.com - yml_test.go:159: TXT: [See me.] - 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 e17.example.com - yml_test.go:159: SPF: [v=spf1 redirect=-all ?all] - 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: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 twoexp.example.com yml_test.go:159: TXT: [one] yml_test.go:159: TXT: [two] - 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 e3.example.com - yml_test.go:159: SPF: [v=spf1 exp=exp1.example.com redirect=e4.example.com] - 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 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 e6.example.com - yml_test.go:159: SPF: [v=spf1 =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 e15.example.com - yml_test.go:159: SPF: [v=spf1 redirect=e12.example.com -all redirect=e12.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 e13.example.com - yml_test.go:159: SPF: [v=spf1 exp=e13msg.example.com -all] + yml_test.go:157: domain e10.example.com + yml_test.go:159: SPF: [v=spf1 redirect=erehwon.example.com] + 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 e13msg.example.com yml_test.go:159: TXT: [The %{x}-files.] - 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 badexp.example.com - yml_test.go:159: TXT: [Explanation] + 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: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 e5.example.com + yml_test.go:159: SPF: [v=spf1 1up=foo] + yml_test.go:157: domain e6.example.com + yml_test.go:159: SPF: [v=spf1 =all] + 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 e23.example.com - yml_test.go:159: SPF: [v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all] - 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 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") - spf.go:160: check e23.example.com 1 - spf.go:176: dns record "v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all" - spf.go:526: masks on "a:erehwon.example.com": ["a:erehwon.example.com" ":erehwon.example.com" "erehwon.example.com" "" "" "" ""] "erehwon.example.com" {-1 -1} - spf.go:526: masks on "a:foobar.com": ["a:foobar.com" ":foobar.com" "foobar.com" "" "" "" ""] "foobar.com" {-1 -1} - 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 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") - spf.go:160: check e7.example.com 1 - spf.go:176: dns record "v=spf1 include:e3.example.com -all exp=exp3.example.com" - spf.go:160: check e3.example.com 2 - 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 3 - spf.go:176: dns record "v=spf1 -all exp=exp2.example.com" - 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 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") @@ -4336,6 +4374,38 @@ 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 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") + spf.go:160: check e24.example.com 1 + spf.go:176: dns record "v=spf1 redirect=testimplicit.example.com" + spf.go:273: redirect, "redirect=testimplicit.example.com" + spf.go:160: check testimplicit.example.com 2 + spf.go:176: dns record "v=spf1 a -all" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "testimplicit.example.com" {-1 -1} + spf.go:561: mx matched 192.0.2.2, 192.0.2.2, {-1 -1} + spf.go:246: a ok, pass matched 'a' + yml_test.go:234: success: pass, matched 'a' [redirect-implicit] + 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") + spf.go:160: check e10.example.com 1 + spf.go:176: dns record "v=spf1 redirect=erehwon.example.com" + spf.go:273: redirect, "redirect=erehwon.example.com" + 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" + 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: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") @@ -4351,39 +4421,34 @@ 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 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") + spf.go:160: check e7.example.com 1 + spf.go:176: dns record "v=spf1 include:e3.example.com -all exp=exp3.example.com" + spf.go:160: check e3.example.com 2 + 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 3 + spf.go:176: dns record "v=spf1 -all exp=exp2.example.com" + 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 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 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") - spf.go:160: check e10.example.com 1 - spf.go:176: dns record "v=spf1 redirect=erehwon.example.com" - spf.go:273: redirect, "redirect=erehwon.example.com" - 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" - 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: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 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") @@ -4392,6 +4457,16 @@ 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 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") + spf.go:160: check e23.example.com 1 + spf.go:176: dns record "v=spf1 a:erehwon.example.com a:foobar.com exp=nxdomain.com -all" + spf.go:526: masks on "a:erehwon.example.com": ["a:erehwon.example.com" ":erehwon.example.com" "erehwon.example.com" "" "" "" ""] "erehwon.example.com" {-1 -1} + spf.go:526: masks on "a:foobar.com": ["a:foobar.com" ":foobar.com" "foobar.com" "" "" "" ""] "foobar.com" {-1 -1} + 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 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") @@ -4400,18 +4475,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 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") - spf.go:160: check e24.example.com 1 - spf.go:176: dns record "v=spf1 redirect=testimplicit.example.com" - spf.go:273: redirect, "redirect=testimplicit.example.com" - spf.go:160: check testimplicit.example.com 2 - spf.go:176: dns record "v=spf1 a -all" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "testimplicit.example.com" {-1 -1} - spf.go:561: mx matched 192.0.2.2, 192.0.2.2, {-1 -1} - spf.go:246: a ok, pass matched 'a' - yml_test.go:234: success: pass, matched 'a' [redirect-implicit] 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") @@ -4423,6 +4486,13 @@ 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 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 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") @@ -4432,158 +4502,93 @@ spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exp-no-txt] yml_test.go:152: suite: Macro expansion rules - 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 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 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 example.com.d.spf.example.com - yml_test.go:159: SPF: [v=spf1 redirect=a.spf.example.com] - yml_test.go:157: domain msgbas2x.cos.example.com - yml_test.go:159: A: [192.168.218.40] - 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 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 mx.example.com.ok.example.com - yml_test.go:159: A: [127.0.0.2] - yml_test.go:157: domain e8.example.com - yml_test.go:159: SPF: [v=spf1 -all exp=msg8.%{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 _spfh.example.com - yml_test.go:159: SPF: [v=spf1 -a:%{h} +all] - yml_test.go:157: domain bar.foo.user.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 1.2.3.4.gladstone.philip.user.example.com yml_test.go:159: A: [127.0.0.2] + 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 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 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 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 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 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 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 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 e11.example.com - yml_test.go:159: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] + yml_test.go:157: domain bar.foo.user.example.com + yml_test.go:159: A: [127.0.0.2] + 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 e1t.example.com + yml_test.go:159: SPF: [v=spf1 exists:foo%.sbl.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 e8.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=msg8.%{D2}] + 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 e6.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=e6msg.example.com] + 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 e2.example.com + yml_test.go:159: SPF: [v=spf1 -all exp=%{r}.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 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 mx.e7.example.com.should.example.com - yml_test.go:159: A: [127.0.0.2] + 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 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.e7.example.com + yml_test.go:159: A: [192.168.218.42] + yml_test.go:157: domain msgbas2x.cos.example.com + yml_test.go:159: A: [192.168.218.40] + 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 e11.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{i}.%{l2r-}.user.%{d2}] 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 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 o.spf.example.com - yml_test.go:159: SPF: [v=spf1 ip4:192.168.218.40] - 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 msg.example.com + yml_test.go:159: TXT: [This is a test.] + 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 mx.e7.example.com - yml_test.go:159: A: [192.168.218.42] - 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 e5.example.com - yml_test.go:159: SPF: [v=spf1 a:%{a}.example.com -all] - yml_test.go:157: domain e6msg.example.com - yml_test.go:159: TXT: [connect from %{p}] - 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 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 macro%percent space%20url-space.example.com - yml_test.go:159: A: [1.2.3.4] - 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 e4msg.example.com yml_test.go:159: TXT: [%{c} is queried as %{ir}.%{v}.arpa] - 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 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' [p-macro-ip6-valid] - yml_test.go:225: test upper-macro - yml_test.go:227: checkhost 192.168.218.42 ~jack&jill=up-a_b3.c@e8.example.com - spf.go:129: check host with sender "192.168.218.42" "msgbas2x.cos.example.com" "~jack&jill=up-a_b3.c@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' [upper-macro] - 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 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 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: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 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 example.com.d.spf.example.com + yml_test.go:159: SPF: [v=spf1 redirect=a.spf.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 e12.example.com + yml_test.go:159: SPF: [v=spf1 exists:%{l2r+-}.user.%{d2}] + yml_test.go:157: domain e9.example.com + yml_test.go:159: SPF: [v=spf1 a:%{H} -all] 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") @@ -4599,20 +4604,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-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 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 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") @@ -4624,6 +4615,66 @@ 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-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 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: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 upper-macro + yml_test.go:227: checkhost 192.168.218.42 ~jack&jill=up-a_b3.c@e8.example.com + spf.go:129: check host with sender "192.168.218.42" "msgbas2x.cos.example.com" "~jack&jill=up-a_b3.c@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' [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") + 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' [invalid-hello-macro] 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") @@ -4631,13 +4682,27 @@ 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-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") + 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-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-ip4-novalid] + yml_test.go:234: success: fail, matched 'all' [p-macro-ip6-novalid] + 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' [p-macro-ip6-valid] 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") @@ -4656,6 +4721,45 @@ 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 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-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") + spf.go:160: check e12.example.com 1 + spf.go:176: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" + spf.go:708: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] + spf.go:708: macro "d2": ["d2" "d" "2" "" ""] + 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 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 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") @@ -4670,80 +4774,16 @@ 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 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 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") - 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' [invalid-hello-macro] - 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") - spf.go:160: check e12.example.com 1 - spf.go:176: dns record "v=spf1 exists:%{l2r+-}.user.%{d2}" - spf.go:708: macro "l2r+-": ["l2r+-" "l" "2" "r" "+-"] - spf.go:708: macro "d2": ["d2" "d" "2" "" ""] - 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:152: suite: Processing limits - 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 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 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 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 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 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 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 e10.example.com yml_test.go:159: SPF: [v=spf1 a -all] yml_test.go:159: A: [1.2.3.1] @@ -4758,9 +4798,8 @@ 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 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 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 e4.example.com yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:159: MX: {0 mail.example.com} @@ -4775,10 +4814,106 @@ 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 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 mail.example.com + 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 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 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: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 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") + spf.go:160: check e2.example.com 1 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 2 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 3 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 4 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 5 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 6 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 7 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 8 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 9 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:160: check e3.example.com 10 + spf.go:176: dns record "v=spf1 include:e2.example.com" + spf.go:160: check e2.example.com 11 + spf.go:176: dns record "v=spf1 include:e3.example.com" + spf.go:218: lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + spf.go:241: include ok, permerror lookup limit reached + 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 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") @@ -4813,15 +4948,15 @@ 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 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-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 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") @@ -4859,43 +4994,6 @@ 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 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") - spf.go:160: check e2.example.com 1 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 2 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 3 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 4 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 5 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 6 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 7 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 8 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 9 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:160: check e3.example.com 10 - spf.go:176: dns record "v=spf1 include:e2.example.com" - spf.go:160: check e2.example.com 11 - spf.go:176: dns record "v=spf1 include:e3.example.com" - spf.go:218: lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - spf.go:241: include ok, permerror lookup limit reached - 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 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") @@ -4912,35 +5010,9 @@ 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 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:152: suite: Test cases from implementation bugs + yml_test.go:157: domain _spf.example.com + yml_test.go:159: SPF: [v=spf1 ptr:fe.example.org ptr:sgp.example.com exp=_expspf.example.org -all] yml_test.go:157: domain _expspf.example.org yml_test.go:159: TXT: [Sender domain not allowed from this host. Please see http://www.openspf.org/Why?s=mfrom&id=%{S}&ip=%{C}&r=%{R}] yml_test.go:157: domain example.org @@ -4957,8 +5029,6 @@ 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 - yml_test.go:159: SPF: [v=spf1 ptr:fe.example.org ptr:sgp.example.com exp=_expspf.example.org -all] 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") @@ -4972,25 +5042,13 @@ 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.03s) +--- PASS: TestRFC7208 (0.06s) === RUN TestPySPF yml_test.go:152: suite: - yml_test.go:157: domain example.co.uk - yml_test.go:159: SPF: [v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all] yml_test.go:157: domain lyme.eater.example.co.uk.1.2.3.5.spf.example.net yml_test.go:159: A: [127.0.0.1] - yml_test.go:225: test exists-pass - yml_test.go:227: checkhost 1.2.3.5 lyme.eater@example.co.uk - spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@example.co.uk" ("example.co.uk") - spf.go:160: check example.co.uk 1 - spf.go:176: dns record "v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all" - spf.go:526: masks on "mx/26": ["mx/26" "" "" "/26" "26" "" ""] "example.co.uk" {26 -1} - spf.go:708: macro "l": ["l" "l" "" "" ""] - spf.go:708: macro "d": ["d" "d" "" "" ""] - spf.go:708: macro "i": ["i" "i" "" "" ""] - spf.go:805: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.5.spf.example.net" - spf.go:266: exists ok, pass matched 'exists' - yml_test.go:234: success: pass, matched 'exists' [exists-pass] + yml_test.go:157: domain example.co.uk + yml_test.go:159: SPF: [v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all] yml_test.go:225: test exists-fail yml_test.go:227: checkhost 1.2.3.4 lyme.eater@example.co.uk spf.go:129: check host with sender "1.2.3.4" "mail.example.net" "lyme.eater@example.co.uk" ("example.co.uk") @@ -5003,7 +5061,24 @@ spf.go:805: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.4.spf.example.net" spf.go:237: fail matched all yml_test.go:234: success: fail, matched 'all' [exists-fail] + yml_test.go:225: test exists-pass + yml_test.go:227: checkhost 1.2.3.5 lyme.eater@example.co.uk + spf.go:129: check host with sender "1.2.3.5" "mail.example.net" "lyme.eater@example.co.uk" ("example.co.uk") + spf.go:160: check example.co.uk 1 + spf.go:176: dns record "v=spf1 mx/26 exists:%{l}.%{d}.%{i}.spf.example.net -all" + spf.go:526: masks on "mx/26": ["mx/26" "" "" "/26" "26" "" ""] "example.co.uk" {26 -1} + spf.go:708: macro "l": ["l" "l" "" "" ""] + spf.go:708: macro "d": ["d" "d" "" "" ""] + spf.go:708: macro "i": ["i" "i" "" "" ""] + spf.go:805: macro expanded "%{l}.%{d}.%{i}.spf.example.net" to "lyme.eater.example.co.uk.1.2.3.5.spf.example.net" + spf.go:266: exists ok, pass matched 'exists' + yml_test.go:234: success: pass, matched 'exists' [exists-pass] yml_test.go:152: suite: + yml_test.go:157: domain examplef.com + yml_test.go:159: SPF: [v=spf1 -all] + yml_test.go:159: SPF: [v=spf1 +all] + yml_test.go:157: domain examplea.com + yml_test.go:159: SPF: [v=spf1 a mx include:b.com] yml_test.go:157: domain exampleb.com yml_test.go:159: SPF: [v=spf1 a mx include:a.com] yml_test.go:157: domain examplec.com @@ -5012,22 +5087,6 @@ 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] - yml_test.go:157: domain examplea.com - yml_test.go:159: SPF: [v=spf1 a mx include:b.com] - 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") - spf.go:160: check examplea.com 1 - spf.go:176: dns record "v=spf1 a mx include:b.com" - spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "examplea.com" {-1 -1} - spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "examplea.com" {-1 -1} - spf.go:160: check b.com 4 - 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 [incloop] yml_test.go:225: test badall yml_test.go:227: checkhost 66.150.186.79 chuckvsr@examplec.com spf.go:129: check host with sender "66.150.186.79" "mail.example.com" "chuckvsr@examplec.com" ("examplec.com") @@ -5048,9 +5107,18 @@ 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 [badip] + 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") + spf.go:160: check examplea.com 1 + spf.go:176: dns record "v=spf1 a mx include:b.com" + spf.go:526: masks on "a": ["a" "" "" "" "" "" ""] "examplea.com" {-1 -1} + spf.go:526: masks on "mx": ["mx" "" "" "" "" "" ""] "examplea.com" {-1 -1} + spf.go:160: check b.com 4 + 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 [incloop] yml_test.go:152: suite: - yml_test.go:157: domain mail.example1.com - yml_test.go:159: A: [1.2.3.4] yml_test.go:157: domain example3.com yml_test.go:159: SPF: [v=spf1 mx] yml_test.go:159: SPF: [v=spf1 mx] @@ -5059,13 +5127,8 @@ yml_test.go:159: SPF: [v=spf1] yml_test.go:157: domain example2.com yml_test.go:159: SPF: [v=spf1mx] - 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 mail.example1.com + yml_test.go:159: A: [1.2.3.4] 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") @@ -5081,7 +5144,18 @@ 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: + yml_test.go:157: domain e1.example.com + yml_test.go:159: SPF: [v=spf1 default=-] + yml_test.go:157: domain e2.example.com + yml_test.go:159: CNAME: [c1.example.com.] yml_test.go:157: domain c1.example.com yml_test.go:159: CNAME: [c2.example.com.] yml_test.go:157: domain c2.example.com @@ -5096,10 +5170,6 @@ 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 - yml_test.go:159: SPF: [v=spf1 default=-] - yml_test.go:157: domain e2.example.com - yml_test.go:159: CNAME: [c1.example.com.] 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") @@ -5126,7 +5196,7 @@ yml_test.go:234: success: softfail, matched 'all' [null-cname] --- PASS: TestPySPF (0.00s) PASS -ok blitiri.com.ar/go/spf 0.066s +ok blitiri.com.ar/go/spf 0.308s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -5153,12 +5223,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/14884/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/14884/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/14160 and its subdirectories -I: Current time: Sat Jul 9 19:49:41 -12 2022 -I: pbuilder-time-stamp: 1657439381 +I: removing directory /srv/workspace/pbuilder/14884 and its subdirectories +I: Current time: Mon Jun 7 15:33:30 +14 2021 +I: pbuilder-time-stamp: 1623029610