From 9f4bcf6741a92e435f043f62b3de65d1e85835ea Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Tue, 28 Jul 2026 13:52:05 +0200 Subject: [PATCH] tests: classify SMTP relay clients as remote --- contrib/testing/smtp-forward-metadata-check.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/testing/smtp-forward-metadata-check.py b/contrib/testing/smtp-forward-metadata-check.py index cf25c76..8231112 100755 --- a/contrib/testing/smtp-forward-metadata-check.py +++ b/contrib/testing/smtp-forward-metadata-check.py @@ -371,10 +371,11 @@ def validate_xforward(delivery: Delivery) -> None: raise SMTP22Error( f"expected one XFORWARD command, received {commands!r}") command = commands[0] - for attribute in ("ADDR=", "PORT=", "IDENT=", "SOURCE=LOCAL"): + for attribute in ("ADDR=", "PORT=", "IDENT=", "SOURCE=REMOTE"): if attribute not in command: raise SMTP22Error( - f"XFORWARD omitted advertised attribute {attribute}") + f"XFORWARD omitted advertised attribute {attribute}: " + f"{command!r}") for attribute in ("PROTO=", "HELO=", "LOGIN=", "DESTADDR=", "DESTPORT="): if attribute in command: raise SMTP22Error(