From: Jeremy Harris Date: Sun, 17 Nov 2024 19:34:32 +0000 (+0000) Subject: Docs: change example from match (RE) to match_ip (IP list) X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/347d8633fd5ff7e85fd0f27444d6d1260c2212de?ds=sidebyside Docs: change example from match (RE) to match_ip (IP list) Some people find REs difficult to read --- diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 8674cfa43..1f90d6c86 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -19724,8 +19724,8 @@ real_localuser: For security, it would probably be a good idea to restrict the use of this router to locally-generated messages, using a condition such as this: .code - condition = ${if match {$sender_host_address}\ - {\N^(|127\.0\.0\.1)$\N}} + condition = ${if match_ip {$sender_host_address} \ + {<; ; 127.0.0.1 ; ::1}} .endd If both &%local_part_prefix%& and &%local_part_suffix%& are set for a router, @@ -22467,8 +22467,8 @@ real_localuser: For security, it would probably be a good idea to restrict the use of this router to locally-generated messages, using a condition such as this: .code - condition = ${if match {$sender_host_address}\ - {\N^(|127\.0\.0\.1)$\N}} + condition = ${if match_ip {$sender_host_address} \ + {<; ; 127.0.0.1 ; ::1}} .endd