Deferred email with remote protocol error in reply

Henrique de Moraes Holschuh hmh at debian.org
Fri Oct 27 15:33:28 EDT 2006


On Fri, 27 Oct 2006, Wesley Craig wrote:
> The larger problem is that daemons shouldn't be impacted by libraries  
> that inappropriately write to stdout or stderr.  As such, lmtpd  
> should have closed stdin, stdout, stderr and reopening them with,  
> e.g., '/', O_RDONLY.  Accepted connections should not use file  
> descriptors 0, 1, or 2, since those file descriptors are frequently  
> (mis)used by underlying libraries.  This is the fatal error in inetd,  
> and apparently in cyrus master?

Cyrus master has issues with FDs 0,1 and 2 since ancient times.  If anything
in the code, anywhere, closes them and don't reopen them immediately,
something like syslog() or another offender will promptly take them over and
cause a lot of ruckus later.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


More information about the Info-cyrus mailing list