Re: [exim] Is there any way to get exim to display the exapn…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Phil Pennock
Datum:  
To: Ritchie P. Fraser
CC: exim-users@exim.org
Betreff: Re: [exim] Is there any way to get exim to display the exapnded list returned from a pgsql lookup?
On 2014-02-11 at 12:16 +0000, Ritchie P. Fraser wrote:
> Have I done something REALLY stupid like missed curly braces in the condition = statement?
>
>                 I have tried the following:
>                 condition     = ${if inlist{$sender_address_domain}{+our_sql_maildomains}{false}{true}}
>                 condition     = ${if !inlist{$sender_address_domain}{+our_sql_maildomains}{true}{false}}
>                 condition     = ${if !inlist{$sender_address_domain}{+our_sql_maildomains}}
>                 !condition     = ${if inlist{$sender_address_domain}{+our_sql_maildomains}{true}{false}}
>                 !condition     = ${if inlist{$sender_address_domain}{+our_sql_maildomains}}


inlist{FOO}{BAR} treats BAR as a list of simple strings; it doesn't take
domainlists. You want match_domain instead.

condition = ${if !match_domain{$sender_address_domain}{+our_sql_maildomains}}

-Phil