it is possible to specify a list of servers with an individual query. This is
done by appending a comma-separated option to the query type:
.display
-.endd
&`,servers=`&&'server1:server2:server3:...'&
+.endd
.wen
Each item in the list may take one of two forms:
.olist
You can use &`fail`& instead of {<&'string3'&>} as in a string extract.
+.new
+.vitem &*${listquote{*&<&'separator'&>&*}{*&<&'string'&>&*}}*&
+.cindex quoting "for list"
+.cindex list quoting
+This item doubles any occurrence of the separator character
+in the given string.
+An empty string is replaced with a single space.
+This converts the string into a safe form for use as a list element,
+in a list using the given separator.
+.wen
+
+
.vitem "&*${lookup{*&<&'key'&>&*}&~*&<&'search&~type'&>&*&~&&&
{*&<&'file'&>&*}&~{*&<&'string1'&>&*}&~{*&<&'string2'&>&*}}*&"
This is the first of one of two different types of lookup item, which are both
There can be problems if any of the strings are permitted to contain colon
characters. In the usual way, these have to be doubled to avoid being taken as
-separators. If the data is being inserted from a variable, the &%sg%& expansion
-item can be used to double any existing colons. For example, the configuration
+separators.
+The &%listquote%& expansion item can be used for this.
+For example, the configuration
of a LOGIN authenticator might contain this setting:
.code
-server_condition = ${if pam{$auth1:${sg{$auth2}{:}{::}}}}
-.endd
-For a PLAIN authenticator you could use:
-.code
-server_condition = ${if pam{$auth2:${sg{$auth3}{:}{::}}}}
+server_condition = ${if pam{$auth1:${listquote{:}{$auth2}}}}
.endd
In some operating systems, PAM authentication can be done only from a process
running as root. Since Exim is running as the Exim user when receiving
This option is available when Exim is compiled with SPF support. It
allows the customisation of the SMTP comment that the SPF library
generates. You are strongly encouraged to link to your own explanative
-site. The following placeholders (along with Exim variables) are allowed
-in the template (this list is compiled from the libspf2 sources):
+site. The template must not contain spaces. If you need spaces in the
+output, use the proper placeholder. If libspf2 can not parse the
+template, it uses a built-in default broken link. The following placeholders
+(along with Exim variables (but see below)) are allowed in the template:
.ilist
-&*L*&: Envelope sender's local part.
+&*%_*&: A space.
.next
-&*S*&: Envelope sender.
+&*%{L}*&: Envelope sender's local part.
.next
-&*O*&: Envelope sender's domain.
+&*%{S}*&: Envelope sender.
.next
-&*D*&: Current(?) domain.
+&*%{O}*&: Envelope sender's domain.
.next
-&*I*&: SMTP client Ip.
+&*%{D}*&: Current(?) domain.
.next
-&*C*&: SMTP client pretty IP.
+&*%{I}*&: SMTP client Ip.
.next
-&*T*&: Epoch time (UTC).
+&*%{C}*&: SMTP client pretty IP.
.next
-&*P*&: SMTP client domain name.
+&*%{T}*&: Epoch time (UTC).
.next
-&*V*&: IP version.
+&*%{P}*&: SMTP client domain name.
.next
-&*H*&: EHLO/HELO domain.
+&*%{V}*&: IP version.
.next
-&*R*&: Receiving domain.
+&*%{H}*&: EHLO/HELO domain.
+.next
+&*%{R}*&: Receiving domain.
.endlist
The capitalized placeholders do proper URL encoding, if you use them
-lowercased, no encoding takes place. A note on using Exim variables: As
-currenty the SPF library is initialized already during the EHLO phase,
-the amount of variables available for expansion is quite limited.
+lowercased, no encoding takes place. This list was compiled from the
+libspf2 sources.
+
+A note on using Exim variables: As
+currently the SPF library is initialized before the SMTP EHLO phase,
+the variables useful for expansion are quite limited.
.wen