Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The first version always gets thrown away.


computers / comp.mail.sendmail / Re: Getting rid of automatic MIME encoding conversions

SubjectAuthor
* Getting rid of automatic MIME encoding conversionsOtto J. Makela
`- Re: Getting rid of automatic MIME encoding conversionsClaus Aßmann

1
Getting rid of automatic MIME encoding conversions

<877cmiat16.fsf@tigger.extechop.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=875&group=comp.mail.sendmail#875

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: om...@iki.fi (Otto J. Makela)
Newsgroups: comp.mail.sendmail
Subject: Getting rid of automatic MIME encoding conversions
Date: Thu, 16 Nov 2023 12:31:33 +0200
Organization: Games and Theory
Lines: 34
Message-ID: <877cmiat16.fsf@tigger.extechop.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="d305141ce7023e768e508dde1b4f09a5";
logging-data="2347807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nmu+GBbZ8UEsS5Pa35LGv"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux)
Cancel-Lock: sha1:JDMV2Ou/hfRNelQaunOiip3D1Bg=
sha1:+HzX0OXjdRD/Tto9NAK6npf+eK8=
X-URL: http://www.iki.fi/om/
Mail-Copies-To: never
X-Face: 'g'S,X"!c;\pfvl4ljdcm?cDdk<-Z;`x5;YJPI-cs~D%;_<\V3!3GCims?a*;~u$<FYl@"E
c?3?_J+Zwn~{$8<iEy}EqIn_08"`oWuqO$#(5y3hGq8}BG#sag{BL)u8(c^Lu;*{8+'Z-k\?k09ILS
 by: Otto J. Makela - Thu, 16 Nov 2023 10:31 UTC

Once upon a time, it made sense to do automatic character set encoding
conversions on the fly. With the advent of pretty much obligatory
message DKIM signing, this option has become a bit of a liability, being
able to check email message signature validity even after they are
written in your mailbox is useful.

Unfortunately on an older system I help to administer, sendmail 8.14.4
does automatic conversions from quoted-printable to 8bit when messages
are pushed to the local mailer, and I haven't been able to figure out
how to completely disable these conversions.

Messages without quoted-printable get sent correctly through, and the
DKIM signature is correct in mailbox. Messages with quoted-printable
(which were verified to have valid DKIM signing by an intermediate mail
forwarder that added ARC headers) get converted and tagged with:

X-MIME-Autoconverted: from quoted-printable to 8bit by HOST id MESSAGE

Looking at http://www.sendmail.org/~ca/email/doc8.12/op-sh-5.html#sh-5.4
I assumed that replacing the "9" with "8" in the Mlocal flags would
rectify this. I did this by adding into sendmail.mc the lines

MODIFY_MAILER_FLAGS(`LOCAL', `-9')dnl
MODIFY_MAILER_FLAGS(`LOCAL', `+8')dnl

and these caused sendmail.cf Mlocal flags to change:

> Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
---
< Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn8, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,

But unfortunately this didn't seem to make a difference. Is this
something hardwired into this older sendmail, or have I just
misunderstood which part of the mailer does the conversion?

Re: Getting rid of automatic MIME encoding conversions

<uj6vkh$vgn$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=876&group=comp.mail.sendmail#876

  copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: Getting rid of automatic MIME encoding conversions
Date: Fri, 17 Nov 2023 01:01:53 -0500 (EST)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <uj6vkh$vgn$1@news.misty.com>
References: <877cmiat16.fsf@tigger.extechop.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 17 Nov 2023 06:01:53 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="32279"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Fri, 17 Nov 2023 06:01 UTC

Otto J. Makela wrote:

> Unfortunately on an older system I help to administer, sendmail 8.14.4
> does automatic conversions from quoted-printable to 8bit when messages
> are pushed to the local mailer, and I haven't been able to figure out
> how to completely disable these conversions.

Recompile the code without setting these options:
MIME8TO7 If non-zero, include 8 to 7 bit MIME conversions. This
also controls advertisement of 8BITMIME in the ESMTP
startup dialogue.
MIME7TO8 If non-zero, include 7 to 8 bit MIME conversions.

> X-MIME-Autoconverted: from quoted-printable to 8bit by HOST id MESSAGE

> Looking at http://www.sendmail.org/~ca/email/doc8.12/op-sh-5.html#sh-5.4

That's really old...

> I assumed that replacing the "9" with "8" in the Mlocal flags would
> rectify this. I did this by adding into sendmail.mc the lines

8 If set, it is acceptable to send eight bit data to
this mailer; the usual attempt to do 8->7 bit MIME
conversions will be bypassed.

Looks like a good idea, but are you sure the conversion happens
when that mailer is used (maybe it happened before)? Is that mailer
even used? Check the log entry.

What is your setting for:
EightBitMode=action
[8] Set handling of eight-bit data. There
are two kinds of eight-bit data: that de-
clared as such using the BODY=8BITMIME ESMTP
declaration or the -B8BITMIME command line
flag, and undeclared 8-bit data, that is,
input that just happens to be eight bits.
There are three basic operations that can
happen: undeclared 8-bit data can be auto-
matically converted to 8BITMIME, undeclared
8-bit data can be passed as-is without con-
version to MIME (``just send 8''), and de-
clared 8-bit data can be converted to 7-bits
for transmission to a non-8BITMIME mailer.
The possible actions are:

s Reject undeclared 8-bit data (``strict'')
m Convert undeclared 8-bit data to MIME (``mime'')
p Pass undeclared 8-bit data (``pass'')

In all cases properly declared 8BITMIME data
will be converted to 7BIT as needed. Note:
if an automatic conversion is performed, a
header with the following format will be
added:

X-MIME-Autoconverted: from OLD to NEW by $j id $i

where OLD and NEW describe the original for-
mat and the converted format, respectively.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor