[exim] Assistance requested with $if foray{...

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Robert Bannocks
Ημερομηνία:  
Προς: exim-users@exim.org
Αντικείμενο: [exim] Assistance requested with $if foray{...
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: recipient1@???
exim@@host-abc: recipient2@???
domainA@host-abc@ recipient3@???

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