mail/postfix: Add option to reject unlisted recipients

オープン
#5,987 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
backend, security

調査の方向性

Start by reading the Postfix plugin's recipient access table implementation and configuration template, then trace how recipient restrictions and smtpd_relay_restrictions are ordered. Review the linked Postfix access documentation and related issue #5535. Done means an optional setting rejects unlisted recipients, including for trusted internal clients, without allowing relay authorization rules to bypass the allowlist.

索引モデルが issue の本文から書いたものです。

説明

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

I'd like to use the Postfix plugin as an SMTP relay for IoT devices and other homelab services. Following the principle of least privilege, these devices should only be able to send notifications to predefined recipients.

The existing recipient access table does not appear to provide an option to reject all unlisted recipients. This means a compromised device could potentially abuse the relay to send emails to arbitrary recipients.

Describe the solution you'd like

Please consider adding an optional "Reject all unlisted recipients" setting.

I believe this could be implemented using the existing recipient access table followed by a reject rule, provided that relay authorization is handled separately in smtpd_relay_restrictions and earlier permit rules cannot bypass the recipient allowlist.

See https://www.postfix.org/SMTPD_ACCESS_README.html

Describe alternatives you've considered

Manually modifying the Postfix configuration template, which unfortunately does not persist across upgrades, as reported in #5907.

Additional context

Related to #5535, which requests changes to restriction ordering. However, my use case requires recipient restrictions to be enforced even for trusted internal clients, along with an option to reject all unlisted recipients.

主要言語
PHP
スター
1.2k
フォーク
932
平均マージ
1日 11時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opnsense/plugins のほかの issue

opnsense/plugins の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。