sisimai 5.0.0-java → 5.0.3-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/codecovio.yml +33 -0
- data/.github/workflows/rake-test.yml +54 -0
- data/ChangeLog.md +68 -1
- data/Gemfile +2 -0
- data/README-JA.md +224 -112
- data/README.md +56 -33
- data/lib/sisimai/arf.rb +24 -5
- data/lib/sisimai/fact.rb +46 -8
- data/lib/sisimai/lhost/amazonses.rb +0 -1
- data/lib/sisimai/lhost/amazonworkmail.rb +0 -1
- data/lib/sisimai/lhost/aol.rb +0 -1
- data/lib/sisimai/lhost/bigfoot.rb +0 -1
- data/lib/sisimai/lhost/domino.rb +0 -1
- data/lib/sisimai/lhost/exchange2007.rb +1 -1
- data/lib/sisimai/lhost/exim.rb +7 -16
- data/lib/sisimai/lhost/facebook.rb +0 -1
- data/lib/sisimai/lhost/googlegroups.rb +2 -1
- data/lib/sisimai/lhost/gsuite.rb +0 -1
- data/lib/sisimai/lhost/mailmarshalsmtp.rb +1 -1
- data/lib/sisimai/lhost/mailru.rb +8 -17
- data/lib/sisimai/lhost/messagelabs.rb +0 -1
- data/lib/sisimai/lhost/mfilter.rb +1 -1
- data/lib/sisimai/lhost/mxlogic.rb +8 -18
- data/lib/sisimai/lhost/office365.rb +1 -1
- data/lib/sisimai/lhost/outlook.rb +0 -1
- data/lib/sisimai/lhost/postfix.rb +0 -1
- data/lib/sisimai/lhost/receivingses.rb +0 -1
- data/lib/sisimai/lhost/sendgrid.rb +1 -3
- data/lib/sisimai/lhost/sendmail.rb +0 -1
- data/lib/sisimai/lhost/yandex.rb +0 -1
- data/lib/sisimai/message.rb +14 -5
- data/lib/sisimai/reason/authfailure.rb +1 -0
- data/lib/sisimai/reason/blocked.rb +3 -0
- data/lib/sisimai/reason/expired.rb +8 -0
- data/lib/sisimai/reason/filtered.rb +1 -0
- data/lib/sisimai/reason/mailboxfull.rb +4 -0
- data/lib/sisimai/reason/norelaying.rb +1 -0
- data/lib/sisimai/reason/rejected.rb +1 -1
- data/lib/sisimai/reason/securityerror.rb +1 -0
- data/lib/sisimai/reason/spamdetected.rb +1 -0
- data/lib/sisimai/reason/suspend.rb +5 -0
- data/lib/sisimai/reason/userunknown.rb +4 -1
- data/lib/sisimai/rfc5322.rb +120 -64
- data/lib/sisimai/rhost/google.rb +347 -71
- data/lib/sisimai/rhost/microsoft.rb +8 -0
- data/lib/sisimai/rhost/mimecast.rb +9 -2
- data/lib/sisimai/rhost/nttdocomo.rb +3 -3
- data/lib/sisimai/smtp/status.rb +3 -0
- data/lib/sisimai/version.rb +1 -1
- data/lib/sisimai.rb +12 -11
- data/set-of-emails/maildir/bsd/arf-26.eml +27 -0
- data/set-of-emails/maildir/bsd/lhost-sendmail-60.eml +85 -0
- data/set-of-emails/maildir/bsd/rhost-microsoft-04.eml +86 -0
- data/set-of-emails/maildir/bsd/rhost-microsoft-05.eml +83 -0
- metadata +13 -8
- data/.travis.yml +0 -23
data/lib/sisimai/rhost/google.rb
CHANGED
@@ -7,6 +7,45 @@ module Sisimai
|
|
7
7
|
class << self
|
8
8
|
MessagesOf = {
|
9
9
|
'authfailure' => [
|
10
|
+
# - 451 4.7.24 The SPF record of the sending domain has one or more suspicious entries.
|
11
|
+
# To protect our users from spam, mail sent from your IP address has been temporarily
|
12
|
+
# rate limited. For more information, go to Email sender guidelines.
|
13
|
+
# https://support.google.com/mail/answer/81126#authentication
|
14
|
+
#
|
15
|
+
# - 550 5.7.24 The SPF record of the sending domain has one or more suspicious entries.
|
16
|
+
# For more information, go to Email sender guidelines.
|
17
|
+
# - https://support.google.com/mail/answer/81126#authentication
|
18
|
+
['451', '4.7.24', 'the spf record of the sending domain'],
|
19
|
+
['550', '5.7.24', 'the spf record of the sending domain'],
|
20
|
+
|
21
|
+
# - 421 4.7.26 This mail has been rate limited because it is unauthenticated.
|
22
|
+
# Gmail requires all senders to authenticate with either SPF or DKIM.
|
23
|
+
# Authentication results: DKIM = did not pass SPF domain-name with ip: ip-address =
|
24
|
+
# did not pass. To resolve this issue, go to Email sender guidelines.
|
25
|
+
# - https://support.google.com/mail/answer/81126#authentication
|
26
|
+
['421', '4.7.26', 'senders to authenticate with either spf or dkim'],
|
27
|
+
['550', '5.7.26', 'senders to authenticate with either spf or dkim'],
|
28
|
+
|
29
|
+
# - 550 5.7.26 This message fails to pass SPF checks for an SPF record with a hard fail
|
30
|
+
# policy (-all). To best protect our users from spam and phishing, the message has
|
31
|
+
# been blocked. Please visit https://support.google.com/mail/answer/81126 for more
|
32
|
+
# information.
|
33
|
+
#
|
34
|
+
# - 550 5.7.26 The MAIL FROM domain [domain-name] has an SPF record with a hard fail
|
35
|
+
# policy (-all) but it fails to pass SPF checks with the ip: [ip-address]. To best
|
36
|
+
# protect our users from spam and phishing, the message has been blocked. For more
|
37
|
+
# information, go to Email sender guidelines.
|
38
|
+
# - https://support.google.com/mail/answer/81126#authentication
|
39
|
+
['550', '5.7.26', 'fails to pass spf checks for an spf record with a hard fail'],
|
40
|
+
['550', '5.7.26', 'has an spf record with a hard fail policy'],
|
41
|
+
|
42
|
+
# - 451 4.7.26 Unauthenticated email from domain-name is not accepted due to domain's
|
43
|
+
# DMARC policy, but temporary DNS failures prevent authentication. Please contact the
|
44
|
+
# administrator of domain-name domain if this was a legitimate mail. To learn about
|
45
|
+
# the DMARC initiative, go to https://support.google.com/mail/?p=DmarcRejection
|
46
|
+
['451', '4.7.26', "is not accepted due to domain's dmarc policy"],
|
47
|
+
['550', '5.7.26', "is not accepted due to domain's dmarc policy"],
|
48
|
+
|
10
49
|
# - 550 5.7.26 Unauthenticated email from domain-name is not accepted due to domain's
|
11
50
|
# DMARC policy. Please contact the administrator of domain-name domain. If this was
|
12
51
|
# a legitimate mail please visit [Control unauthenticated mail from your domain] to
|
@@ -22,213 +61,450 @@ module Sisimai
|
|
22
61
|
['550', '5.7.1', 'fails to pass authentication checks'],
|
23
62
|
['550', '5.7.26', 'fails to pass authentication checks'],
|
24
63
|
|
25
|
-
# -
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
['
|
64
|
+
# - 421 4.7.27 Your email has been rate limited because SPF authentication didn't pass
|
65
|
+
# for this message. Gmail requires all bulk email senders to authenticate their emaili
|
66
|
+
# with SPF. Authentication results: SPF domain-name with IP address: ip-address = Did
|
67
|
+
# not pass.
|
68
|
+
['421', '4.7.27', 'senders to authenticate with spf'],
|
69
|
+
['421', '4.7.27', 'senders to authenticate their email with spf'],
|
70
|
+
['550', '5.7.27', 'senders to authenticate with spf'],
|
71
|
+
|
72
|
+
# - 421 4.7.30 Your email has been rate limited because DKIM authentication didn't pass
|
73
|
+
# for this message. Gmail requires all email bulk senders to authenticate their email
|
74
|
+
# with DKIM. Authentication results: DKIM = Did not pass.
|
75
|
+
['421', '4.7.30', 'senders to authenticate their email with dkim'],
|
76
|
+
|
77
|
+
# - 550 5.7.30 This mail has been blocked because DKIM does not pass. Gmail requires all
|
78
|
+
# large senders to authenticate with DKIM. Authentication results: DKIM = did not pass.
|
79
|
+
# For instructions on setting up DKIM authentication, go to Turn on DKIM for your domain.
|
80
|
+
['550', '5.7.30', 'senders to authenticate with dkim'],
|
81
|
+
|
82
|
+
# - 421 4.7.32 Your email has been rate limited because the From: header (RFC5322) in
|
83
|
+
# this message isn't aligned with either the authenticated SPF or DKIM organizational
|
84
|
+
# domain.
|
85
|
+
['421', '4.7.32', 'aligned with either the authenticated spf or dkim'],
|
30
86
|
],
|
31
87
|
'badreputation' => [
|
88
|
+
# - 421 4.7.0 This message is suspicious due to the very low reputation of the sending
|
89
|
+
# IP address/domain. To protect our users from spam, mail sent from your IP address
|
90
|
+
# has been temporarily rate limited. For more information, go to Why has Gmail blocked
|
91
|
+
# my messages?. https://support.google.com/mail/answer/188131
|
92
|
+
['421', '4.7.0', 'very low reputation of the sending ip address'],
|
93
|
+
['421', '4.7.0', 'very low reputation of the sending domain'],
|
94
|
+
|
32
95
|
# - 550 5.7.1 Our system has detected that this message is likely suspicious due to the
|
33
|
-
# very low reputation of the sending IP address. To best protect our users
|
34
|
-
# the message has been blocked.
|
96
|
+
# very low reputation of the sending IP address/domain. To best protect our users
|
97
|
+
# from spam, the message has been blocked.
|
35
98
|
# Please visit https://support.google.com/mail/answer/188131 for more information.
|
36
99
|
['550', '5.7.1', 'this message is likely suspicious due to the very low reputation of the sending ip address'],
|
100
|
+
['550', '5.7.1', 'this message is likely suspicious due to the very low reputation of the sending domain'],
|
37
101
|
],
|
38
102
|
'blocked' => [
|
39
|
-
|
40
|
-
|
41
|
-
#
|
42
|
-
|
43
|
-
# dress has been temporarily blocked.
|
44
|
-
# For more information, visit https://support.google.com/mail/answer/81126
|
45
|
-
['421', '4.7.0', 'our system has detected an unusual rate of unsolicited mail originating from your ip address'],
|
103
|
+
# - 421 4.7.0 IP not in whitelist for RCPT domain, closing connection.
|
104
|
+
# For more information, go to Allowlists, denylists, and approved senders.
|
105
|
+
# https://support.google.com/a/answer/60752
|
106
|
+
['421', '4.7.0', 'ip not in whitelist for rcpt domain'],
|
46
107
|
|
47
108
|
# - 421 4.7.0 Try again later, closing connection. This usually indicates a Denial of
|
48
109
|
# Service (DoS) for the SMTP relay at the HELO stage.
|
110
|
+
# https://support.google.com/a/answer/3221692
|
49
111
|
['421', '4.7.0', 'try again later, closing connection.'],
|
50
112
|
|
51
|
-
# - 501 5.5.4 HELO/EHLO argument is invalid.
|
52
|
-
|
113
|
+
# - 501 5.5.4 HELO/EHLO argument is invalid. https://support.google.com/mail/?p=helo
|
114
|
+
['501', '5.5.4', 'empty helo/ehlo argument not allowed'],
|
53
115
|
['501', '5.5.4', 'helo/ehlo argument is invalid'],
|
54
116
|
|
117
|
+
# - 421 4.7.28 Gmail has detected an unusual rate of mail
|
118
|
+
# (originating from)
|
119
|
+
# - your IP address 192.0.2.25
|
120
|
+
# - your IP Netblock 192.0.2.0/24 (?)
|
121
|
+
# - your DKIM domain example.org
|
122
|
+
# - your SPF domain example.org
|
123
|
+
# (containing one of your URL domains)
|
124
|
+
#
|
125
|
+
# To protect our users from spam, mail has been temporarily rate limited. To review
|
126
|
+
# our bulk email senders guidelines, go to Email sender guidelines.
|
127
|
+
# https://support.google.com/mail/?p=UnsolicitedRateLimitError
|
128
|
+
['421', '4.7.0', 'an unusual rate of unsolicited mail'],
|
129
|
+
['421', '4.7.28', 'an unusual rate of mail'],
|
130
|
+
|
55
131
|
# - 550 5.7.1 Our system has detected an unusual rate of unsolicited mail originating
|
56
132
|
# from your IP address. To protect our users from spam, mail sent from your IP ad-
|
57
133
|
# dress has been blocked. Review https://support.google.com/mail/answer/81126
|
58
|
-
|
59
|
-
|
60
|
-
#
|
61
|
-
#
|
62
|
-
|
63
|
-
['550', '5.7.
|
64
|
-
],
|
65
|
-
'contenterror' => [
|
66
|
-
['554', '5.6.0', 'mail message is malformed. Not accepted'],
|
134
|
+
#
|
135
|
+
# - 550 5.7.28 There is an unusual rate of unsolicited mail originating from your IP
|
136
|
+
# address. To protect our users from spam, mail sent from your IP address has been
|
137
|
+
# blocked. To review our bulk email senders guidelines, go to Email sender guidelines.
|
138
|
+
['550', '5.7.1', 'an unusual rate of unsolicited mail'],
|
139
|
+
['550', '5.7.28', 'an unusual rate of unsolicited mail'],
|
67
140
|
],
|
68
141
|
'exceedlimit' => [
|
69
142
|
# - 552 5.2.3 Your message exceeded Google's message size limits. For more information,
|
70
143
|
# visit https://support.google.com/mail/answer/6584
|
71
|
-
['552', '5.2.3', "your message exceeded
|
144
|
+
['552', '5.2.3', "your message exceeded google's message size limits"],
|
145
|
+
|
146
|
+
# - 552 5.3.4 The number of attachments (num-attachments) exceeds Google's limit of
|
147
|
+
# limit attachments. To view our attachment size guidelines, go to Gmail receiving
|
148
|
+
# limits in Google Workspace. https://support.google.com/a/answer/1366776
|
149
|
+
#
|
150
|
+
# - 552 5.3.4 The size of the <header name> header value (size bytes) exceeds Google's
|
151
|
+
# limit of limit bytes per individual header size. To view our header size guidelines,
|
152
|
+
# go to Gmail message header limits https://support.google.com/a?p=header-limits
|
153
|
+
['552', '5.3.4', "exceeds google's limit of limit attachments."],
|
154
|
+
['552', '5.3.4', "your message exceeded google's message header size limits"],
|
155
|
+
['552', '5.3.4', 'bytes per individual header size'],
|
156
|
+
['552', '5.3.4', "exceeds google's header name limit of"],
|
157
|
+
['552', '5.3.4', "exceeds google's message header size limit"]
|
72
158
|
],
|
73
159
|
'expired' => [
|
160
|
+
# - 421 4.7.0 Connection expired, try reconnecting. For more information, go to About
|
161
|
+
# SMTP error messages. https://support.google.com/a/answer/3221692
|
162
|
+
['421', '4.7.0', 'connection expired'],
|
163
|
+
|
164
|
+
# - 451 4.4.2 Timeout - closing connection. For more information, go to About SMTP
|
165
|
+
# error messages. https://support.google.com/a/answer/3221692
|
74
166
|
['451', '4.4.2', 'timeout - closing connection'],
|
75
167
|
],
|
76
168
|
'mailboxfull' => [
|
169
|
+
# - 452 4.2.2 The recipient's inbox is out of storage space.
|
170
|
+
# Please direct the recipient to https://support.google.com/mail/?p=OverQuotaTemp
|
171
|
+
# - Please direct the recipient to https://support.google.com/mail/?p=OverQuotaPerm
|
172
|
+
['452', '4.2.2', 'inbox is out of storage space'],
|
173
|
+
['552', '5.2.2', 'inbox is out of storage space and inactive'],
|
174
|
+
|
77
175
|
# - 452 4.2.2 The email account that you tried to reach is over quota. Please direct
|
78
176
|
# the recipient to Clear Google Drive space & increase storage.
|
79
|
-
['452', '4.2.2', '
|
80
|
-
['552', '5.2.2', '
|
177
|
+
['452', '4.2.2', 'is over quota'],
|
178
|
+
['552', '5.2.2', 'is over quota'],
|
81
179
|
['550', '5.7.1', 'email quota exceeded'],
|
82
180
|
],
|
181
|
+
'mesgtoobig' => [
|
182
|
+
# - 552 5.3.4 Your message exceeded Google's message size limits. To view our message
|
183
|
+
# size guidelines, go to Send attachments with your Gmail message.
|
184
|
+
# - https://support.google.com/mail/?p=MaxSizeError
|
185
|
+
['552', '5.3.4', "exceeded google's message size limits"],
|
186
|
+
|
187
|
+
# - 552 5.3.4 The size of your message (size bytes) exceeded Google's message size
|
188
|
+
# limits of limit bytes. To view our message size guidelines, go to Gmail receiving
|
189
|
+
# limits in Google Workspace.
|
190
|
+
# - https://support.google.com/mail/?p=MaxSizeError
|
191
|
+
['552', '5.3.4', "exceeds google's message size limit of"],
|
192
|
+
],
|
83
193
|
'networkerror' => [
|
84
|
-
|
194
|
+
# - 554 5.4.6 Message exceeded 50 hops, this may indicate a mail loop.
|
195
|
+
# For more information, go to Gmail Help. https://support.google.com/mail/?p=MailLoop
|
196
|
+
['554', '5.4.6', 'message exceeded 50 hops'],
|
197
|
+
['554', '5.6.0', 'message exceeded 50 hops'],
|
85
198
|
],
|
86
199
|
'norelaying' => [
|
200
|
+
# - 550 5.7.0 Mail relay denied <ip-address>. Invalid credentials for relay for one of
|
201
|
+
# the domains in: <domain-name> (as obtained from HELO and MAIL FROM). Email is being
|
202
|
+
# sent from a domain or IP address which isn't registered in your Workspace account.
|
203
|
+
# Please login to your Workspace account and verify that your sending device IP
|
204
|
+
# address has been registered within the Workspace SMTP Relay Settings. For more
|
205
|
+
# information, go to SMTP relay service error messages.
|
206
|
+
# - https://support.google.com/a/answer/6140680#maildenied
|
87
207
|
['550', '5.7.0', 'mail relay denied'],
|
208
|
+
|
209
|
+
# - 550 5.7.1 Invalid credentials for relay <ip-address>. The IP address you've
|
210
|
+
# registered in your Workspace SMTP Relay service doesn't match the domain of the
|
211
|
+
# account this email is being sent from. If you are trying to relay mail from a
|
212
|
+
# domain that isn't registered under your Workspace account or has empty
|
213
|
+
# envelope-from:, you must configure your mail server either to use SMTP AUTH to
|
214
|
+
# identify the sending domain or to present one of your domain names in the HELO or
|
215
|
+
# EHLO command. For more information, go to SMTP relay service error messages.
|
216
|
+
# - https://support.google.com/a/answer/6140680#invalidcred
|
217
|
+
['550', '5.7.1', 'invalid credentials for relay'],
|
218
|
+
|
219
|
+
# - 550 7.7.1 The IP you're using to send mail is not authorized to send email directly
|
220
|
+
# to our servers. Use the SMTP relay at your service provider instead. For more
|
221
|
+
# information, go to 'The IP you're using to send email is not authorized...'.
|
222
|
+
# - https://support.google.com/mail/?p=NotAuthorizedError
|
223
|
+
['550', '5.7.1', 'is not authorized to send email directly to our servers'],
|
88
224
|
],
|
89
225
|
'notcompliantrfc' => [
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
226
|
+
# - 550 5.7.1 Messages missing a valid address in the From: header, or having no From:
|
227
|
+
# header, are not accepted. For more information, go to Email sender guidelines and
|
228
|
+
# review RFC 5322 specifications.
|
229
|
+
# - https://support.google.com/mail/?p=RfcMessageNonCompliant
|
230
|
+
['550', '5.7.1', 'missing a valid address in the from: header'],
|
231
|
+
['550', '5.7.1', 'multiple addresses in from: header are not accepted'],
|
94
232
|
|
95
|
-
# - 550 5.7.1
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
['550', '5.7.1', '
|
233
|
+
# - 550 5.7.1 This message is not RFC 5322 compliant because it has duplicate headers.
|
234
|
+
# To reduce the amount of spam sent to Gmail, this message has been blocked. For more
|
235
|
+
# information, go to Email sender guidelines and review RFC 5322 specifications.
|
236
|
+
# - https://support.google.com/mail/?p=RfcMessageNonCompliant
|
237
|
+
['550', '5.7.1', 'is not rfc 5322 compliant'],
|
100
238
|
|
239
|
+
# - 550 5.7.1 Messages missing a valid Message-ID: header are not accepted. For more
|
240
|
+
# information, go to Email sender guidelines and review RFC 5322 specifications.
|
241
|
+
# - https://support.google.com/mail/?p=RfcMessageNonCompliant
|
242
|
+
['550', '5.7.1', 'missing a valid message-id: header'],
|
243
|
+
|
244
|
+
# - 550 5.7.1 The message contains a unicode character in a disallowed header.
|
245
|
+
# To review our message and header content guidelines, go to File types blocked in
|
246
|
+
# Gmail. https://support.google.com/mail/?p=BlockedMessage
|
247
|
+
['550', '5.7.1', 'contains a unicode character in a disallowed header'],
|
248
|
+
|
249
|
+
# - 550 5.7.1 Encoded-word syntax is not permitted in message header header-name. To
|
250
|
+
# reduce the amount of spam sent to Gmail, this message has been blocked. For more
|
251
|
+
# information, go to Email sender guidelines and review RFC 5322 specifications.
|
252
|
+
# - https://support.google.com/mail/?p=RfcMessageNonCompliant
|
253
|
+
['550', '5.7.1', 'encoded-word syntax is not permitted'],
|
254
|
+
|
255
|
+
# - 553 5.1.7 The sender address address is not a valid RFC 5321 address. For more
|
256
|
+
# information, go to About SMTP error messages and review RFC 5321 specifications.
|
257
|
+
# - https://support.google.com/a/answer/3221692
|
258
|
+
['553', '5.1.7', 'is not a valid rfc 5321 address'],
|
259
|
+
|
260
|
+
# - 554 5.6.0 Mail message is malformed. Not accepted. For more information, go to
|
261
|
+
# Email sender guidelines and review RFC 5322 specifications.
|
262
|
+
# - https://support.google.com/mail/?p=RfcMessageNonCompliant
|
263
|
+
['554', '5.6.0', 'mail message is malformed'],
|
264
|
+
],
|
265
|
+
'policyviolation' => [
|
101
266
|
# - 552 5.7.0 Our system detected an illegal attachment on your message. Please visit
|
102
267
|
# http://mail.google.com/support/bin/answer.py?answer=6590 to review our attachment
|
103
268
|
# guidelines.
|
104
|
-
['552', '5.7.0', '
|
269
|
+
['552', '5.7.0', 'illegal attachment on your message'],
|
105
270
|
|
106
271
|
# - 552 5.7.0 This message was blocked because its content presents a potential securi-
|
107
272
|
# ty issue. Please visit https://support.google.com/mail/?p=BlockedMessage to review
|
108
273
|
# our message content and attachment content guidelines.
|
109
|
-
['552', '5.7.0', '
|
274
|
+
['552', '5.7.0', 'blocked because its content presents a potential security issue'],
|
275
|
+
|
276
|
+
# - 550 5.7.1 The user or domain that you are sending to (or from) has a policy that
|
277
|
+
# prohibited the mail that you sent. Please contact your domain administrator for
|
278
|
+
# further details.
|
279
|
+
# For more information, visit https://support.google.com/a/answer/172179
|
280
|
+
['550', '5.7.1', 'you are sending to (or from) has a policy that prohibited'],
|
281
|
+
|
282
|
+
# - 421 4.7.28 Gmail has detected this message exceeded its quota for sending messages
|
283
|
+
# with the same Message-ID:. To best protect our users, the message has been tempo-
|
284
|
+
# rarily rejected. For more information, go to Why has Gmail blocked my messages?.
|
285
|
+
# https://support.google.com/mail/answer/188131
|
286
|
+
['421', '4.7.28', 'sending messages with the same message-id:'],
|
110
287
|
],
|
111
288
|
'rejected' => [
|
112
289
|
# - 550 5.7.0, Mail Sending denied. This error occurs if the sender account is disabled
|
113
290
|
# or not registered within your Google Workspace domain.
|
291
|
+
# - https://support.google.com/a/answer/6140680#maildenied
|
114
292
|
['550', '5.7.0', 'mail sending denied'],
|
115
|
-
|
116
|
-
['550', '5.7.1', 'unauthenticated email is not accepted from this domain'],
|
293
|
+
['550', '5.7.1', 'unauthenticated email is not accepted'],
|
117
294
|
],
|
118
295
|
'requireptr' => [
|
296
|
+
# - 550 5.7.1 This message does not meet IPv6 sending guidelines regarding PTR records
|
297
|
+
# and authentication. For more information, go to Email sender guidelines.
|
298
|
+
# https://support.google.com/mail/?p=IPv6AuthError
|
299
|
+
['550', '5.7.1', 'does not meet ipv6 sending guidelines regarding ptr records and authentication'],
|
300
|
+
|
301
|
+
# - 421 4.7.0 The IP address sending this message does not have a PTR record, or the
|
302
|
+
# corresponding forward DNS entry does not point to the sending IP. To protect our
|
303
|
+
# users from spam, mail sent from your IP address has been temporarily rate limited.
|
304
|
+
# For more information, go to Email sender guidelines.
|
305
|
+
['421', '4.7.0', 'does not have a ptr record'],
|
306
|
+
|
307
|
+
# - 421 4.7.23 The sending IP address for this message doesn't have a PTR record, or
|
308
|
+
# the PTR record's forward DNS entry doesn't match the sending IP address. To protect
|
309
|
+
# users from spam, your email has been temporarily rate limited.
|
310
|
+
['421', '4.7.23', ' have a ptr record, or the ptr record'],
|
311
|
+
|
119
312
|
# - 550 5.7.25 The IP address sending this message does not have a PTR record setup, or
|
120
313
|
# the corresponding forward DNS entry does not point to the sending IP. As a policy,
|
121
314
|
# Gmail does not accept messages from IPs with missing PTR records.
|
122
|
-
|
315
|
+
# For more information, go to Email sender guidelines.
|
316
|
+
# - https://support.google.com/mail/answer/81126#ip-practices
|
317
|
+
#
|
318
|
+
# - 550 5.7.25 The sending IP does not match the IP address of the hostname specified
|
319
|
+
# in the pointer (PTR) record. For more information, go to Email sender guidelines.
|
320
|
+
# - https://support.google.com/mail/answer/81126#ip-practices
|
321
|
+
['550', '5.7.25', 'does not have a ptr record'],
|
322
|
+
['550', '5.7.25', 'does not match the ip address of the hostname'],
|
123
323
|
],
|
124
324
|
'securityerror' => [
|
125
|
-
|
325
|
+
# - 421 4.7.0 TLS required for RCPT domain, closing connection. For more information,
|
326
|
+
# go to Email encryption in transit. https://support.google.com/mail/answer/6330403
|
327
|
+
#
|
328
|
+
# - 454 4.7.0 Too many login attempts, please try again later. For more information, go
|
329
|
+
# to Add Gmail to another email client. https://support.google.com/mail/answer/7126229
|
330
|
+
['421', '4.7.0', 'tls required for rcpt domain'],
|
331
|
+
['454', '4.7.0', 'too many login attempts'],
|
332
|
+
|
333
|
+
# - 503 5.7.0 No identity changes permitted. For more information, go to About SMTP
|
334
|
+
# error messages.
|
126
335
|
['501', '5.5.2', 'cannot decode response'], # 2FA related error, maybe.
|
336
|
+
['503', '5.7.0', 'no identity changes permitted'],
|
127
337
|
|
128
338
|
# - 530 5.5.1 Authentication Required. For more information, visit
|
129
339
|
# https://support.google.com/accounts/troubleshooter/2402620
|
340
|
+
# - https://support.google.com/mail/?p=WantAuthError
|
130
341
|
['530', '5.5.1', 'authentication required.'],
|
342
|
+
['530', '5.7.0', 'authentication required.'],
|
131
343
|
|
132
344
|
# - 535 5.7.1 Application-specific password required.
|
133
345
|
# For more information, visit https://support.google.com/accounts/answer/185833
|
134
346
|
['535', '5.7.1', 'application-specific password required'],
|
347
|
+
['535', '5.7.9', 'application-specific password required'],
|
135
348
|
|
136
349
|
# - 535 5.7.1 Please log in with your web browser and then try again. For more infor-
|
137
350
|
# mation, visit https://support.google.com/mail/bin/accounts/answer/78754
|
138
|
-
['535', '5.7.1',
|
351
|
+
['535', '5.7.1', 'please log in with your web browser'],
|
352
|
+
['534', '5.7.9', 'please log in with your web browser'],
|
353
|
+
['534', '5.7.14', 'please log in through your web browser'],
|
139
354
|
|
140
355
|
# - 535 5.7.1 Username and Password not accepted. For more information, visit
|
141
356
|
# https://support.google.com/accounts/troubleshooter/2402620
|
142
357
|
['535', '5.7.1', 'username and password not accepted'],
|
358
|
+
['535', '5.7.8', 'username and password not accepted'],
|
143
359
|
|
144
|
-
|
360
|
+
# - 421 4.7.29 Your email has been rate limited because this message wasn't sent over a
|
361
|
+
# TLS connection. Gmail requires all bulk email senders to use TLS/SSL for SMTP conn-
|
362
|
+
# ections.
|
363
|
+
['421', '4.7.29', 'senders to use tls/ssl for smtp'],
|
364
|
+
['550', '5.7.29', 'senders to use tls/ssl for smtp'],
|
145
365
|
],
|
146
366
|
'spamdetected' => [
|
367
|
+
# - 421 4.7.0 This message is suspicious due to the nature of the content or the links
|
368
|
+
# within. To best protect our users from spam, the message has been blocked. For more
|
369
|
+
# information, go to Why has Gmail blocked my messages?.
|
370
|
+
# https://support.google.com/mail/answer/188131
|
371
|
+
['421', '4.7.0', 'due to the nature of the content or the links within'],
|
372
|
+
|
147
373
|
# - 550 5.7.1 Our system has detected that this message is likely unsolicited mail. To
|
148
374
|
# reduce the amount of spam sent to Gmail, this message has been blocked.
|
149
375
|
# For more information, visit https://support.google.com/mail/answer/188131
|
150
|
-
|
376
|
+
# - https://support.google.com/mail/?p=UnsolicitedMessageError
|
377
|
+
['550', '5.7.1', 'likely unsolicited mail'],
|
151
378
|
],
|
152
379
|
'speeding' => [
|
153
380
|
# - 450 4.2.1 The user you are trying to contact is receiving mail too quickly. Please
|
154
381
|
# resend your message at a later time. If the user is able to receive mail at that
|
155
382
|
# time, your message will be delivered.
|
156
383
|
# For more information, visit https://support.google.com/mail/answer/22839
|
384
|
+
#
|
385
|
+
# - 450 4.2.1 Peak SMTP relay limit exceeded for customer. This is a temporary error.
|
386
|
+
# For more information on SMTP relay limits, please contact your administrator or
|
387
|
+
# visit https://support.google.com/a/answer/6140680
|
157
388
|
['450', '4.2.1', 'is receiving mail too quickly'],
|
389
|
+
['450', '4.2.1', 'peak smtp relay limit exceeded for customer'],
|
158
390
|
|
159
391
|
# - 450 4.2.1 The user you are trying to contact is receiving mail at a rate that pre-
|
160
392
|
# vents additional messages from being delivered. Please resend your message at a
|
161
393
|
# later time. If the user is able to receive mail at that time, your message will be
|
162
394
|
# delivered. For more information, visit https://support.google.com/mail/answer/6592
|
163
|
-
|
164
|
-
['
|
165
|
-
|
166
|
-
# - 450 4.2.1 Peak SMTP relay limit exceeded for customer. This is a temporary error.
|
167
|
-
# For more information on SMTP relay limits, please contact your administrator or
|
168
|
-
# visit https://support.google.com/a/answer/6140680
|
169
|
-
['450', '4.2.1', 'peak smtp relay limit exceeded for customer'],
|
395
|
+
# - https://support.google.com/mail/?p=ReceivingRatePerm
|
396
|
+
['450', '4.2.1', 'rate that prevents additional messages from being delivered'],
|
397
|
+
['550', '5.2.1', 'rate that prevents additional messages from being delivered'],
|
170
398
|
|
171
399
|
# - 550 5.4.5 Daily SMTP relay limit exceeded for user. For more information on SMTP
|
172
400
|
# relay sending limits please contact your administrator or visit SMTP relay service
|
173
401
|
# error messages.
|
174
|
-
['550', '5.4.5', 'daily smtp relay limit exceeded for user'],
|
175
|
-
['550', '5.4.5', 'daily sending quota exceeded'],
|
176
|
-
|
177
|
-
# - 550 5.7.1 Daily SMTP relay limit exceeded for customer. For more information on
|
178
|
-
# SMTP relay sending limits please contact your administrator or visit
|
179
402
|
# https://support.google.com/a/answer/6140680
|
180
|
-
|
403
|
+
# - https://support.google.com/a/answer/166852
|
404
|
+
['550', '5.4.5', 'daily sending quota exceeded'],
|
405
|
+
['550', '5.4.5', 'daily user sending limit exceeded'],
|
406
|
+
['550', '5.4.5', 'daily smtp relay limit exceeded for'],
|
407
|
+
['550', '5.7.1', 'daily smtp relay limit exceeded for'],
|
408
|
+
['550', '5.7.1', 'daily smtp relay sending limit exceeded for'],
|
409
|
+
['550', '5.7.1', 'this mail has been rate limited'],
|
181
410
|
],
|
182
411
|
'suspend' => [
|
183
|
-
|
184
|
-
|
412
|
+
# - 550 5.2.1 The email account that you tried to reach is inactive.
|
413
|
+
# For more information, go to https://support.google.com/mail/?p=DisabledUser
|
414
|
+
['550', '5.2.1', 'account that you tried to reach is disabled'],
|
415
|
+
['550', '5.2.1', 'account that you tried to reach is inactive'],
|
185
416
|
],
|
186
417
|
'syntaxerror' => [
|
187
|
-
|
188
|
-
|
189
|
-
|
418
|
+
# - 523 5.7.10 SMTP protocol violation, no commands allowed to pipeline after STARTTLS.
|
419
|
+
# For more information, go to About SMTP error messages and review RFC 3207
|
420
|
+
# specifications.
|
421
|
+
['451', '4.5.0', 'smtp protocol violation'],
|
422
|
+
['454', '4.5.0', 'smtp protocol violation'],
|
423
|
+
['525', '5.7.10', 'smtp protocol violation'],
|
424
|
+
['535', '5.5.4', 'optional argument not permitted'],
|
425
|
+
['454', '5.5.1', 'starttls may not be repeated'],
|
426
|
+
|
427
|
+
# - 501 5.5.2 Syntax error, cannot decode response. For more information, go to About
|
428
|
+
# SMTP error messages.
|
429
|
+
# - https://support.google.com/a/answer/3221692
|
430
|
+
# - 501 5.7.11 Syntax error (no parameters allowed). For more information, go to About
|
431
|
+
# SMTP error messages and review RFC 3207 specifications.
|
432
|
+
['501', '5.7.11', 'syntax error'],
|
433
|
+
['501', '5.5.2', 'syntax error'],
|
434
|
+
['555', '5.5.2', 'syntax error'],
|
435
|
+
|
436
|
+
# - 503 5.5.1 Bad sequence of commands. For more information, go to About SMTP error
|
437
|
+
# messages and review RFC 5321 specifications.
|
438
|
+
# - https://support.google.com/mail/?p=helo
|
439
|
+
#
|
440
|
+
# - 503 5.5.1 No DATA after BDAT. A mail transaction protocol command was issued out of
|
441
|
+
# sequence. For more information, go to About SMTP error messages and review RFC 3030
|
442
|
+
# specifications.
|
443
|
+
# - https://support.google.com/a/answer/3221692
|
190
444
|
['502', '5.5.1', 'too many unrecognized commands, goodbye'],
|
191
445
|
['502', '5.5.1', 'unimplemented command'],
|
192
446
|
['502', '5.5.1', 'unrecognized command'],
|
447
|
+
['503', '5.5.1', 'bad sequence of commands'],
|
193
448
|
['503', '5.5.1', 'ehlo/helo first'],
|
194
449
|
['503', '5.5.1', 'mail first'],
|
195
450
|
['503', '5.5.1', 'rcpt first'],
|
196
|
-
['503', '5.
|
451
|
+
['503', '5.5.1', 'no data after bdat'],
|
197
452
|
['504', '5.7.4', 'unrecognized authentication type'],
|
453
|
+
['504', '5.7.4', 'xoauth is no longer supported'],
|
454
|
+
|
455
|
+
# - 530 5.7.0 Must issue a STARTTLS command first. For more information, go to About
|
456
|
+
# SMTP error messages and review RFC 3207 specifications.
|
198
457
|
['530', '5.7.0', 'must issue a starttls command first'],
|
199
|
-
['535', '5.5.4', 'optional argument not permitted for that auth mode'],
|
200
458
|
['554', '5.7.0', 'too many unauthenticated commands'],
|
201
|
-
['555', '5.5.2', 'syntax error'],
|
202
459
|
],
|
203
460
|
'systemerror' => [
|
461
|
+
# About SMTP error messages, https://support.google.com/a/answer/3221692
|
204
462
|
['421', '4.3.0', 'temporary system problem'],
|
205
463
|
['421', '4.7.0', 'temporary system problem'],
|
206
464
|
['421', '4.4.5', 'server busy'],
|
465
|
+
|
466
|
+
# - 451 4.3.0 Multiple destination domains per transaction is unsupported. Please try
|
467
|
+
# again. For more information, go to About SMTP error messages and review RFC 5321
|
468
|
+
# specifications. https://support.google.com/a/answer/3221692
|
469
|
+
['451', '4.3.0', 'multiple destination domains per transaction is unsupported'],
|
470
|
+
['451', '4.3.0', 'mail server has temporarily rejected this message'],
|
207
471
|
['451', '4.3.0', 'mail server temporarily rejected message'],
|
208
|
-
['454', '4.7.0', 'cannot authenticate due to temporary system problem'],
|
209
472
|
|
210
473
|
# - 452 4.5.3 Domain policy size per transaction exceeded, please try this recipient in
|
211
474
|
# a separate transaction. This message means the email policy size (size of policies,
|
212
475
|
# number of policies, or both) for the recipient domain has been exceeded.
|
476
|
+
# https://support.google.com/a/answer/7282433
|
213
477
|
['452', '4.5.3', 'domain policy size per transaction exceeded'],
|
478
|
+
|
479
|
+
# - 454 4.7.0 Cannot authenticate due to a temporary system problem. Try again later.
|
480
|
+
# For more information, go to About SMTP error messages.
|
481
|
+
# https://support.google.com/a/answer/3221692
|
482
|
+
['454', '4.7.0', 'cannot authenticate due to temporary system problem'],
|
214
483
|
],
|
215
484
|
'toomanyconn' => [
|
216
|
-
['451', '4.3.0', 'multiple destination domains per transaction is unsupported'],
|
217
|
-
|
218
485
|
# - 452 4.5.3 Your message has too many recipients. For more information regarding
|
219
486
|
# Google's sending limits, visit https://support.google.com/mail/answer/6592
|
487
|
+
# https://support.google.com/mail/?p=TooManyRecipientsError
|
220
488
|
['452', '4.5.3', 'your message has too many recipients'],
|
489
|
+
['550', '5.5.3', 'too many recipients for this sender'],
|
221
490
|
],
|
222
491
|
'userunknown' => [
|
223
492
|
# - 550 5.1.1 The email account that you tried to reach does not exist. Please try dou-
|
224
493
|
# ble-checking the recipient's email address for typos or unnecessary spaces.
|
225
494
|
# For more information, visit https://support.google.com/mail/answer/6596
|
495
|
+
# - https://support.google.com/mail/?p=NoSuchUser
|
226
496
|
['550', '5.1.1', 'the email account that you tried to reach does not exist'],
|
227
497
|
|
228
498
|
# - 553 5.1.2 We weren't able to find the recipient domain. Please check for any spell-
|
229
499
|
# ing errors, and make sure you didn't enter any spaces, periods, or other punctua-
|
230
500
|
# tion after the recipient's email address.
|
501
|
+
# - https://support.google.com/mail/?p=BadRcptDomain
|
231
502
|
['553', '5.1.2', "we weren't able to find the recipient domain"],
|
503
|
+
|
504
|
+
# - 553 5.1.3 The recipient address <address> is not a valid RFC 5321 address. For more
|
505
|
+
# information, go to About SMTP error messages and review RFC 5321 specifications.
|
506
|
+
# - https://support.google.com/a/answer/3221692
|
507
|
+
['553', '5.1.3', 'is not a valid rfc 5321 address'],
|
232
508
|
],
|
233
509
|
}.freeze
|
234
510
|
|
@@ -455,6 +455,9 @@ module Sisimai
|
|
455
455
|
# - This message usually indicates an issue on the destination email server. Check the
|
456
456
|
# validity of the recipient address. Determine if the destination server is configur-
|
457
457
|
# ed correctly to receive the messages.
|
458
|
+
['4.4.317', 0, 0, 'starttls is required to send mail'],
|
459
|
+
['5.4.317', 0, 0, 'starttls is required to send mail'],
|
460
|
+
|
458
461
|
['4.7.321', 0, 0, 'starttls-not-supported: destination mail server must support tls to receive mail'],
|
459
462
|
['5.7.321', 0, 0, 'starttls-not-supported: destination mail server must support tls to receive mail'],
|
460
463
|
|
@@ -599,6 +602,11 @@ module Sisimai
|
|
599
602
|
['4.4.25', 0, 0, 'message failed to be replicated: no healthy secondary server available to accept replica at this time.'],
|
600
603
|
['4.4.28', 0, 0, 'message failed to be replicated: the operation was canceled'],
|
601
604
|
|
605
|
+
# 550 5.4.318 Message expired, connection reset (SuspiciousRemoteServerError)
|
606
|
+
# 450 4.4.318 Connection was closed abruptly (SuspiciousRemoteServerError)
|
607
|
+
['4.4.318', 0, 0, '(suspiciousremoteservererror)'],
|
608
|
+
['5.4.318', 0, 0, '(suspiciousremoteservererror)'],
|
609
|
+
|
602
610
|
# - status=deferred (host hotmail-com.olc.protection.outlook.com[192.0.2.1] said:
|
603
611
|
# 451 4.7.500 Server busy. Please try again later from [192.0.2.2]. (AS761) (in reply
|
604
612
|
# to RCPT TO command))
|