Re: [exim] Disk failure => 5xx error code

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: John Rowe
CC: exim-users
Asunto: Re: [exim] Disk failure => 5xx error code
On Wed, 19 Apr 2006, John Rowe wrote:

> The question is, can we handle a partial machine failure in a way that
> is on balance better than what happens at the moment, given that 99.99%
> of the time the machine isn't broken. Hence my suggestion of a
> conservative test and a cautious response. It's a case of working out
> the circumstances in which exim can return a hard error, asking "can we
> be pretty sure this is a machine problem?" and if so converting it to a
> soft error and logging the incident (to detect false positives).


It occurs to me that

  errno = 0
  call tcpwrappers
  if result is "reject" then
    if errno = 0 or errno = ENOENT then reject 5xx
    else reject 4xx
  fi


is simple, and probably "does the right thing mostly".        


Philip

--
Philip Hazel, University of Cambridge Computing Service.