Subject: Problem with a 8 bit SMTP negotiation

From: Murphy <[email-masked]>
Date: Fri, 29 Mar 2002 17:05:16 +0100 (MET)

Hi,

I have set the [X]  enable-8bit-esmtp-negotiation and I know that the
SMTP server which is used to send a e-mail is able to use 8bit. I
checked it using a command line way from a shell:

	echo "ąćąćą" | mailx piotr

I got an email like this:

  Return-Path: <[email-masked]>
  Received: from caladium.sonytel.be (mail.sonytel.be [10.17.0.27])
          by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id QAA13963
          for <[email-masked]>; Fri, 29 Mar 2002 16:46:47 +0100 (MET)
  Received: (from piotr@localhost)
          by caladium.sonytel.be (8.10.2+Sun/8.9.3) id g2TFkl100015
          for piotr; Fri, 29 Mar 2002 16:46:47 +0100 (MET)
  Date: Fri, 29 Mar 2002 16:46:47 +0100 (MET)
  From: Piotr Martyniuk <[email-masked]>
  Message-Id: <[email-masked]>
  To: [email-masked]

  ąćąćą

When I'm using the Pine 4.40 for this same type of e-mail, the Pina
can't negotiate 8bit and always use the QUOTED-PRINTABLE method to send
this message:

  Return-Path: <[email-masked]>
  Received: from caladium.sonytel.be (mail.sonytel.be [10.17.0.26])
          by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id OAA05334
          for <[email-masked]>; Fri, 29 Mar 2002 14:46:17 +0100 (MET)
  Received: from localhost (piotr@localhost)
          by caladium.sonytel.be (8.10.2+Sun/8.9.3) with ESMTP id g2TDkG028186
          for <[email-masked]>; Fri, 29 Mar 2002 14:46:16 +0100 (MET)
  X-Authentication-Warning: caladium.sonytel.be: piotr owned process doing -bs
  Date: Fri, 29 Mar 2002 14:46:16 +0100 (MET)
  From: Piotr Martyniuk <[email-masked]>
  X-X-Sender: [email-masked]
  To: Piotr Martyniuk <[email-masked]>
  Subject: ufyf
  Message-ID: <[email-masked]>
  X-Message-Flag: For the Outlook the PIM means Poorly Implemented Mailer!
  X-Accepted-File-Formats: ASCII .rtf .ps .html - *NO* MS Office files please.
  MIME-Version: 1.0
  Content-Type: TEXT/PLAIN; charset=iso-8859-2
  Content-Transfer-Encoding: QUOTED-PRINTABLE

  ąćęś

The problem is that some of my recipients can't handle correctly the
e-mails were they contain a QUOTED-PRINTABLE encoded content. From my
possition I have no idea how to force a Pine to use 8bit explicitly, or
use the external program for sending the emails. I found only the
"sending filters" which are not designed for such tasks.

Is there a chance to send a text content with other set of chars
using 8bit encoding method?

Regards,
Murphy

-- 
  __   __
  ||   ||
 -++- -++- --------------------------------------------------------
  ||\ /||  e-mail: [email-masked]           GG 107745
  ||   ||  Everything is possible - this is only a question of time
  \/564\/  --------------------------------------------------------

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Mats Dufberg <[email-masked]>
Date: Fri, 29 Mar 2002 17:31:03 +0100 (CET)

On Mar 29, 2002, 17:05 (+0100) Murphy <[email-masked]> wrote:

> 	echo "±æ±æ±" | mailx piotr
>
>   ±æ±æ±

What mailx and your server does is to let the 8 bit codes pass without any
character set information (that is, they are not characters, just code
points). Note that there is no MIME version information.

That mail is against the mail protcol, because the only legal way to send
mail with other character sets than ASCII is to send them according to the
MIME protocol (which permits 8 bit code points).

> can't negotiate 8bit and always use the QUOTED-PRINTABLE method to send

No, I do not think that is a correct interpretation. My guess is that the
SMTP server does not signal that it is prepared to accept 8 bit code
points according to the ESMTP extentions of SMTP.

>   MIME-Version: 1.0

Must exist in a mail according to the MIME protocol, which is the only
legal way to send anything but ASCII characters.

Mats

-----------------------------------------------------------------
Mats Dufberg                                 [email-masked]
Blåarvsgränd 42                                    +46-8-38 48 59
SE-162 45 Vällingby, Sweden                       +46-70-258 2588

---

From: Jacob Morzinski <[email-masked]>
Date: Fri, 29 Mar 2002 13:07:56 -0500 (EST)

> points according to the ESMTP extentions of SMTP.

I looked into this only far enough to see that mail.sonytel.be
does in fact give a 250 "8BITMIME" answer in response to an EHLO
verb; that response suggests that the server *is* prepared to do
8-bit communication.

Perhaps you could run pine with a high level of debugging output,
and examine the debug log to see what pine does when it sends
mail.  If I run "pine -d 7", my log (~/.pine-debug1) has lines of
the form:

 IMAP DEBUG 12:59:27 3/29: EHLO localhost
 [...]
 IMAP DEBUG 12:59:27 3/29: 250-8BITMIME
 [...]
 IMAP DEBUG 12:59:27 3/29: MAIL FROM:<[email-masked]>
 IMAP DEBUG 12:59:27 3/29: 250 <[email-masked]>... Sender ok
 IMAP DEBUG 12:59:27 3/29: RCPT TO:<[email-masked]>
 IMAP DEBUG 12:59:27 3/29: 250 <[email-masked]>... Recipient ok
 IMAP DEBUG 12:59:27 3/29: DATA

For comparison, rfc1652 specifies that an 8BITMIME communication
needs to specify "BODY=8BITMIME" with the MAIL FROM command:

       		  C: EHLO ymir.claremont.edu
       		  S: 250-dbc.mtview.ca.us says hello
       		  S: 250 8BITMIME
       		  C: MAIL FROM:<[email-masked]> BODY=8BITMIME
       		  S: 250 <[email-masked]>... Sender and 8BITMIME ok
       		  C: RCPT TO:<[email-masked]>
       		  S: 250 <[email-masked]>... Recipient ok
       		  C: DATA

---

From: Jacob Morzinski <[email-masked]>
Date: Fri, 29 Mar 2002 13:19:41 -0500 (EST)

>  IMAP DEBUG 12:59:27 3/29: MAIL FROM:<[email-masked]>

I should clarify that I performed this test with the
enable-8bit-esmtp-negotiation feature turned off.  If I turn
it on and send myself mail, my debuglevel 7 log shows
  IMAP DEBUG 13:14:49 3/29: MAIL FROM:<[email-masked]> BODY=8BITMIME

and the mail arrives with headers:
  MIME-Version: 1.0
  Content-Type: TEXT/PLAIN; charset=iso-8859-1
  Content-Transfer-Encoding: 8BIT

-- 
 Jacob Morzinski                                [email-masked]

---

From: Mats Dufberg <[email-masked]>
Date: Sat, 30 Mar 2002 00:00:07 +0100 (CET)

> verb; that response suggests that the server *is* prepared to do

I came to the same conclusion, but since Murphy did not get any 8 bit
connection through I thought that it be that did not use the same SMTP
server on the inside of his firewall.

The SMTP server on mail.sonytel.be [193.74.243.200] signals 8BITMIME. What
about 10.17.0.26 and 10.17.0.27? 10.17.0.27 seems to be the inside of
193.74.243.200, but maybe it isn't so?

Murphy! Can you connect to 193.74.243.200?

Mats