name: MX ipv4 record match records: mx: test.org 192.168.1.5, 192.168.1.6, 192.168.1.7 mx: mx.test.org 10.0.0.1, 10.0.0.2, 10.0.0.3 spf: test.org v=spf1 mx mx:mx.test.org -all tests: - domain: test.org sender: sender@test.org ip: 192.168.1.5 expect: pass - domain: test.org sender: sender@test.org ip: 192.168.1.4 expect: fail - domain: test.org sender: sender@test.org ip: 10.0.0.1 expect: pass - domain: test.org sender: sender@test.org ip: 10.0.0.4 expect: fail --- name: MX ipv4 record match with mask records: mx: test.org 192.168.1.5, 192.168.1.6, 192.168.1.7 mx: mx.test.org 10.0.0.1, 10.0.0.2, 10.0.0.3 spf: test.org v=spf1 mx/24 mx:mx.test.org/8 -all tests: - domain: test.org sender: sender@test.org ip: 192.168.1.100 expect: pass - domain: test.org sender: sender@test.org ip: 192.168.3.1 expect: fail - domain: test.org sender: sender@test.org ip: 10.1.2.3 expect: pass - domain: test.org sender: sender@test.org ip: 9.0.0.4 expect: fail --- name: MX ipv6 record match records: mx: test.org a:b::c:a, a:b::c:b, a:b::c:c mx: mx.test.org FF01::100, FF01::101, FF01::102 spf: test.org v=spf1 mx mx:mx.test.org -all tests: - domain: test.org sender: sender@test.org ip: a:b::c:a expect: pass - domain: test.org sender: sender@test.org ip: a:b::c:1 expect: fail - domain: test.org sender: sender@test.org ip: FF01::100 expect: pass - domain: test.org sender: sender@test.org ip: FF01::103 expect: fail --- name: MX ipv6 record match with mask records: mx: test.org a:b::c:a, a:b::c:b, a:b::c:c mx: mx.test.org FF01::100, FF01::101, FF01::102 spf: test.org v=spf1 mx//32 mx:mx.test.org/32//16 -all tests: - domain: test.org sender: sender@test.org ip: a:b::f:f expect: pass - domain: test.org sender: sender@test.org ip: a:c::1 expect: fail - domain: test.org sender: sender@test.org ip: FF01::a:b:c:100 expect: pass - domain: test.org sender: sender@test.org ip: FF02::103 expect: fail