Re: [exim] Problems with database access when clamd socket f…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: Re: [exim] Problems with database access when clamd socket fails
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