echo: add echo@ to passthrough_senders in default config

This commit is contained in:
missytake
2025-04-18 14:36:46 +02:00
parent fe38fcbeba
commit 0125dda6d7
4 changed files with 4 additions and 4 deletions

View File

@@ -116,6 +116,7 @@ def get_default_config_content(mail_domain, **overrides):
lines = []
for line in content.split("\n"):
for key, value in privacy.items():
value = value.format(mail_domain=mail_domain)
value_lines = value.strip().split("\n")
if not line.startswith(f"{key} =") or not value_lines:
continue

View File

@@ -262,8 +262,7 @@ class OutgoingBeforeQueueHandler:
return
passthrough_recipients = self.config.passthrough_recipients
passthrough_recipients.append("echo@" + self.config.mail_domain)
for recipient in envelope.rcpt_tos:
if recipient_matches_passthrough(recipient, passthrough_recipients):
continue

View File

@@ -43,7 +43,7 @@ passthrough_senders =
# list of e-mail recipients for which to accept outbound un-encrypted mails
# (space-separated, item may start with "@" to whitelist whole recipient domains)
passthrough_recipients = xstore@testrun.org
passthrough_recipients = xstore@testrun.org echo@{mail_domain}
#
# Deployment Details

View File

@@ -1,7 +1,7 @@
[privacy]
passthrough_recipients = privacy@testrun.org xstore@testrun.org
passthrough_recipients = privacy@testrun.org xstore@testrun.org echo@{mail_domain}
privacy_postal =
Merlinux GmbH, Represented by the managing director H. Krekel,