diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-08-01 21:16:19 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-08-01 21:16:19 +0100 |
commit | 0ea0fca404813e6c568b02b1d1d068983d055b5d (patch) | |
tree | bd4591d96ea4e8c1bdcf36d3a6cdd71ff41b3b19 /src | |
parent | 980bb6b778928aeb9401bafc9e1a00c184fb5ff0 (diff) |
SPF: enhance A-R result
Diffstat (limited to 'src')
-rw-r--r-- | src/src/spf.c | 6 |
1 files changed, 5 insertions, 1 deletions
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=<>"); } |