On Sun, May 25, 2008 at 05:08:48PM -0700, Claude Rubinson wrote:
> On Mon, May 26, 2008 at 01:38:11AM +0200, Josip Rodin wrote:
> > Can you provide a log entry or test data?
> 
> An example from /var/log/mail.log:
> 
> May 19 21:30:55 wagner postfix/local[29240]: BFCF99994D: to=<[EMAIL 
> PROTECTED]>, relay=local, delay=3.3, delays=0.11/0/0/3.2, dsn=4.3.0, 
> status=deferred (temporary failure. Command output: ERR: authdaemon: 
> s_connect() failed: No such file or directory maildrop: error writing to 
> mailbox. /usr/bin/maildrop: Unable to deliver to mailbox. )
> 
> Piping via cc and to consistently fails with PDF attachments.

Ah, that's better, I tried piping through a mail with a PDF attachment
myself and it does seem to fail:

% cat mailfilter.bug332543
cc "|/bin/true"
% maildrop -V2 mailfilter.bug332543 < testmailpdf
Message start at 34 bytes, envelope sender=joy
maildrop: Attempting mailfilter.bug332543
maildrop: Delivering to |/bin/true
maildrop: error writing to mailbox.
maildrop: Unable to deliver to mailbox.
% echo $?
75

My file happened to be 630KB. strace reveals that it happens because the
child process exits before all the data from maildrop's write() call gets
through, which produces an EPIPE and the temporary error exit.

To which program are you piping your messages, just in case it matters?

-- 
     2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to