[exim] "if or" - joining possibilities

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tomasz Chmielewski
日付:  
To: Exim Users List
題目: [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