mail/postfix: Add option to reject unlisted recipients

Abierto
#5,987 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php
Área
backend, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PHP
Estrellas
1.2k
Forks
932
Merge medio
1 d 11 h
PR fusionados (30 d)
22

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de opnsense/plugins

Todos los issues de opnsense/plugins

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.