mail/postfix: Add option to reject unlisted recipients

Đang mở
#5,987 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
1.2k
Fork
932
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opnsense/plugins

Tất cả issue của opnsense/plugins

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.