[exim] "if or" - joining possibilities

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tomasz Chmielewski
Date:  
À: Exim Users List
Sujet: [exim] "if or" - joining possibilities
I would like to determine the interface by the first match of:

- From: (full email@address)
- From: domain
- Return-path: domain


I have three rules which behave properly (when used separately):

interface = ${if exists {/etc/exim/mailips.conf}{${lookup{${local_part:$h_From:}@${domain:$h_From:}}lsearch*{/etc/exim/mailips.conf}{$value}}}}

interface = ${if exists {/etc/exim/mailips.conf}{${lookup{${domain:$h_From:}}lsearch*{/etc/exim/mailips.conf}{$value}}}}

interface = ${if exists {/etc/exim/mailips.conf}{${lookup{$sender_address_domain}lsearch*{/etc/exim/mailips.conf}{$value}}}}



But I'm not sure how to join them in one.
I'd like the interface to be chosen on the first match (email address, domain, return-path domain).


I know I should start with:

interface = ${if exists {/etc/exim/mailips.conf}

but then, I'm a bit lost and all I get is "failed to expand interface"...


--
Tomasz Chmielewski
http://wpkg.org