Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
OpenARCのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
OpenARC
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:メールサーバー]] [[en:OpenARC]] [https://github.com/trusteddomainproject/OpenARC OpenARC] は、実験的な [[Wikipedia:Authenticated_Received_Chain|Authenticated Received Chain]] (ARC) メール認証システムのオープンソース実装であり、メーリングリストや転送サービスのような中間メールサーバーが、メールの元の認証結果に署名できるように設計されています。 ARC は、Microsoft、Google、Fastmail、Proton Mail を含む、ほとんどの一般的なメールプロバイダーによってサポートされています。 == 概念 == DMARC は、送信者のドメインが SPF および/または DKIM によって保護されたメッセージを示し、メッセージの SPF および/または DKIM のチェックに失敗した場合に受信サーバーがどのような措置を取るべきかを示します(たとえば、受信サーバーはメッセージを拒否することができます)。 しかし、メールがメーリングリストやメールフォワーダーを通じて送信される場合、中間サーバーがメッセージに加えた変更のために DKIM または SPF のチェックが失敗する可能性があります。合法的なメッセージのこのような失敗を防ぐために、ARC が作成されました。 ARC は ARC ヘッダーを使用してメッセージに再署名します。これらのヘッダーにより、誰がメッセージを変更したか、および中間サーバーによる変更前の認証状態を知ることができます。 中間サーバーによるメッセージの変更後に SPF および/または DKIM のチェックが失敗する場合(上記参照)、有効な ARC チェーンがあれば、受信サーバーはそれを信頼していれば、メッセージを通過させることができます。ARC チェーンにより、受信メールサーバーは(古い)SPF および DKIM の結果を抽出してチェックに合格させることができます。 詳細については [[RFC:8617|RFC 8617]] を参照してください。 == インストール == {{AUR|openarc}} パッケージを[[インストール]]してください。 == 設定 == 署名サービスのメイン設定ファイルは {{ic|/etc/openarc/openarc.conf}} です。 * 空の設定ファイル {{ic|/etc/openarc/openarc.conf}} を作成するか、サンプル設定ファイル {{ic|/usr/share/doc/openarc/openarc.conf.sample}} を {{ic|/etc/openarc/openarc.conf}} にコピーまたは移動し、以下のオプションを変更または追加します(詳細は {{ic|openarc.conf(5)}} を参照): {{hc|/etc/openarc/openarc.conf| PidFile /run/openarc/openarc.pid UserID openarc:openarc Socket local:/run/openarc/openarc.sock Mode sv Canonicalization relaxed/simple Domain example.com Selector myselector KeyFile /etc/openarc/keys/myselector.private }} * ソケットアドレスは {{ic|/etc/postfix/main.cf}} で指定されているものです。これが {{ic|/etc/postfix/main.cf}} に含まれるべき内容です: {{hc|/etc/postfix/main.cf|2= smtpd_milters = unix:/run/opendkim/opendkim.sock unix:/run/openarc/openarc.sock non_smtpd_milters = $smtpd_milters milter_default_action = accept }} * 秘密署名キーを生成するには、メールを送信するドメインと、キーを参照するために使用するセレクタを指定します。セレクタは任意の値です。RFC で詳細が説明されていますが、英数字の文字列で問題ありません: # opendkim-genkey -D /etc/openarc/keys -r -s myselector -d example.com # chown -R openarc /etc/openarc/keys * syslog へのロギングを有効にする場合は、次のようにします: {{hc|/etc/openarc/openarc.conf| ... Syslog yes ... }} * OpenARC に署名するヘッダーを設定するには、例えば次のようにします: {{hc|/etc/openarc/openarc.conf| ... SignHeaders to,subject,message-id,date,from,mime-version,dkim-signature,arc-authentication-results ... }} * PeerList には、このフィルターによって署名または検証されるべきではない IP アドレス、CIDR ブロック、ホスト名、またはドメイン名のリストが含まれています。これは、例えば、あなたのローカルメールを除外するために使用することができます。このファイルは、存在しない場合に作成する必要があります。 {{hc|/etc/openarc/openarc.conf| ... PeerList /etc/openarc/PeerList ... }} * その他の設定オプションも利用可能です。ドキュメントを必ず読んでください。 * {{ic|openarc.service}} を[[有効化/起動]]してください。 == Postfix との統合 == ARC を unix ソケットを使用して統合するには、postfix ユーザーを openarc グループに追加し、OpenARC および Postfix の設定ファイルを次のように編集します: {{hc|/etc/openarc/openarc.conf| UserID openarc:openarc Socket local:/run/openarc/openarc.sock }} {{hc|/etc/postfix/main.cf|2= smtpd_milters = unix:/run/opendkim/opendkim.sock unix:/run/openarc/openarc.sock non_smtpd_milters = $smtpd_milters }} == Security == {{Note|This section is copied from the [[OpenDKIM#Security]]}} The default configuration for the OpenARC daemon is less than ideal from a security point of view (all those are minor security issues): * The OpenARC daemon does not need to run as {{ic|root}} at all (the configuration suggested earlier will have OpenARC drop {{ic|root}} privileges by itself, but systemd can do this too and much earlier). * If your mail daemon is on the same host as the OpenARC daemon, there is no need for localhost tcp sockets, and unix sockets may be used instead, allowing classic user/group access controls. * OpenARC is using the {{ic|/tmp}} folder by default whereas it could use its own folder with additional access restrictions. The following configuration files will fix most of those issues (assuming you are using Postfix) and drop some unnecessary options in the systemd service unit. First, create a missing directory: # mkdir /var/lib/openarc Then: {{hc|/etc/openarc/openarc.conf| BaseDirectory /var/lib/openarc Domain example.com KeyFile /etc/openarc/keys/myselector.private Selector myselector Socket local:/run/openarc/openarc.sock Syslog Yes TemporaryDirectory /run/openarc }} {{hc|/etc/systemd/system/openarc.service|2= [Unit] Description=OpenARC daemon After=network.target remote-fs.target nss-lookup.target [Service] Type=forking User=openarc Group=openarc ExecStart=/usr/bin/openarc -c /etc/openarc/openarc.conf RuntimeDirectory=openarc RuntimeDirectoryMode=0700 [Install] WantedBy=multi-user.target }} Edit {{ic|/etc/postfix/main.cf}} accordingly to make Postfix listen to this unix socket: {{hc|/etc/postfix/main.cf|2= smtpd_milters = unix:/run/opendkim/opendkim.sock unix:/run/openarc/openarc.sock non_smtpd_milters = $smtpd_milters }} == See also == * [https://arc-spec.org/ ARC Specification for Email] * [https://support.google.com/a/answer/13198639?sjid=11753547348378417451-EU ARC email authentication - Google Workspace Admin Help] * [https://proton.me/blog/what-is-authenticated-received-chain-arc "What is Authenticated Received Chain (ARC) and why does it matter?" by Proton Mail] * [https://www.fastmail.com/blog/what-is-arc/ What is ARC - by Fastmail] * [https://postmarkapp.com/blog/what-is-arc-or-authenticated-received-chain What is ARC - b y Postmarkapp]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:TranslationStatus
(
ソースを閲覧
)
OpenARC
に戻る。
検索
検索
OpenARCのソースを表示
話題を追加