# DiscourseとStalwart-mailによる完全独立メール

**URL:** <https://meta.discourse.org/t/fully-independent-email-with-discourse-and-stalwart-mail/314490>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2024 年 7 月 1 日午後 5:41 UTC](https://meta.discourse.org/t/fully-independent-email-with-discourse-and-stalwart-mail/314490 "2024-07-01T17:41:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [2025 年 1 月 31 日午前 9:24 UTC](https://meta.discourse.org/t/fully-independent-email-with-discourse-and-stalwart-mail/314490/5 "2025-01-31T09:24:47Z")

</div>

ここ数ヶ月、Stalwart-mail を Discourse と組み合わせて排他的に使用してきましたが、見事に機能しています。Submission (ポート 587、STARTTLS 付き) と Submissions (ポート 465、TLS 付き) の両方を使用できます。特別な設定やセットアップは必要ありません。

ただし、ドメインの DNS レコードの設定は 2 段階のプロセスであることに注意してください。

1. まず、Directory にドメイン名を追加します。これにより、DNS ゾーンファイルに追加するリソースレコードが取得されます。
2. DNS が更新されたら、そのドメインの TLS プロバイダーを作成します。次のホスト名を追加する必要があります: `mail`、`autoconfig`、`autodiscover`、および `mta-tls` (ドメインを付加したもの、例: `mail.example.org`)。\[1\]
3. しばらくすると (数秒から数分)、内部 ACME プロバイダーが変更を検出し、TLS 証明書を取得します。この時点で、ドメイン構成はレコードを更新します: 新しい ID を持つ `_mta-tls` RR と、すべての `_tlsa` レコードを選択し、ゾーンファイルに追加すれば完了です。

Stalwart-mail には、非常に強力なスパムフィルターと統合された fail2ban 機能 (認証に失敗した IP アドレスや不正な URI を要求した IP アドレスを禁止する) が付属しています。

* * *

1. 最小限の Stalwart-mail + Discourse セットアップでは、`autoconfig` も `autodiscover` も必要ない可能性が高いです。これらは IMAP クライアントに役立つためです。

---

_[View the full topic](https://meta.discourse.org/t/fully-independent-email-with-discourse-and-stalwart-mail/314490)._
