Re: [exim] How to set timeout for command invoked in acl_dat…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Odhiambo Washington
Data:  
Para: Marcin Mirosław
CC: exim-users
Asunto: Re: [exim] How to set timeout for command invoked in acl_data
2010/8/17 Marcin Mirosław <marcin@???>

> Hi!
> In acl_check_data are lines:
> warn
> message = ${run{/usr/local/bin/dspam-wrapper.sh
> ${spool_directory}/scan/${message_id}/${message_id}.eml }{$value}{$value}}
>
> For a mails containing huge number of words, dspam needs above one, two
> minutes to check mail. It seems that exim has timeout for run expansion
> equal to one minute. In logs i'm getting:
> failed to expand ACL message "${run{/usr/local/bin/dspam-wrapper.sh
> ${spool_directory}/scan/${message_id}/${message_id}.eml
> }{$value}{$value}}": command timed out
>
> Setting local_scan_timeout=10m doesn't change behavior (and probably
> this is right:) ).
> Is possible to change timeout for expansion variable in acl ?
>
>

Do you have a limitation as to the message size that you send to this acl?
Since DSPAM is for spam scanning, I suggest that you limit the message size
being scanned to, say, 128k, viz:

condition = ${if <{$message_size}{128k}{1}{0}}

You can make that 256 if you have increased levels of paranoia:-)


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
               -- Lucky Dube