Re: [exim] How to trap "command timed out"? (avoid 451 rejec…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jasen Betts
Data:  
Para: exim-users
Assunto: Re: [exim] How to trap "command timed out"? (avoid 451 reject)
On 2019-03-14, Aki Kyo via Exim-users <exim-users@???> wrote:
> Hi,
>
> I'm running a command on a decoded MIME part:
>
> ${run{/path/to/command $mime_decoded_filename}}
>
> In some very rare cases, I get "command timed out" and the message is
> rejected with 451 code
>
> Aside from debugging why it timed out, most important, how can I catch
> this condition so the timed out command doesn't cause a 4xx temporary
> rejection? My command not so important so I want to skip this command
> and accept the message


If you perform an action under a "warn" ACL verb then a temporary
failure of the expansion will not cause the ACL to defer, instead
you get a log line and the ACL will continue at the next verb.

Perhaps you can under a warn "verb" set some ACL variable and then use
an "accept" or "deny" verb to act on the content of the variable. in
the case of a timeout the line with $run will be ignored, so the
variable will be unaltered.


--
When I tried casting out nines I made a hash of it.