sisimai 5.4.0 → 5.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56389403100014b2eb7f152a7c6456d7fdcabd6b62d4c4191e0635922a22e100
4
- data.tar.gz: f656add05823808e3577a4a6578a171b502a775682f8e47cb63af67e8776fe83
3
+ metadata.gz: 2902f7775a61f2e9319a02aef58fd1eaab47a9568c4196ddc567b684030bd027
4
+ data.tar.gz: 73f2ad9a6eab6e282cb85828f0e9c88c561c27ee6afbcb333013323f25706f65
5
5
  SHA512:
6
- metadata.gz: a5e8c46be7da33065b7656ac4fc0d0e21f89012d1e8688cf9b04d772f8e018b6bd5fc2dfddb788ad4b66d479b33c16fcc6662467cd258a7830c87d2ea575f13b
7
- data.tar.gz: 641907cb3ba496132e5e3d86b70be1ed16545740c5a0cd3a9167cb7f7ddc056af017a2618d2c82c6dfc850c8b5b046900e93983ca491497c514b52a926d06e55
6
+ metadata.gz: 6e4f546ce63ee10a6d23cfdbac8e063917bbdb203b3749d617ba028861b8056a87c3789acd17181718b0ad00c143ec567e369dc0083956deec3db92cc1b7a06c
7
+ data.tar.gz: 983509f05bda18bf539f75f6454bbed56d74443f2adb0d13e59d806cb9a27526e646bb00e8ee1015ed4f5f77cc230e3def6a4681f35b3046446338a63670e656
data/ChangeLog.md CHANGED
@@ -3,6 +3,16 @@ RELEASE NOTES for Ruby version of Sisimai
3
3
  - releases: "https://github.com/sisimai/rb-sisimai/releases"
4
4
  - download: "https://rubygems.org/gems/sisimai"
5
5
 
6
+ v5.4.1
7
+ ---------------------------------------------------------------------------------------------------
8
+ - release: "Sun, 31 Aug 2025 09:22:25 +0900 (JST)"
9
+ - version: "5.4.1"
10
+ - changes:
11
+ - #353 Support a bounce mail returned from `privaterelay.appleid.com`.
12
+ - #352 Update SMTP error and status codes of Gmail updated in August 2025.
13
+ - #354 #355 Bug fix:The 2nd and 3rd elements should be an integer at `Sisimai::Rhost::Microsoft`.
14
+ Thanks to @kawai-markerise
15
+
6
16
  v5.4.0
7
17
  ---------------------------------------------------------------------------------------------------
8
18
  - release: "Tue, 1 Jul 2025 20:22:22 +0900 (JST)"
@@ -90,7 +90,11 @@ module Sisimai
90
90
  # - 421 4.7.40 Your email has been rate limited because the sending domain doesn't
91
91
  # have a DMARC record, or the DMARC record doesn’t specify a DMARC policy. Gmail
92
92
  # requires all bulk email senders to add a DMARC record to their sending domain.
93
+ # - 550 5.7.40 Your message was blocked because the sending domain doesn't have a DMARC
94
+ # record or the DMARC record doesn't specify a DMARC policy. Gmail requires all bulk
95
+ # email senders to add a DMARC record to their sending domain.
93
96
  ["421", "4.7.40", "to add a dmarc record to "],
97
+ ["550", "5.7.40", "to add a dmarc record to "],
94
98
  ],
95
99
  'badreputation' => [
96
100
  # - 421 4.7.0 This message is suspicious due to the very low reputation of the sending
@@ -363,19 +367,19 @@ module Sisimai
363
367
 
364
368
  # - 535 5.7.1 Application-specific password required.
365
369
  # For more information, visit https://support.google.com/accounts/answer/185833
366
- ['535', '5.7.1', 'application-specific password required'],
367
- ['535', '5.7.9', 'application-specific password required'],
370
+ ['535', '5.7.1', 'application-specific password required'],
371
+ ['535', '5.7.90', 'application-specific password required'],
368
372
 
369
373
  # - 535 5.7.1 Please log in with your web browser and then try again. For more infor-
370
374
  # mation, visit https://support.google.com/mail/bin/accounts/answer/78754
371
375
  ['535', '5.7.1', 'please log in with your web browser'],
372
- ['534', '5.7.9', 'please log in with your web browser'],
376
+ ['534', '5.7.90', 'please log in with your web browser'],
373
377
  ['534', '5.7.14', 'please log in through your web browser'],
374
378
 
375
379
  # - 535 5.7.1 Username and Password not accepted. For more information, visit
376
380
  # https://support.google.com/accounts/troubleshooter/2402620
377
- ['535', '5.7.1', 'username and password not accepted'],
378
- ['535', '5.7.8', 'username and password not accepted'],
381
+ ['535', '5.7.1', 'username and password not accepted'],
382
+ ['535', '5.7.80', 'username and password not accepted'],
379
383
  ],
380
384
  'spamdetected' => [
381
385
  # - 421 4.7.0 This message is suspicious due to the nature of the content or the links
@@ -454,17 +458,17 @@ module Sisimai
454
458
  # sequence. For more information, go to About SMTP error messages and review RFC 3030
455
459
  # specifications.
456
460
  # - https://support.google.com/a/answer/3221692
457
- ['502', '5.5.1', 'too many unrecognized commands, goodbye'],
458
- ['502', '5.5.1', 'unimplemented command'],
459
- ['502', '5.5.1', 'unrecognized command'],
460
- ['503', '5.5.1', 'bad sequence of commands'],
461
- ['503', '5.5.1', 'ehlo/helo first'],
462
- ['503', '5.5.1', 'mail first'],
463
- ['503', '5.5.1', 'rcpt first'],
464
- ['503', '5.5.1', 'no data after bdat'],
465
- ['504', '5.7.4', 'unrecognized authentication type'],
466
- ['504', '5.7.4', 'xoauth is no longer supported'],
467
- ['554', '5.7.0', 'too many unauthenticated commands'],
461
+ ['502', '5.5.1', 'too many unrecognized commands, goodbye'],
462
+ ['502', '5.5.1', 'unimplemented command'],
463
+ ['502', '5.5.1', 'unrecognized command'],
464
+ ['503', '5.5.1', 'bad sequence of commands'],
465
+ ['503', '5.5.1', 'ehlo/helo first'],
466
+ ['503', '5.5.1', 'mail first'],
467
+ ['503', '5.5.1', 'rcpt first'],
468
+ ['503', '5.5.1', 'no data after bdat'],
469
+ ['504', '5.7.40', 'unrecognized authentication type'],
470
+ ['504', '5.7.40', 'xoauth is no longer supported'],
471
+ ['554', '5.7.0', 'too many unauthenticated commands'],
468
472
  ],
469
473
  'systemerror' => [
470
474
  # About SMTP error messages, https://support.google.com/a/answer/3221692
@@ -611,9 +611,9 @@ module Sisimai
611
611
  # Microsoft.Exchange.Transport.Net.Http.TransportHttpException(session Id: -1) ...(in reply to end of DATA command)
612
612
  # - 451 4.4.28 Message failed to be replicated:
613
613
  # System.Net.Http.HttpRequestException(session Id: ****) ... (in reply to end of DATA command)
614
- ["4.4.", "22", "28", "message failed to be replicated:"],
615
- ["4.4.3", "", "", "temporary server error. please try again later attr18"],
616
- ["4.7.0", "", "", "temporary server error. please try again later. prx4 nexthop:"],
614
+ ["4.4.", 22, 28, "message failed to be replicated:"],
615
+ ["4.4.3", 0, 0, "temporary server error. please try again later attr18"],
616
+ ["4.7.0", 0, 0, "temporary server error. please try again later. prx4 nexthop:"],
617
617
 
618
618
  # 550 5.4.318 Message expired, connection reset (SuspiciousRemoteServerError)
619
619
  # 450 4.4.318 Connection was closed abruptly (SuspiciousRemoteServerError)
data/lib/sisimai/rhost.rb CHANGED
@@ -6,7 +6,7 @@ module Sisimai
6
6
  class << self
7
7
  RhostClass = {
8
8
  "Aol" => [".mail.aol.com", ".mx.aol.com"],
9
- "Apple" => [".mail.icloud.com", ".apple.com", ".me.com"],
9
+ "Apple" => [".mail.icloud.com", ".apple.com", ".me.com", "privaterelay.appleid.com"],
10
10
  "Cloudflare" => [".mx.cloudflare.net"],
11
11
  "Cox" => ["cox.net"],
12
12
  "Facebook" => [".facebook.com"],
@@ -1,4 +1,4 @@
1
1
  # Define the version number of Sisimai
2
2
  module Sisimai
3
- VERSION = '5.4.0'.freeze
3
+ VERSION = '5.4.1'.freeze
4
4
  end
@@ -0,0 +1,96 @@
1
+ Return-Path: <>
2
+ X-Original-To: michitsuna@example.co.jp
3
+ Delivered-To: azumakuniyuki@example.co.jp
4
+ Received: by mbox.example.org (Postfix)
5
+ id 4br8Qn53tPz20Q07; Mon, 28 Jul 2025 15:56:33 +0900 (JST)
6
+ Date: Mon, 28 Jul 2025 15:56:33 +0900 (JST)
7
+ From: MAILER-DAEMON@mbox.example.org (Mail Delivery System)
8
+ Subject: Undelivered Mail Returned to Sender
9
+ To: michitsuna@example.co.jp
10
+ Auto-Submitted: auto-replied
11
+ MIME-Version: 1.0
12
+ Content-Type: multipart/report; report-type=delivery-status;
13
+ boundary="4br8Ql1PsKz1ylgh.1753685793/mbox.example.org"
14
+ Message-Id: <4br8Qn53tPz20Q07@mbox.example.org>
15
+
16
+ This is a MIME-encapsulated message.
17
+
18
+ --4br8Ql1PsKz1ylgh.1753685793/mbox.example.org
19
+ Content-Description: Notification
20
+ Content-Type: text/plain; charset=us-ascii
21
+
22
+ This is the mail system at host mbox.example.org.
23
+
24
+ I'm sorry to have to inform you that your message could not
25
+ be delivered to one or more recipients. It's attached below.
26
+
27
+ For further assistance, please send mail to postmaster.
28
+
29
+ If you do so, please include this problem report. You can
30
+ delete your own text from the attached returned message.
31
+
32
+ The mail system
33
+
34
+ <test-of-zhzkndneko@privaterelay.appleid.com>: host
35
+ smtp1.privaterelay.appleid.com[17.57.152.15] said: 550 5.1.1
36
+ <test-of-zhzkndneko@privaterelay.appleid.com>: user not found (in reply to
37
+ RCPT TO command)
38
+
39
+ --4br8Ql1PsKz1ylgh.1753685793/mbox.example.org
40
+ Content-Description: Delivery report
41
+ Content-Type: message/delivery-status
42
+
43
+ Reporting-MTA: dns; mbox.example.org
44
+ X-Postfix-Queue-ID: 4br8Ql1PsKz1ylgh
45
+ X-Postfix-Sender: rfc822; michitsuna@example.co.jp
46
+ Arrival-Date: Mon, 28 Jul 2025 15:56:31 +0900 (JST)
47
+
48
+ Final-Recipient: rfc822; test-of-zhzkndneko@privaterelay.appleid.com
49
+ Original-Recipient: rfc822;test-of-zhzkndneko@privaterelay.appleid.com
50
+ Action: failed
51
+ Status: 5.1.1
52
+ Remote-MTA: dns; smtp1.privaterelay.appleid.com
53
+ Diagnostic-Code: smtp; 550 5.1.1 <test-of-zhzkndneko@privaterelay.appleid.com>:
54
+ user not found
55
+
56
+ --4br8Ql1PsKz1ylgh.1753685793/mbox.example.org
57
+ Content-Description: Undelivered Message
58
+ Content-Type: message/rfc822
59
+
60
+ Return-Path: <michitsuna@example.co.jp>
61
+ Received: from smtpclient.apple (p220222-ipngnfx01kyoto.kyoto.ocn.ne.jp [192.0.2.22])
62
+ by mbox.example.org (Postfix) with ESMTPSA id 4br8Ql1PsKz1ylgh
63
+ for <test-of-zhzkndneko@privaterelay.appleid.com>; Mon, 28 Jul 2025 15:56:31 +0900 (JST)
64
+ Authentication-Results: mbox.example.org; arc=none smtp.client-ip=192.0.2.22
65
+ ARC-Seal:i=1; a=rsa-sha256; d=example.org; s=nekochan; t=1753685791; cv=none;
66
+ b=DTXIneAf3JGovi47VQy3NCS9aWkKP6pBvSw5yfS7jYw9Eo/wmU9wBQWUrTePDvKb8CbRqCrtgmuuJHLl+OBUfTznMD6VC0ChjM5dcUkbr3Q4vokMbVDCevn1Zeyb7aYjEdimsRCgLvKr4YI22OJX8uTwcokdxL1l85vr8Ti/R/dlbtIoPeciAP3GXUWOko4C0g1gQyTtbxOWI634xcHaPRNwDzdd67pAjPYIslgYCwqY7n4Lv/ncRYewIVYrgxipimsjLa2lZmwcr22SXkaJuFytxn3vDQd76z1gIK1vqPPPXed1QOvmR5nnr+2YC133MOLS4R3Bqo2j8Ui9955frw==
67
+ ARC-Message-Signature:i=1; a=rsa-sha256; d=example.org; s=nekochan;
68
+ t=1753685791; c=relaxed/relaxed;
69
+ bh=06Wq0p4F3Xn2qy2jIfWYlVEHUus/7tEHaBItwhN9yIU=;
70
+ h=DKIM-Signature:From:Content-Type:Content-Transfer-Encoding:
71
+ Mime-Version:Subject:Message-Id:Date:To:X-Mailer; b=qjdrsgKX+CWYvGwrVQqiFEghvV9VTgNsBHtk4/TKkjRB3zhfz1z6KXPG/LtSrUBpR+kRxAwcFF6um+VQCtJv9i5QJSDJIMgo5udvNFyXcNilItwSkziUs1ak0DSxLGIt910xINpSf/Y/ZIadSBg/HFB33uiJ/EXo3k0r40urVRj2t+F14aG0OLC9Dz7AO4M2ALL65AAPpxG/kxMJGpz0GrMIj1om/h+B+n1YX5dG4k4O5xVNShEoFfWfoAQ4UIHW9kF336t4+C/LLqL6qRQet+ZDWopdh5jErLX/osce9gf//VXKv5NV5iSC45ZtlvThlkEOWAKY7HUVI6K7/hHOzw==
72
+ ARC-Authentication-Results:i=1; mbox.example.org; arc=none smtp.client-ip=192.0.2.22
73
+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.org;
74
+ s=nekochan; t=1753685791;
75
+ bh=06Wq0p4F3Xn2qy2jIfWYlVEHUus/7tEHaBItwhN9yIU=;
76
+ h=From:Subject:Message-Id:Date:To:X-Mailer:From;
77
+ b=QVIcHPhk1gLdclwQgFQR1fjGwqmgUlgnILI8SrUQ1SFAydWnWbn6iAcY1s03wzpWz
78
+ OCHGcFvbTOFqj2pw2EAD1Zcmp/5kfpZfiBf4rpJQb1KjVc2QCcWJz7hES4eseEBFCl
79
+ +ztGoiLtpzZeJ18ol0zY6Ufm2j5U2aIOUdNuqCYnRTF0nswiMSxWr+UIjF3lnndWL/
80
+ GKORz+3TTBNVBBdUEb9DRfW4UIq8I2HzxLdHzox++wR8psNVatKY2A5TNAoyrOhJTA
81
+ 47xjcsfBSDOMpYd4g9OWT8ZR74/V/KjqXUNKGm+i+nlFSSrYzsGfXqPxQQulhPUOQ+
82
+ P8iLE85YLI8ww==
83
+ From: <michitsuna@example.co.jp>
84
+ Content-Type: text/plain;
85
+ charset=utf-8
86
+ Content-Transfer-Encoding: base64
87
+ Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\))
88
+ Subject: Nyaan
89
+ Message-Id: <1DC7AD94-5957-47C5-BF6E-826BE9640EAE@example.co.jp>
90
+ Date: Mon, 28 Jul 2025 15:56:20 +0900
91
+ To: test-of-zhzkndneko@privaterelay.appleid.com
92
+ X-Mailer: Apple Mail (2.3826.400.131.1.6)
93
+
94
+ DQpfX19fX19fX19fX19fX19fX19fX+S4v+W8gOS5gF/kuL/lpKfjgLUv5Lq85LmAX+S4v+WmmdCj
95
+
96
+ --4br8Ql1PsKz1ylgh.1753685793/mbox.example.org--
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sisimai
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - azumakuniyuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-01 00:00:00.000000000 Z
11
+ date: 2025-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -762,6 +762,7 @@ files:
762
762
  - set-of-emails/maildir/bsd/rhost-apple-02.eml
763
763
  - set-of-emails/maildir/bsd/rhost-apple-03.eml
764
764
  - set-of-emails/maildir/bsd/rhost-apple-04.eml
765
+ - set-of-emails/maildir/bsd/rhost-apple-05.eml
765
766
  - set-of-emails/maildir/bsd/rhost-cloudflare-01.eml
766
767
  - set-of-emails/maildir/bsd/rhost-cox-01.eml
767
768
  - set-of-emails/maildir/bsd/rhost-facebook-03.eml