diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/src/expand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/expand.c b/src/src/expand.c index 10fadfd89..a5ddb277d 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -1672,7 +1672,9 @@ static gstring * authres_iprev(gstring * g) { if (sender_host_name) - return string_append(g, 3, US";\n\tiprev=pass (", sender_host_name, US")"); + return string_append(g, sender_host_address ? 5 : 3, + US";\n\tiprev=pass (", sender_host_name, US")", + US" smtp.client-ip=", sender_host_address); if (host_lookup_deferred) return string_catn(g, US";\n\tiprev=temperror", 19); if (host_lookup_failed) |