On 09/08/16 09:57, Cyborg wrote:
> I noticed recently, that exim's mysql queries fail, if the configured
> clamd can't be reached via his socket (because he is offline).


> Exim blames SQL to have not returned data, but it did.
> 
> 
> Here is the rule in question:
> 
>   warn   condition  = ${if eq{$authenticated_id}{} {1}{0}}
>              condition  = ${if forany{<, $recipients}{match{${lookup
> mysql {SELECT 1 FROM ************* }}}{1}} {1}{0}}
>              malware    = *
>              set acl_m_virus = 1
>              log_message    = This message contains a virus
> ($malware_name) forwarding to safemailbox.
>              add_header = X-Virus-Flag: YES
> 
> and if exim processes the conditions in the correct order, mysql comes
> first before clamd even got asked to test it.

Could you reproduce the situation and get a debug-enabled output?
Include acl, expansions and lookups.
-- 
Thanks,
  Jeremy


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to