From 0ea0fca404813e6c568b02b1d1d068983d055b5d Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 1 Aug 2020 21:16:19 +0100 Subject: SPF: enhance A-R result --- src/src/spf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/spf.c b/src/src/spf.c index 48f26f315..3a1912a91 100644 --- a/src/src/spf.c +++ b/src/src/spf.c @@ -402,8 +402,12 @@ if (spf_result_guessed) g = string_cat(g, US" (best guess record for domain)"); s = expand_string(US"$sender_address_domain"); +if (s && *s) + return string_append(g, 2, US" smtp.mailfrom=", s); + +s = sender_helo_name; return s && *s - ? string_append(g, 2, US" smtp.mailfrom=", s) + ? string_append(g, 2, US" smtp.helo=", s) : string_cat(g, US" smtp.mailfrom=<>"); } -- cgit v1.2.3