Bug#446346: exim4-config: incorrect condition in new configuration files causing bounced email

Andreas Metzler ametzler at downhill.at.eu.org
Fri Oct 12 17:29:58 UTC 2007


On 2007-10-12 Hamish Moffatt <hamish at debian.org> wrote:
> Package: exim4-config
> Version: 4.68-1
> Severity: grave
> Justification: causes non-serious data loss

> After upgrading exim4-config to 4.68-1 this morning I'm getting a lot of
> messages bounced, with the following in the paniclog:

> 2007-10-12 20:59:41 1IgIEv-0005de-Ep failed to expand condition "${if ${match_ip{$sender_host_address}{:@[]}}{1}{0}}" for real_local router: condition name expected, but found "${match_ip{$send"

> This comes from the new conf.d/router/300_exim4-config_real_local:

> COND_LOCAL_SUBMITTER = "\
>                ${if {match_ip{$sender_host_address}{:@[]}}\
>                     {1}{0}\
> 		}"

> I don't know in what way this is wrong but I've disabled the condition
> for now. 

> I have "deliver real-hamish" at the end of my .forward which is
> triggering this. I guess nobody else does this as nobody has reported it
> until now.
[...]

looks like there are too many curly braces, I think this should work:

> COND_LOCAL_SUBMITTER = "\
>                ${if match_ip{$sender_host_address}{:@[]}\
>                     {1}{0}\
> 		}"

thanks for the report, cu andreas
-- 
ametzler at m26s25:~$ /usr/sbin/exim4 -be
> ${if {match_ip{123.45.67.78}{:@[]}}{1}{0}}
Failed: condition name expected, but found "{match_ip{123.45"
> ${if match_ip{123.45.67.78}{:@[]}{1}{0}}
0





More information about the Pkg-exim4-maintainers mailing list