I'm using qmail and vpopmail in a rather large environment. I've always got several hundred messages in my queues because of unparsable header fields.

delivery 50391: deferral: qmail-inject:_fatal:_unable_to_parse_this_line:/Return-Path:_Received:_from_wctc.net.airstream.mail8.psmtp.com_(wctc.net.airstream.mail8.psmtp.com_[63.240.161.100])_by_mx1.extreme-hosting.net_with_smtp;_mrt,_24_2006_3:13:50_-0100/system_error/


I do not want to fixup broken messages with new-inject, and I because qmail-inject is giving a fatal error, vdelivermail should also.

Is this patch correct?

--- vdelivermail.c.orig Fri Mar 24 16:15:12 2006
+++ vdelivermail.c      Fri Mar 24 16:34:20 2006
@@ -667,13 +667,13 @@
           printf ("write to qmail-inject failed: %d\n", errno);
           close(fdm);
           waitpid(inject_pid,&child,0);
-          vexiterr (EXIT_DEFER, "system error");
+          vexiterr (child, "system error");
       }

       close(fdm);
       waitpid(inject_pid,&child,0);
       if (wait_exitcode(child) == 0) return;
-      vexiterr (EXIT_DEFER, "system error");
+      vexiterr (child, "system error");
     }
 }

--

Jeremy Kister
http://jeremy.kister.net./

Reply via email to