Hi, all,

I want to search a file for decreasingly specific forms of an address that come 
from a given host and do some specialist routing thereafter.  To this end I 
have constructed the following confition:

condition = ${if forany{ \
                          $local_part@$domain:$local_part@:$domain: :} \
                          {bool_lax{ \
                                       
${lookup{${item}@$sender_host_name}dbm{/opt/exim/table.db-exim-admin}
                                    }
                       }
              }

This seems to do what I want to do.  But now I want to change this to be the 
subject of data = and I cannot find a way to get the $value of the first look 
up that succeeds as it get squashed by the bool_lax which seems is needed.

Can anyone advise how to get this?

I want to have the touter's data = $[if forany{... where is searches through 
the file in the order givn in the for any above finding the first one listed so 
I can have

exim@domain@host-abc: [email protected]
exim@@host-abc: [email protected]
domainA@host-abc@ [email protected]

so that I can be as specific or in specific as I choose with a heirarchy which 
get the most specific match.


Regards och Kittos


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to