I have qmail 1.03 on a Sparc with Solaris 2.5.1.  For various
reasons, we had to stick with mailboxes in /var/spool/mail, and use
the following as a qmail-start script:
                exec env - PATH="/var/qmail/bin:$PATH" \
                qmail-start \
                '|preline -f /bin/mail -f "${SENDER:-MAILER-DAEMON}" -d "$USER"' \
                splogger qmail
        Nearly everything works fine... people get their mail delivered,
but every now and then, delivery would fail, with this in the log:
                Mar 10 09:43:51 netralink qmail: delivery 559: failure:
                mail:_Temporary_file_problem/mail:_Mail_saved_in_dead.letter/
                        preline:_fatal:_unable_to_copy_input:_broken_pipe/did_0+0+1/
        The only thing in common about the messages that failed were that
most had big attachments.  Searching the list, i saw that this usually
happened when the program reading from preline stopped before the end of
preline's output.  The sugessted fix was to add an "|| exit 0" to the end
of the preline invocation, above... i done that, and the messages
continued to fail, with the following:
                Mar 10 16:01:38 netralink qmail: delivery 142: success:
                mail:_Temporary_file_problem/mail:_Mail_saved_in_dead.letter/did_0+0+1/
        Only the preline part of the error went away (or was not being
logged anymore).
        The dead.letter is saved on the user's homedir, with size 0.
We've never had this type of problem with sendmail before, using /bin/mail
as a delivery agent.

        Anyone have a fix for this?

Thanks,
Cristiano Lincoln Mattos
System Administrator - Hotlink

Reply via email to