Re: Mail attachements truncated Jakub Nadolny:
> On Sun, Feb 10, 2008 at 01:48:49PM -0500, Wietse Venema wrote:
> > Wietse Venema:
> > > > postfix/smtpd[15907]: rec_put: type N len 76 data KiYsKiYvLC
> > > > postfix/smtpd[15907]: rec_put: type N len 76 data KiYsLCYsLC
> > > > postfix/smtpd[15907]: rec_put: type N len 76 data LyYxMSY1LC
> > > > postfix/smtpd[15907]: rec_put: type N len 76 data MSoxMSYxMS
> > > > postfix/smtpd[15907]: rec_put: type N len 16 data saSttKmuta
> > > > postfix/smtpd[15907]: rec_put: type X len 0 data 
> > > > postfix/smtpd[15907]: rec_put: type E len 0 data 
> > 
> > On closer investigation, This is the delivery of a truncated
> > attachment.
> > 
> >  1) Postfix receives a line of text with "." and nothing else.
> >     This follows from the presence of a type 'X' output record that
> >     marks the end of the message content. The SMTP server does not
> >     write an 'X' records when a connection is dropped in the middle
> >     of delivery.
> 
> That sounds a bit mysterious. I can not imagine why does it happen just
> for this Internet provider... Is there any way to configure postfix that
> such e-mail will be rejected with some information send back to sender?

ALL email deliveries via SMTP end with a line of text with "." and
nothing else.  If you reject such mail, then you could just as well
turn your mail server off.

	Wietse

> >  2) The last line (16 bytes) is not a MIME terminator. A valid
> >     MIME terminator would start (and end) with "--". Instead, the
> >     client sends a line with "saSttKmuta??????" where the ? stands
> >     for data that Postfix omitted from the logging.
> 
> Yes, this is right. Attached file is just cut.
> 
>


