[Exim] Exim FAQ document typo

Top Page
Delete this message
Reply to this message
Author: Liang Du
Date:  
To: exim-users
Subject: [Exim] Exim FAQ document typo
In the configuration cookbook section, there is a } missing just after
"24", it should be like:



${lookup{${mask:$sender_host_address/24}}lsearch*{/path/to/file}}\


Here is the original document.... could you see the difference? :-)





A9812: You cannot do this in a single lookup, because you need separate
lookups for individual addresses and address blocks. However, these
lookups can be nested in a single expansion string. For *example*,
suppose you are using an lsearch file with entries like this:

   192.168.34.35:    4
   192.168.34.0/24:  2
   *:                1


You can use this setting:

   *smtp_accept_max_per_host* = \
     ${lookup{$sender_host_address}lsearch{/path/to/file}\
     {$value}\
     {\
     ${lookup{${mask:$sender_host_address/24}lsearch*{/path/to/file}}\
     }}


Note that the first lookup does /not/ have an asterisk on the search
type. If you have blocks of different sizes (/24, /26, etc) you have to
configure it to do a separate lookup for each size, with just the final
one using a default.

------------------------------------------------------------------------

--
Liang Du
Unix System Administrator
IT Services, University of Dundee
Tel: 01382 34 81 57
Email: l dot du at dundee dot ac dot uk