From 1225505899bcce2ffcfa1a71ff256365e0f25299 Mon Sep 17 00:00:00 2001 From: azumakuniyuki Date: Fri, 21 Jun 2024 17:12:03 +0900 Subject: [PATCH 1/2] Some error messages have been moved to "notaccept" #339 --- lib/Sisimai/Lhost/OpenSMTPD.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Sisimai/Lhost/OpenSMTPD.pm b/lib/Sisimai/Lhost/OpenSMTPD.pm index 5f16e162..1ccf43bc 100644 --- a/lib/Sisimai/Lhost/OpenSMTPD.pm +++ b/lib/Sisimai/Lhost/OpenSMTPD.pm @@ -60,7 +60,11 @@ sub inquire { 'Domain does not exist', ], # smtp/mta.c:1085| relay->failstr = "Destination seem to reject all mails"; - 'notaccept' => ['Destination seem to reject all mails'], + 'notaccept' => [ + 'Destination seem to reject all mails', + 'No MX found for domain', + 'No MX found for destination', + ], 'networkerror'=> [ # smtpd/mta.c:972| relay->failstr = "Temporary failure in MX lookup"; 'Address family mismatch on destination MXs', @@ -69,8 +73,6 @@ sub inquire { 'Could not retrieve source address', 'Loop detected', 'Network error on destination MXs', - 'No MX found for domain', - 'No MX found for destination', 'No valid route to remote MX', 'No valid route to destination', 'Temporary failure in MX lookup', From 2877b00b151f7e7f98ca929be874703efa440a78 Mon Sep 17 00:00:00 2001 From: azumakuniyuki Date: Fri, 21 Jun 2024 17:12:35 +0900 Subject: [PATCH 2/2] Add 8 sample emails generated by OpenSMTPD 6.9.0p2 #339 --- .../maildir/bsd/lhost-opensmtpd-10.eml | 58 +++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-11.eml | 58 +++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-12.eml | 62 ++++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-13.eml | 62 ++++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-14.eml | 58 +++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-15.eml | 63 +++++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-16.eml | 62 ++++++++++++++++++ .../maildir/bsd/lhost-opensmtpd-17.eml | 63 +++++++++++++++++++ t/022-mail-maildir.t | 2 +- t/751-lhost-opensmtpd.t | 9 +++ xt/751-lhost-opensmtpd.t | 3 + 11 files changed, 499 insertions(+), 1 deletion(-) create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-10.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-11.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-12.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-13.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-14.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-15.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-16.eml create mode 100644 set-of-emails/maildir/bsd/lhost-opensmtpd-17.eml diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-10.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-10.eml new file mode 100644 index 00000000..c2b3099a --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-10.eml @@ -0,0 +1,58 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 951c3d2b + for ; + Mon, 17 Jun 2024 05:01:58 +0000 (UTC) +Subject: Delivery status notification: failed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Mon, 17 Jun 2024 05:01:58 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020679271106966/df.example.jp" +Message-ID: <74f4e3b598dc90ab@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020679271106966/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + An error has occurred while attempting to deliver a message for + the following list of recipients: + +postmaster@cx.libsisimai.org: Domain does not exist + + Below is a copy of the original message: + +--15462020679271106966/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; postmaster@cx.libsisimai.org +Action: failed +Status: 5.0.0 + +--15462020679271106966/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 91fbc65f + for ; + Mon, 17 Jun 2024 05:01:57 +0000 (UTC) +From: +Subject: Nyaan 06 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 14:01:57 +0900 +Message-ID: <74f4e3b183602776@df.example.jp> + +Nyaan? + +--15462020679271106966/df.example.jp-- diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-11.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-11.eml new file mode 100644 index 00000000..b944b164 --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-11.eml @@ -0,0 +1,58 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id e18dcebd + for ; + Mon, 17 Jun 2024 05:03:58 +0000 (UTC) +Subject: Delivery status notification: failed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Mon, 17 Jun 2024 05:03:58 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020682289023987/df.example.jp" +Message-ID: <74f4e3c17db95301@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020682289023987/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + An error has occurred while attempting to deliver a message for + the following list of recipients: + +authfailure@libsisimai.net: 550 5.7.26 : Recipient address rejected: Multiple authentication checks failed: See https://libsisimai.org/en/reason/#authfailure + + Below is a copy of the original message: + +--15462020682289023987/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; authfailure@libsisimai.net +Action: failed +Status: 5.0.0 + +--15462020682289023987/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id dc0364d6 + for ; + Mon, 17 Jun 2024 05:03:57 +0000 (UTC) +From: +Subject: Nyaan 07 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 14:03:57 +0900 +Message-ID: <74f4e3bc5de5dcae@df.example.jp> + +Nyaan? + +--15462020682289023987/df.example.jp-- diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-12.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-12.eml new file mode 100644 index 00000000..ea3b3127 --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-12.eml @@ -0,0 +1,62 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 94c5a197 + for ; + Mon, 17 Jun 2024 07:44:38 +0000 (UTC) +Subject: Delivery status notification: delayed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Mon, 17 Jun 2024 07:44:38 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020824679807191/df.example.jp" +Message-ID: <74f4e59c4543178c@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020824679807191/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + A message is delayed for more than 4 hours for the following + list of recipients: + +neko@nyaan.jp: No MX found for domain + + Please note that this is only a temporary failure report. + The message is kept in the queue for up to 7 days. + You DO NOT NEED to re-send the message to these recipients. + + Below is a copy of the original message: + +--15462020824679807191/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; neko@nyaan.jp +Action: delayed +Status: 4.0.0 + +--15462020824679807191/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 58588365 + for ; + Mon, 17 Jun 2024 04:57:57 +0000 (UTC) +From: +Subject: Nyaan 04 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 13:57:57 +0900 +Message-ID: <74f4e3a292556888@df.example.jp> + +Nyaan? + +--15462020824679807191/df.example.jp-- diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-13.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-13.eml new file mode 100644 index 00000000..e8e0961e --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-13.eml @@ -0,0 +1,62 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 79f1d618 + for ; + Mon, 17 Jun 2024 07:42:41 +0000 (UTC) +Subject: Delivery status notification: delayed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Mon, 17 Jun 2024 07:42:41 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020818823614161/df.example.jp" +Message-ID: <74f4e596a2385e00@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020818823614161/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + A message is delayed for more than 4 hours for the following + list of recipients: + +pseudo-local-part-of-yahoo-inc@yahoo.com: 421 4.7.0 [TSS04] Messages from 192.0.2.25 temporarily deferred due to unexpected volume or user complaints - 4.16.55.1; see https://postmaster.yahooinc.com/error-codes + + Please note that this is only a temporary failure report. + The message is kept in the queue for up to 7 days. + You DO NOT NEED to re-send the message to these recipients. + + Below is a copy of the original message: + +--15462020818823614161/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; pseudo-local-part-of-yahoo-inc@yahoo.com +Action: delayed +Status: 4.0.0 + +--15462020818823614161/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id c281c480 + for ; + Mon, 17 Jun 2024 04:55:57 +0000 (UTC) +From: +Subject: Nyaan 03 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 13:55:57 +0900 +Message-ID: <74f4e39a1c26094a@df.example.jp> + +Nyaan? + +--15462020818823614161/df.example.jp-- diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-14.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-14.eml new file mode 100644 index 00000000..450bb2e1 --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-14.eml @@ -0,0 +1,58 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 53c13bfb + for ; + Mon, 17 Jun 2024 05:07:59 +0000 (UTC) +Subject: Delivery status notification: failed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Mon, 17 Jun 2024 05:07:59 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020684747636917/df.example.jp" +Message-ID: <74f4e3d9ddb8c3a4@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020684747636917/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + An error has occurred while attempting to deliver a message for + the following list of recipients: + +blocked@libsisimai.net: 550 5.7.25 : Recipient address rejected: Reverse DNS validation failed: See https://libsisimai.org/en/reason/#blocked + + Below is a copy of the original message: + +--15462020684747636917/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; blocked@libsisimai.net +Action: failed +Status: 5.0.0 + +--15462020684747636917/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 30bd38ed + for ; + Mon, 17 Jun 2024 05:07:57 +0000 (UTC) +From: +Subject: Nyaan 09 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 14:07:57 +0900 +Message-ID: <74f4e3d46f227080@df.example.jp> + +Nyaan? + +--15462020684747636917/df.example.jp-- diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-15.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-15.eml new file mode 100644 index 00000000..066703f0 --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-15.eml @@ -0,0 +1,63 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id aef933d9 + for ; + Fri, 21 Jun 2024 04:57:58 +0000 (UTC) +Subject: Delivery status notification: delayed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Fri, 21 Jun 2024 04:57:58 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020918125789910/df.example.jp" +Message-ID: <74f4ebcc6d84f36f@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020918125789910/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + A message is delayed for more than 0 seconds for the following + list of recipients: + +neko@nyaan.jp: Envelope expired + + Please note that this is only a temporary failure report. + The message is kept in the queue for up to 7 days. + You DO NOT NEED to re-send the message to these recipients. + + Below is a copy of the original message: + +--15462020918125789910/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; neko@nyaan.jp +Action: delayed +Status: 4.4.7 + +--15462020918125789910/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 58588365 + for ; + Mon, 17 Jun 2024 04:57:57 +0000 (UTC) +From: +Subject: Nyaan 04 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 13:57:57 +0900 +Message-ID: <74f4e3a292556888@df.example.jp> + +Nyaan? + +--15462020918125789910/df.example.jp-- + diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-16.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-16.eml new file mode 100644 index 00000000..7addcbd1 --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-16.eml @@ -0,0 +1,62 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 576b025e + for ; + Fri, 21 Jun 2024 05:51:59 +0000 (UTC) +Subject: Delivery status notification: delayed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Fri, 21 Jun 2024 05:51:59 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020948069980410/df.example.jp" +Message-ID: <74f4ebe8d6e046ed@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020948069980410/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + A message is delayed for more than 0 seconds for the following + list of recipients: + +systemfull@libsisimai.net: Envelope expired + + Please note that this is only a temporary failure report. + The message is kept in the queue for up to 7 days. + You DO NOT NEED to re-send the message to these recipients. + + Below is a copy of the original message: + +--15462020948069980410/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; systemfull@libsisimai.net +Action: delayed +Status: 4.4.7 + +--15462020948069980410/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 50173677 + for ; + Mon, 17 Jun 2024 05:51:58 +0000 (UTC) +From: +Subject: Nyaan 31 +To: +User-Agent: mail (GNU Mailutils 3.14) +Date: Mon, 17 Jun 2024 14:51:58 +0900 +Message-ID: <74f4e4b860e0ad3f@df.example.jp> + +Nyaan? + +--15462020948069980410/df.example.jp-- diff --git a/set-of-emails/maildir/bsd/lhost-opensmtpd-17.eml b/set-of-emails/maildir/bsd/lhost-opensmtpd-17.eml new file mode 100644 index 00000000..d5f23c16 --- /dev/null +++ b/set-of-emails/maildir/bsd/lhost-opensmtpd-17.eml @@ -0,0 +1,63 @@ +Delivered-To: kijitora@df.example.jp +Received: from df.example.jp (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 4c015419 + for ; + Fri, 21 Jun 2024 07:55:04 +0000 (UTC) +Subject: Delivery status notification: failed +From: Mailer Daemon +To: kijitora@df.example.jp +Date: Fri, 21 Jun 2024 07:55:04 +0000 (UTC) +MIME-Version: 1.0 +Content-Type: multipart/mixed;boundary="15462020962910357743/df.example.jp" +Message-ID: <74f4ebf9c7b8c013@df.example.jp> + +This is a MIME-encapsulated message. + +--15462020962910357743/df.example.jp +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + + Hi! + + This is the MAILER-DAEMON, please DO NOT REPLY to this email. + + An error has occurred while attempting to deliver a message for + the following list of recipients: + +userunknown@libsisimai.net: 550 5.1.1 : Recipient address rejected: User unknown +mailboxfull@libsisimai.net: 552 5.2.2 : Recipient address rejected: Mailbox full + + Below is a copy of the original message: + +--15462020962910357743/df.example.jp +Content-Description: Delivery Report +Content-Type: message/delivery-status + +Reporting-MTA: dns; df.example.jp + +Final-Recipient: rfc822; userunknown@libsisimai.net +Action: failed +Status: 5.0.0 + +Final-Recipient: rfc822; mailboxfull@libsisimai.net +Action: failed +Status: 5.0.0 + +--15462020962910357743/df.example.jp +Content-Description: Message headers +Content-Type: text/rfc822-headers + +Received: from localhost (df.example.jp [local]) + by df.example.jp (OpenSMTPD) with ESMTPA id 7b6dd533 + for ; + Fri, 21 Jun 2024 07:55:02 +0000 (UTC) +From: +Subject: Nyaan ?? +To: nekochan@df.example.jp +User-Agent: mail (GNU Mailutils 3.14) +Date: Fri, 21 Jun 2024 16:55:02 +0900 +Message-ID: <74f4ebf4e64e4266@df.example.jp> + +Nyaan? + +--15462020962910357743/df.example.jp-- diff --git a/t/022-mail-maildir.t b/t/022-mail-maildir.t index 0969f33d..d0fc2882 100644 --- a/t/022-mail-maildir.t +++ b/t/022-mail-maildir.t @@ -8,7 +8,7 @@ my $Methods = { 'class' => ['new'], 'object' => ['path', 'dir', 'file', 'size', 'offset', 'handle', 'read'], }; -my $MaildirSize = 566; +my $MaildirSize = 574; my $SampleEmail = './set-of-emails/maildir/bsd'; my $NewInstance = $Package->new($SampleEmail); diff --git a/t/751-lhost-opensmtpd.t b/t/751-lhost-opensmtpd.t index 0136aeb0..1e946909 100644 --- a/t/751-lhost-opensmtpd.t +++ b/t/751-lhost-opensmtpd.t @@ -15,6 +15,15 @@ my $isexpected = { '04' => [['5.0.944', '', 'networkerror', 0]], '05' => [['5.0.947', '', 'expired', 0]], '06' => [['5.0.947', '', 'expired', 0]], + '10' => [['5.0.912', '', 'hostunknown', 1]], + '11' => [['5.7.26', '550', 'authfailure', 0]], + '12' => [['5.0.932', '', 'notaccept', 1]], + '13' => [['4.7.0', '421', 'blocked', 0]], + '14' => [['5.7.25', '550', 'requireptr', 0]], + '15' => [['5.0.947', '', 'expired', 0]], + '16' => [['5.0.947', '', 'expired', 0]], + '17' => [['5.1.1', '550', 'userunknown', 1], + ['5.2.2', '552', 'mailboxfull', 0]], }; $enginetest->($enginename, $isexpected); diff --git a/xt/751-lhost-opensmtpd.t b/xt/751-lhost-opensmtpd.t index 3cfc7ccc..56ecb58b 100644 --- a/xt/751-lhost-opensmtpd.t +++ b/xt/751-lhost-opensmtpd.t @@ -26,6 +26,9 @@ my $isexpected = { '01013' => [['5.0.912', '', 'hostunknown', 1]], '01014' => [['5.0.947', '', 'expired', 0]], '01015' => [['5.0.944', '', 'networkerror', 0]], + '01016' => [['5.0.912', '', 'hostunknown', 1]], + '01017' => [['5.7.26', '550', 'authfailure', 0]], + '01018' => [['5.0.932', '', 'notaccept', 1]], }; plan 'skip_all', sprintf("%s not found", $samplepath) unless -d $samplepath;