Skip to content

Commit

Permalink
Update parsed results for Sisimai::Reason::AuthFailure #236
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Nov 4, 2022
1 parent 6ead59e commit cb6b747
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion test/private/lhost-exim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ module Exim
['5.3.4', '552', 'mesgtoobig', false]],
'01162' => [['5.7.1', '550', 'blocked', false]],
'01163' => [['5.1.1', '550', 'mailboxfull', false]],
'01164' => [['5.7.1', '553', 'blocked', false]],
'01164' => [['5.7.1', '553', 'authfailure', false]],
'01165' => [['5.7.1', '550', 'spamdetected', false]],
'01168' => [['4.0.947', '', 'expired', false]],
'01169' => [['5.4.3', '', 'systemerror', false]],
Expand Down
2 changes: 1 addition & 1 deletion test/private/lhost-office365.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Office365
'01007' => [['5.1.1', '550', 'userunknown', true]],
'01008' => [['5.1.1', '550', 'userunknown', true]],
'01009' => [['5.0.0', '553', 'securityerror', false]],
'01010' => [['5.1.0', '550', 'blocked', false]],
'01010' => [['5.1.0', '550', 'authfailure', false]],
'01011' => [['5.1.351', '550', 'filtered', false]],
'01012' => [['5.1.8', '501', 'rejected', false]],
'01013' => [['5.4.312', '550', 'networkerror', false]],
Expand Down
14 changes: 7 additions & 7 deletions test/private/lhost-postfix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ module Postfix
'01224' => [['5.7.9', '554', 'policyviolation', false]],
'01225' => [['5.0.0', '554', 'policyviolation', false]],
'01226' => [['5.7.9', '554', 'policyviolation', false]],
'01227' => [['5.7.26', '550', 'policyviolation', false]],
'01228' => [['5.7.1', '554', 'policyviolation', false]],
'01229' => [['5.7.1', '550', 'policyviolation', false]],
'01230' => [['5.7.1', '550', 'policyviolation', false]],
'01231' => [['5.7.1', '550', 'policyviolation', false],
['5.7.1', '550', 'policyviolation', false],
['5.7.1', '550', 'policyviolation', false]],
'01227' => [['5.7.26', '550', 'authfailure', false]],
'01228' => [['5.7.1', '554', 'authfailure', false]],
'01229' => [['5.7.1', '550', 'authfailure', false]],
'01230' => [['5.7.1', '550', 'authfailure', false]],
'01231' => [['5.7.1', '550', 'authfailure', false],
['5.7.1', '550', 'authfailure', false],
['5.7.1', '550', 'authfailure', false]],
'01232' => [['4.7.0', '421', 'blocked', false]],
'01233' => [['5.0.0', '550', 'blocked', false]],
'01234' => [['5.0.0', '553', 'blocked', false]],
Expand Down
8 changes: 4 additions & 4 deletions test/private/lhost-sendmail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ module Sendmail
'01219' => [['5.7.27', '550', 'notaccept', true]],
'01220' => [['5.7.1', '550', 'policyviolation', false]],
'01221' => [['5.6.0', '552', 'contenterror', false]],
'01222' => [['5.7.1', '550', 'policyviolation', false]],
'01223' => [['5.7.1', '550', 'policyviolation', false]],
'01224' => [['5.7.1', '550', 'policyviolation', false]],
'01225' => [['5.7.1', '550', 'policyviolation', false]],
'01222' => [['5.7.1', '550', 'authfailure', false]],
'01223' => [['5.7.1', '550', 'authfailure', false]],
'01224' => [['5.7.1', '550', 'authfailure', false]],
'01225' => [['5.7.1', '550', 'authfailure', false]],
'01226' => [['5.7.1', '550', 'rejected', false]],
'01227' => [['5.7.1', '550', 'rejected', false]],
'01228' => [['5.1.1', '550', 'userunknown', true]],
Expand Down
2 changes: 1 addition & 1 deletion test/public/lhost-exim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Exim
'06' => [['4.0.947', '', 'expired', false]],
'07' => [['4.0.922', '', 'mailboxfull', false]],
'08' => [['4.0.947', '', 'expired', false]],
'29' => [['5.0.0', '550', 'blocked', false]],
'29' => [['5.0.0', '550', 'authfailure', false]],
'30' => [['5.7.1', '554', 'userunknown', true]],
'31' => [['5.0.912', '', 'hostunknown', true]],
'32' => [['5.0.971', '571', 'blocked', false]],
Expand Down
2 changes: 1 addition & 1 deletion test/public/lhost-office365.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Office365
# INDEX => [['D.S.N.', 'replycode', 'REASON', 'hardbounce'], [...]]
'01' => [['5.1.10', '550', 'userunknown', true]],
'02' => [['5.1.1', '550', 'userunknown', true]],
'03' => [['5.1.0', '550', 'blocked', false]],
'03' => [['5.1.0', '550', 'authfailure', false]],
'04' => [['5.1.351', '550', 'filtered', false]],
'05' => [['5.1.8', '501', 'rejected', false]],
'06' => [['5.4.312', '550', 'networkerror', false]],
Expand Down
8 changes: 4 additions & 4 deletions test/public/lhost-postfix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ module Postfix
'67' => [['5.7.9', '554', 'policyviolation', false]],
'68' => [['5.0.0', '554', 'policyviolation', false]],
'69' => [['5.7.9', '554', 'policyviolation', false]],
'70' => [['5.7.26', '550', 'policyviolation', false]],
'71' => [['5.7.1', '554', 'policyviolation', false]],
'72' => [['5.7.1', '550', 'policyviolation', false]],
'73' => [['5.7.1', '550', 'policyviolation', false]],
'70' => [['5.7.26', '550', 'authfailure', false]],
'71' => [['5.7.1', '554', 'authfailure', false]],
'72' => [['5.7.1', '550', 'authfailure', false]],
'73' => [['5.7.1', '550', 'authfailure', false]],
'74' => [['4.7.0', '421', 'blocked', false]],
'75' => [['4.3.0', '451', 'systemerror', false]],
'76' => [['5.0.0', '550', 'userunknown', true]],
Expand Down
2 changes: 1 addition & 1 deletion test/public/lhost-sendmail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module Sendmail
'55' => [['4.5.0', '451', 'mailererror', false]],
'56' => [['5.5.0', '554', 'blocked', false]],
'57' => [['5.7.27', '550', 'notaccept', true]],
'58' => [['5.7.1', '550', 'policyviolation', false]],
'58' => [['5.7.1', '550', 'authfailure', false]],
'59' => [['5.7.1', '550', 'rejected', false]],
}
end
Expand Down
1 change: 1 addition & 0 deletions test/public/reason-children-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

class ReasonChildrenTest < Minitest::Test
Reasons = {
'AuthFailure' => ["550 5.1.0 192.0.2.222 is not allowed to send from <example.net> per it's SPF Record"],
'Blocked' => ['550 Access from ip address 192.0.2.1 blocked.'],
'ContentError' => ['550 5.6.0 the headers in this message contain improperly-formatted binary content'],
'ExceedLimit' => ['5.2.3 Message too large'],
Expand Down
1 change: 1 addition & 0 deletions test/public/reason-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class ReasonTest < Minitest::Test
'smtp;550 5.1.1 <[email protected]>... User unknown',
'550 5.1.1 <[email protected]>... User Unknown ',
'550 5.1.1 <[email protected]>... ',
'550 Bad SPF records for [example.org:192.0.2.2], see http://spf.pobox.com/',
'Connection timed out',
]

Expand Down

0 comments on commit cb6b747

Please sign in to comment.