Exim conditions issue

kren

New member
Joined
Oct 19, 2009
Messages
2
Hello,

I'm goning to scan message content with spamassasin at ACL time with acl_smtp_data ACL. Everything OK with that, and then I need to check if sender's email address is in whitelist and depending on that to do something.

I(exim) can't do that check at acl_smtp_data ACL time, so I'm doing it at transporters in virtual_localdelivery transporter. The problem is that a can't pass condition and I can't manage why. Example condition:

Code:
${if and 
{
	{ !eq{${lookup{$sender_address} lsearch{/etc/virtual/$domain/whitelist}}}{$sender_address}}
	{ >{$spam_score_int}{100}}
}
{<string1>} {<string2>}
}

If score more than 100 and sender not in white list exim should expand STRING1, if score more than 100 and sender's address not in whitelist it should expand STRING2. The problem is that I can't pass
Code:
	{ !eq{${lookup{$sender_address} lsearch{/etc/virtual/$domain/whitelist}}}{$sender_address}}
condition(it always chooses <string1>) no matter what. Can anyone help with that?

P.S It also doesn't matter how i'm using lookup, i tryed to use it with eq, match or just lookup itself...
 
Last edited:
Back
Top