Skip to content

Commit

Permalink
Change the bounce reason for "temporarily deferred due to unexpected …
Browse files Browse the repository at this point in the history
…volume or user complaints" , follow commit 99c3f1e
  • Loading branch information
azumakuniyuki committed Jun 29, 2024
1 parent 9f9e4ac commit 9ab55f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions lib/sisimai/rhost/yahooinc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ class << self
# requires all senders to authenticate with either SPF or DKIM.
'yahoo requires all senders to authenticate with either spf or dkim',
],
'badreputation' => [
# - 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 (in reply to MAIL FROM command))
'temporarily deferred due to unexpected volume or user complaints',
],
'blocked' => [
# - 553 5.7.1 [BL21] Connections will not be accepted from 192.0.2.25,
# because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl23.html
Expand All @@ -38,6 +32,11 @@ class << self
'not accepted for policy reasons',
],
'rejected' => [
# - 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 (in reply to MAIL FROM command))
'temporarily deferred due to unexpected volume or user complaints',

# - 451 Message temporarily deferred due to unresolvable RFC.5321 from domain.
# See https://senders.yahooinc.com/error-codes#unresolvable-from-domain
'due to unresolvable rfc.5321 domain',
Expand Down
2 changes: 1 addition & 1 deletion test/private/lhost-postfix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ module Postfix
'01231' => [['5.7.9', '550', 'policyviolation', false],
['5.7.1', '550', 'authfailure', false],
['5.7.1', '550', 'authfailure', false]],
'01232' => [['4.7.0', '421', 'badreputation', false]],
'01232' => [['4.7.0', '421', 'rejected', false]],
'01233' => [['5.0.0', '550', 'blocked', false]],
'01234' => [['5.0.0', '553', 'rejected', false]],
'01235' => [['5.0.0', '554', 'spamdetected', false]],
Expand Down
2 changes: 1 addition & 1 deletion test/public/lhost-postfix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module Postfix
'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', 'badreputation', false]],
'74' => [['4.7.0', '421', 'rejected', false]],
'75' => [['4.3.0', '451', 'systemerror', false]],
'76' => [['5.0.0', '550', 'userunknown', true]],
'77' => [['5.0.0', '554', 'norelaying', false]],
Expand Down
2 changes: 1 addition & 1 deletion test/public/rhost-yahooinc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module YahooInc
IsExpected = {
# INDEX => [['D.S.N.', 'replycode', 'REASON', 'hardbounce'], [...]]
'01' => [['5.7.9', '554', 'policyviolation', false]],
'02' => [['4.7.0', '421', 'badreputation', false]],
'02' => [['4.7.0', '421', 'rejected', false]],
'03' => [['5.0.0', '554', 'userunknown', true]],
}
end
Expand Down

0 comments on commit 9ab55f4

Please sign in to comment.