Skip to content

Commit

Permalink
IP reputation related reasons have been changed to "badreputation" #240
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Nov 6, 2022
1 parent 90809b8 commit 047262c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
48 changes: 24 additions & 24 deletions lib/sisimai/rhost/exchangeonline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ module ExchangeOnline
class << self
# https://technet.microsoft.com/en-us/library/bb232118
StatusList = {
'4.3.1' => [{ reason: 'systemfull', string: 'Insufficient system resources' }],
'4.3.2' => [{ reason: 'notaccept', string: 'System not accepting network messages' }],
'4.4.2' => [{ reason: 'blocked', string: 'Connection dropped' }],
'4.7.26' => [{ reason: 'authfailure', string: 'must pass either SPF or DKIM validation, this message is not signed' }],
'4.7.650' => [{ reason: 'blocked', string: 'has been temporarily rate limited due to IP reputation' }],
'5.0.0' => [{ reason: 'blocked', string: 'HELO / EHLO requires domain address' }],
'5.1.4' => [{ reason: 'systemerror', string: 'Destination mailbox address ambiguous' }],
'5.2.1' => [{ reason: 'suspend', string: 'Mailbox cannot be accessed' }],
'5.2.2' => [{ reason: 'mailboxfull', string: 'Mailbox full' }],
'5.2.3' => [{ reason: 'exceedlimit', string: 'Message too large' }],
'5.2.4' => [{ reason: 'systemerror', string: 'Mailing list expansion problem' }],
'5.2.14' => [{ reason: 'systemerror', string: 'misconfigured forwarding address' }],
'5.2.122' => [{ reason: 'toomanyconn' ,string: 'The recipient has exceeded their limit for' }],
'5.3.3' => [{ reason: 'systemfull', string: 'Unrecognized command' }],
'5.3.4' => [{ reason: 'mesgtoobig', string: 'Message too big for system' }],
'5.3.5' => [{ reason: 'systemerror', string: 'System incorrectly configured' }],
'5.4.1' => [{ reason: 'rejected', string: 'Recipient address rejected: Access denied' }],
'5.4.11' => [{ reason: 'contenterror',string: 'Agent generated message depth exceeded' }],
'5.4.14' => [{ reason: 'networkerror',string: 'Hop count exceeded' }],
'5.4.310' => [{ reason: 'systemerror', string: 'does not exist' }], # DNS domain * does not exist
'5.5.2' => [{ reason: 'syntaxerror', string: 'Send hello first' }],
'5.5.3' => [{ reason: 'syntaxerror', string: 'Too many recipients' }],
'5.5.4' => [{ reason: 'filtered', string: 'Invalid domain name' }],
'5.5.6' => [{ reason: 'contenterror',string: 'Invalid message content' }],
'4.3.1' => [{ reason: 'systemfull', string: 'Insufficient system resources' }],
'4.3.2' => [{ reason: 'notaccept', string: 'System not accepting network messages' }],
'4.4.2' => [{ reason: 'blocked', string: 'Connection dropped' }],
'4.7.26' => [{ reason: 'authfailure', string: 'must pass either SPF or DKIM validation, this message is not signed' }],
'4.7.650' => [{ reason: 'badreputation', string: 'has been temporarily rate limited due to IP reputation' }],
'5.0.0' => [{ reason: 'blocked', string: 'HELO / EHLO requires domain address' }],
'5.1.4' => [{ reason: 'systemerror', string: 'Destination mailbox address ambiguous' }],
'5.2.1' => [{ reason: 'suspend', string: 'Mailbox cannot be accessed' }],
'5.2.2' => [{ reason: 'mailboxfull', string: 'Mailbox full' }],
'5.2.3' => [{ reason: 'exceedlimit', string: 'Message too large' }],
'5.2.4' => [{ reason: 'systemerror', string: 'Mailing list expansion problem' }],
'5.2.14' => [{ reason: 'systemerror', string: 'misconfigured forwarding address' }],
'5.2.122' => [{ reason: 'toomanyconn' , string: 'The recipient has exceeded their limit for' }],
'5.3.3' => [{ reason: 'systemfull', string: 'Unrecognized command' }],
'5.3.4' => [{ reason: 'mesgtoobig', string: 'Message too big for system' }],
'5.3.5' => [{ reason: 'systemerror', string: 'System incorrectly configured' }],
'5.4.1' => [{ reason: 'rejected', string: 'Recipient address rejected: Access denied' }],
'5.4.11' => [{ reason: 'contenterror', string: 'Agent generated message depth exceeded' }],
'5.4.14' => [{ reason: 'networkerror', string: 'Hop count exceeded' }],
'5.4.310' => [{ reason: 'systemerror', string: 'does not exist' }], # DNS domain * does not exist
'5.5.2' => [{ reason: 'syntaxerror', string: 'Send hello first' }],
'5.5.3' => [{ reason: 'syntaxerror', string: 'Too many recipients' }],
'5.5.4' => [{ reason: 'filtered', string: 'Invalid domain name' }],
'5.5.6' => [{ reason: 'contenterror', string: 'Invalid message content' }],
'5.7.1' => [
{ reason: 'securityerror', string: 'Delivery not authorized' },
{ reason: 'securityerror', string: 'Client was not authenticated' },
Expand Down
2 changes: 1 addition & 1 deletion lib/sisimai/rhost/godaddy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module GoDaddy
class << self
# https://www.godaddy.com/help/what-does-my-email-bounceback-mean-3568
ErrorCodes = {
'IB103' => 'blocked', # 554 Connection refused. This IP has a poor reputation on Cloudmark Sender Intelligence (CSI). IB103
'IB103' => 'badreputation', # 554 Connection refused. This IP has a poor reputation on Cloudmark Sender Intelligence (CSI). IB103
'IB104' => 'blocked', # 554 Connection refused. This IP is listed on the Spamhaus Block List (SBL). IB104
'IB105' => 'blocked', # 554 Connection refused. This IP is listed on the Exploits Block List (XBL). IB105
'IB106' => 'blocked', # 554 Connection refused. This IP is listed on the Policy Block List (PBL). IB106
Expand Down
4 changes: 3 additions & 1 deletion lib/sisimai/rhost/googleapps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ class << self
{ reason: 'blocked', string: [
'The IP address sending this message does not have a PTR record setup.',
"The IP you're using to send mail is not authorized to send email directly to our servers.",
'this message is likely suspicious due to the very low reputation of the sending IP address',
'unusual rate of unsolicited mail originating from your IP address.',
]},
{ reason: 'badreputation', string: [
'this message is likely suspicious due to the very low reputation of the sending IP address',
]},
{ reason: 'spamdetected', string: ['this message is likely unsolicited mail.'] },
{ reason: 'policyviolation',string: [
'Messages with multiple addresses in From: header are not accepted.',
Expand Down

0 comments on commit 047262c

Please sign in to comment.