# Testing Net::validMX 2.5.2, Perl 5.036000, /usr/bin/perl t/00-load.t ... 1..1 ok 1 - use Net::validMX; ok t/01-fail.t ... 1..12 postmaster@[127.0.0.1] Valid MX? False - Use of IP Address [127.0.0.1] instead of a hostname is not allowed ok 1 - Test for Explicit IP instead of domain name test@test4.peregrinehw.com Valid MX? False - MX Record: . does not resolve ok 2 - Test for a host that is configured with an MX of . & priority 10 which will be considered a pass due eNom.com (name-services.com) false positives - Should Fail if it's the only MX nofrom@www Valid MX? False - No MX or A Records Exist for www ok 3 - Test for non-FQDN test@test3.peregrinehw.com Valid MX? False - MX Record: . does not resolve ok 4 - Test for a host that is configured with an MX of . & priority 0 which is an 'I don't do email' Notification - Should Fail test@test5.peregrinehw.com Valid MX? False - Invalid use of private IP (e.g. 192.168.1.1) range for MX - All MX Records Failed ok 5 - Test for privatized IP range use only test@test8.peregrinehw.com Valid MX? False - MX Record: dev.null does not resolve ok 6 - Test for non-resolvable MX records test@test9.peregrinehw.com Valid MX? False - Invalid use of CNAME for MX record ok 7 - Resolves to an explicit cname that is chained to a cname - fails but not certain I should allow this or not test@test10.peregrinehw.com Valid MX? False - Invalid use of CNAME for Implicit MX record ok 8 - Resolves to an implicit cname that is chained to a cname - fails but not certain I should allow this or not test@test17.peregrinehw.com Valid MX? False - Invalid use of a link-local IP range (fe80:0:0:0:9f18:4ccd:154e:c35f) as an MX record ok 9 - Resolves to a link-local ipv6 address - fails because it resolves to a private ip test@test2.peregrinehw.com Valid MX? False - Invalid use of private IP (e.g. 192.168.0.1) range for MX ok 10 - Test for use of crazy things like 192.168.0.1. as the host name in DNS - Should FAIL EVEN if $allow_ip_address_as_mx = 1 because they are privatized not because of the name Valid MX? False ok 11 - Blank email addresses should fail foo\"@bar.org Valid MX? False ok 12 - Email addresses with double quotes should fail ok t/02-pass.t ... 1..22 kevin.mcgrail@peregrinehw.com Valid MX? True ok 1 - Test for correct DNS - Should Pass test@test12.peregrinehw.com Valid MX? True ok 2 - Test non-rfc compliant DNS using cname for MX - Should Pass test@test13.peregrinehw.com Valid MX? True ok 3 - Test non-rfc compliant DNS using cname for MX - Should Pass test@test14.peregrinehw.com Valid MX? True ok 4 - Test for implicit MX by A record - Should Pass test@test.peregrinehw.com Valid MX? True ok 5 - Test for the use of crazy things like 12.34.56.78. as the host name in DNS - Should Pass if $allow_ip_address_as_mx = 1 test@test6.peregrinehw.com Valid MX? True ok 6 - Test for a host that is configured with an MX of . but eventually has a good MX recorded (due to eNom.com (name-services.com) false positives - Should Pass test@test7.peregrinehw.com Valid MX? True ok 7 - Test for DNS where MX1 is private, MX2 is private but MX3 is a valid internet address test@test7.peregrinehw.com Valid MX? True ok 8 - Testing overloaded call with hash parameters test@test15.peregrinehw.com Valid MX? True ok 9 - Test for DNS where MX record is IPv6 AAAA record announce-return-162-mysql=speed.net@peregrinehw.com Valid MX? True ok 10 - Test for VERP Record cygwin-announce-return-547-test=speed.net@peregrinehw.com Valid MX? True ok 11 - Test for VERP Record kde-announce-bounces-+test=pobox.com@peregrinehw.com Valid MX? True ok 12 - Test for VERP Record ntf-461_30-12033835-TEST_=_POBOX.COM@peregrinehw.com Valid MX? True ok 13 - Test for VERP Record openssh-unix-announce-bounces+test=pobox.com@peregrinehw.com Valid MX? True ok 14 - Test for VERP Record sentto-1020166-167-1020161999-test=pobox.com@peregrinehw.com Valid MX? True ok 15 - Test for VERP Record users-return-14779-test=test.net@peregrinehw.com Valid MX? True ok 16 - Test for VERP Record bounce+test#aol.com-7eDsxRQ4JXXF5=test#pobox.com@peregrinehw.com Valid MX? True ok 17 - Test for SRS Record SRS0=coi/=X6=mandriva.org=return@peregrinehw.com Valid MX? True ok 18 - Test for SRS Record SRS0=oktk=QO=speed.net=test@peregrinehw.com Valid MX? True ok 19 - Test for SRS Record SRS0=pr+A=5A=evite.com=info@peregrinehw.com Valid MX? True ok 20 - Test for SRS Record SRS0=yY6Q=5F=deepdiscountdvdpromotions.com=offers@peregrinehw.com Valid MX? True ok 21 - Test for SRS Record SRS0=R+JI=42=returns.groups.yahoo.com=sentto-3977489-5630-1141374659-kelson=pobox.com@peregrinehw.com Valid MX? True ok 22 - Test for SRS & VERP ok t/03-valid.t .. 1..6 ok 1 - Test for valid email format ok 2 - Test for invalid email format without sanitize ok 3 - Test for invalid email with spaces ok 4 - Test for email address with local-part that is exactly 64 characters ok 5 - Test for invalid email address with local-part that is too long ok 6 - Test for invalid email address that is too long ok t/04-full.t ... 1..3 kevin.mcgrail@peregrinehw.com Valid MX? True - Passed ok 1 - Test for valid email format kevin.mcgrail@aol Valid MX? True - Passed ok 2 - Test for valid email format with sanitize kevin.mcgrail @ peregrine hw .com Valid MX? True - Passed ok 3 - Test for valid email with spaces ok t/05-email.t .. 1..3 ok 1 - Test for email domain extraction ok 2 - Test for email local part extraction with array return ok 3 - Test for email domain extraction with array reutn ok t/06-oo.t ..... 1..1 DEBUG: function debug setting is 1 DEBUG: function allow_ip_address_as_mx setting is 0 DEBUG: function resolution_problem_return setting is 1 DEBUG: function query_timeout setting is 4 DEBUG: Number of Answers in the MX resolution packet is: 1 DEBUG: Number of Answers Left to Check after discarding all but MX: 1 DEBUG: 0 - MX Answer - Type: MX - Exchange: taloncluster.pccc.com - Length: 21 DEBUG: 0 - Number of Answers in the MX->A resolution packet is: 1 DEBUG: 0 - Resolution type of taloncluster.pccc.com: A DEBUG: 0 - A Name Address for taloncluster.pccc.com: 38.124.232.10 DEBUG: Test Passed 38.124.232.10 looks good ok 1 ok All tests successful. Files=7, Tests=48, 3 wallclock secs ( 0.02 usr 0.02 sys + 0.31 cusr 0.12 csys = 0.47 CPU) Result: PASS