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