Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

temp_errors with negative values

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


oyvind.kolbu at usit

Nov 20, 2009, 6:59 AM

Post #1 of 2 (424 views)
Permalink
temp_errors with negative values

Does temp_errors support negative values? I'd like to add -1 to temp_errors, which
is a value sympa might return. As far as I could read the code it does not,
and exim prints
Exim configuration error:
temp_errors must be a list of numbers or an asterisk for the sympa_pipe transport
when setting temp_errors to "temp_errors = -1:73:75".

The following loglines occur without changeing temp_errors:

2009-11-20 13:41:31 1NBSnr-0007gL-Hc failed to read delivery status for |/uio/lister-test/sympa/bin/queue renamed [at] usit:renamed [at] usit from delivery subprocess
2009-11-20 13:41:31 1NBSnr-0007gL-Hc pipe transport process returned non-zero status 0x0100: exit code 1
2009-11-20 13:41:31 1NBSnr-0007gL-Hc == |/uio/lister-test/sympa/bin/queue renamed [at] usit <renamed [at] usit> R=sympa_queue T=sympa_pipe defer (-1)
2009-11-20 15:56:46 1NBUuk-0005mG-SL Frozen

Adding 256 (0x100) to temp_errors does not change the behaviour.

--
Øyvind Kolbu

--
## List details at http://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/


exim-users at spodhuis

Nov 20, 2009, 4:23 PM

Post #2 of 2 (391 views)
Permalink
Re: temp_errors with negative values [In reply to]

On 2009-11-20 at 15:59 +0100, Øyvind Kolbu wrote:
> Does temp_errors support negative values? I'd like to add -1 to temp_errors, which
> is a value sympa might return. As far as I could read the code it does not,

No, programs are constrained to return [0,255] on Unix systems.

> 2009-11-20 13:41:31 1NBSnr-0007gL-Hc failed to read delivery status for |/uio/lister-test/sympa/bin/queue renamed [at] usit:renamed [at] usit from delivery subprocess
> 2009-11-20 13:41:31 1NBSnr-0007gL-Hc pipe transport process returned non-zero status 0x0100: exit code 1

The 0x0100 is the entire response of wait(), which combines exit code
and signal status and more. The bit you should care about is the "exit
code 1" at the end.

The value you need to add to the temp_errors list is "1", not "-1".

> 2009-11-20 13:41:31 1NBSnr-0007gL-Hc == |/uio/lister-test/sympa/bin/queue renamed [at] usit <renamed [at] usit> R=sympa_queue T=sympa_pipe defer (-1)

The -1 there is Exim's ERRNO_UNKNOWNERROR, being negative to avoid the
system errno values (positive). For various errors, there would have
been a more informative message there. In English, that's called a "red
herring". Sorry, you were led astray in an understandable way.

-Phil

--
## List details at http://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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.