Customers using our company's products have been finding the following error message when sending messages with image attachments from our devices:
"Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated"
RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies http://www.faqs.org/rfcs/rfc2045.html
states:
(5) Encoded lines must not be longer than 76 characters,
not counting the trailing CRLF. If longer lines are
found in incoming, encoded data, a robust
implementation might nevertheless decode the lines, and
might report the erroneous encoding to the user.
Our devices comply with this RFC to the letter.
Can anyone explain why the Sun Java System SMTP server is rejecting these messages?
If necessary, I can provide network capture files from the connection between our device and an SMTP server.
A sample successful SMTP connection with a Postfix SMTP server follows:
220 doc.doc.pixord.com ESMTP Postfix
EHLO pixord.com
250-doc.doc.pixord.com
250-PIPELINING
250-SIZE 20480000
250-VRFY
250-ETRN
250 8BITMIME
MAIL FROM:
250 Ok
RCPT TO:
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
from:
to:
subject: This is just test.
date: Thu, 05 May 2005 08:10:09 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
.boundary="--=_iMaIl_BoUnDrY_1"
----=_iMaIl_BoUnDrY_1
Content-Type: text/plain;
This is just a test.
----=_iMaIl_BoUnDrY_1
Content-Type: image/jpeg;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
.filename="test.jpg"
/9j/2wCEABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19i
Z2hnPk1xeXBkeFxlZ2MBERISGBUYLxoaL2NCOEJjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Nj
Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY//EAaIAAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKCwEA
----SNIPPED BY ME----
Skz7VZIFMKj0oAgJHoaaSPepyi+lNMYoAhOPWm8eoqYximmP3oA//9k=
----=_iMaIl_BoUnDrY_1--
.
250 Ok: queued as 5AC3815763F
RSET
250 Ok
QUIT
221 Bye
MIME message was snipped by me in order to shorten the message.
I also removed the E-mail addresses.