I would like to determine the interface by the first match of:

- From: (full em...@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

-- 
## List details at http://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