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