[SA-exim] Fails to expand

Sander Smeenk ssmeenk+exim-sa at freshdot.net
Fri Jun 6 23:41:48 PDT 2003


Hey,

| SA: PANIC: SAEximRunCond expansion failure on ${if and
| {{def:sender_host_address}{!eq{$sender_host_address}{127.0.0.1}}
| {!eq{$h_X-SA-Do-Not-Run:}{Yes}}{eq{${extract{spamassassin}{${lookup
| {$domain}lsearch{/etc/exim4/policy}}}{$value}{no}}}{yes}}}}
| (but message was accepted)

Why is that ?
If I split the SAEximRunCond line up like so:

|${if
| 	and {
| 		{def:sender_host_Address}
| 		{!eq
| 			{$sender_host_address}
| 			{127.0.0.1}
| 		}
| 		{!eq
| 			{$h_X-SA-Do-Not-Run:}
| 			{Yes}
| 		}
| 		{eq
| 			{${extract{spamassassin}{${lookup{$domain}lsearch{/etc/exim4/policy}}}{$value}{no}}}
| 			{yes}
| 		}
| 	}
|}

It looks sane, right? My {}-matcher finds no disparities :)

The same lookup I do in that last {eq{}{}} block works elsewhere in an ACL.
I copied it 1:1 by cut 'n paste, so I made no typo's.
Exim4 isn't very verbose about WHY it failed expanding, and I would
expect this to be possible...

Any clues?

Sander.
-- 
| I doubt, therefore I might be.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D



More information about the SA-Exim mailing list