mail/postfix: Add option to reject unlisted recipients

Aperta
#5,987 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
1.2k
Fork
932
Merge medio
1g 11h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opnsense/plugins

Tutte le issue di opnsense/plugins

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.