summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-04-03 16:33:40 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2022-04-03 16:33:40 +0100
commit99f40596ce0881af49cc8bf61e588cdb55a2af30 (patch)
tree0ded642f2f35b660f46617bda29234b061cf90e3 /doc
parent673fcb1022126588ab5dc3ab2dcfae30a8e78d4d (diff)
Docs: allow for multiple return from dnsdb PTR lookup
Diffstat (limited to 'doc')
-rw-r--r--doc/doc-docbook/spec.xfpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 6c885176f..0ac98d668 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -25508,7 +25508,8 @@ servers or different local IP addresses. For example, if you want the string
that is used for &%helo_data%& to be obtained by a DNS lookup of the outgoing
interface address, you could use this:
.code
-helo_data = ${lookup dnsdb{ptr=$sending_ip_address}{$value}\
+helo_data = ${lookup dnsdb{ptr=$sending_ip_address} \
+ {${listextract{1}{<\n $value}}} \
{$primary_hostname}}
.endd
The use of &%helo_data%& applies both to sending messages and when doing