From 672c9106917f225fe1b10c3b74459e7669b1e174 Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Sun, 2 Feb 2025 04:53:14 +0100 Subject: [PATCH] Add special discard address --- templates/postfix/main.cf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/postfix/main.cf.j2 b/templates/postfix/main.cf.j2 index 4330fa3..f4478ae 100644 --- a/templates/postfix/main.cf.j2 +++ b/templates/postfix/main.cf.j2 @@ -84,6 +84,9 @@ smtpd_sender_login_maps = pgsql:/etc/postfix/pgsql/virtual_sender_maps.cf smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth +# Special address that discards all mails +transport_maps = inline:{discard@{{ inventory_hostname }}=discard:} + # PostSRS integration sender_canonical_maps = tcp:localhost:10001 sender_canonical_classes = envelope_sender