[SA-exim] SAEximRunCond question

Marc MERLIN marc at merlins.org
Sat Dec 29 09:08:29 PST 2007


On Sat, Dec 29, 2007 at 03:19:26PM +0100, Erwin Ambrosch|XHOSTPLUS wrote:
> Marc MERLIN schrieb:
>> On Thu, Dec 27, 2007 at 12:51:16AM +0100, Erwin Ambrosch|XHOSTPLUS wrote:
>>   
>>> Hi,
>>>
>>> is it possible that SAEximRunCond is getting a value of '0' for mails 
>>> where the From  field is as follows:
>>>
>>>  From <>
>>>
>>> I got some Mails with "From <>" and for all of them the mainlog keeps 
>>> lines like the following:
>>>
>>> Debug: SAEximRunCond expand returned: '0'
>>> Not running SA because SAEximRunCond expanded to false (Message-Id: 
>>> 1J6NYu-0004mr-2j). From <> (host=NULL [82.150.180.249]) for . . . . . .
>>>     
>> Well, the first obvious question is what do you have SAEximRunCond set
>> to in your config file?
>>   
> This is my setting for SAEximRunCond:
>
> SAEximRunCond: ${if and { {def:sender_host_address} {!eq 
> {$sender_host_address}{127.0.0.1}} {!eq 
> {$sender_host_address}{192.168.1.10}} {!eq 
> {$sender_host_address}{192.168.1.11}} {!eq 
> {$sender_host_address}{192.168.1.12}} {!eq 
> {$sender_address_domain}{${lookup pgsql {SELECT DISTINCT email_domain FROM 
> xhost_email_domain WHERE email_domain='$sender_address_domain'}}}} {!eq 
> {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}}

Well, it does look like your problem is in the mysql expression here.

If $sender_address_domain, you're querying your xhost_email_domain for
an empty string when you get "mail from: <>"
I'm going to guess that your SQL expression matches there.

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/



More information about the SA-Exim mailing list