On Sat, Dec 03, 2005 at 06:04:44PM +0100, Thomas Mueller wrote:
> In the DATA ACL I'd like to do this:
> accept
> condition = ${if match_domain{$acl_m0}{+relay_to_domains}{yes}{no}}
> But the condition for the accept is never true, domains in
> relay_to_domains get virus scanned too.
> The logwrite logs the right domain, relay_to_domains works wherever I
> use it as expected. So the pieces are ok but they don't work together
> and I have no idea why. What's wrong?
This may be totally unrelated, but I literally spent 3 hours the other
day tracking down a problem in a server_condition statement in the
authenticators section of Exim, and eventually tracked it to a
match_domain statement that wasn't working properly.
No matter what I did, I could not get the match_domain statement to
properly read the $1, $2 or $3 variables. I'm not sure if the
match_domain statement has problems reading variables, or perhaps it
simply overwrites the $1/$2/$3 variables during the matching process.
I finally gave up and went back to using an lsearch. I didn't report
it as a bug because I wasn't confident enough to determine whether
or not match_domain overwrites $1/$2/$3 variables or not.
If it doesn't, perhaps there is some other issue going on with match_domain.
--
Dean Brooks
dean@???