Network Working Group A. Vesely Internet-Draft 28 August 2023 Intended status: Experimental Expires: 29 February 2024 Mailing List Manager (MLM) Transformations draft-vesely-dmarc-mlm-transform-08 Abstract The widespread adoption of Domain-based Message Authentication, Reporting, and Conformance (DMARC) led Mailing List Managers (MLM) to rewrite the From: header field as a workaround. This document proposes a methods to to revert MLM transformations, in order to restore the original From: line after reception. The method only works with some MLMs and some signing patterns. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 29 February 2024. Copyright Notice Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Vesely Expires 29 February 2024 [Page 1] Internet-Draft MLM Transformations August 2023 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Terms Definitions . . . . . . . . . . . . . . . . . . . . . . 3 3. Revertible Transformations . . . . . . . . . . . . . . . . . 3 3.1. Header Transformations . . . . . . . . . . . . . . . . . 3 3.2. Body Transformations . . . . . . . . . . . . . . . . . . 4 4. Outline of a Reverting Verifier . . . . . . . . . . . . . . . 5 5. Actors Roles and Compliance . . . . . . . . . . . . . . . . . 7 5.1. Original Signer . . . . . . . . . . . . . . . . . . . . . 7 5.2. MLM . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5.3. Verifier . . . . . . . . . . . . . . . . . . . . . . . . 9 6. Security Considerations . . . . . . . . . . . . . . . . . . . 9 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 10 7.1. Provisional Message Header Field Names . . . . . . . . . 10 8. References . . . . . . . . . . . . . . . . . . . . . . . . . 11 8.1. Normative References . . . . . . . . . . . . . . . . . . 11 8.2. Informative References . . . . . . . . . . . . . . . . . 12 Appendix A. Examples . . . . . . . . . . . . . . . . . . . . . . 13 A.1. Single-part plain text . . . . . . . . . . . . . . . . . 13 A.2. Multipart added . . . . . . . . . . . . . . . . . . . . . 14 A.3. Multipart wrapped . . . . . . . . . . . . . . . . . . . . 16 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 17 1. Introduction Domain-based Message Authentication, Reporting, and Conformance (DMARC) ([RFC7489]) hinges on the alignment of the domain in the From: header field with an authenticated identifier. For that reason, mailing list managers (MLMs) that transform messages, however lightly, have to rewrite From:; an operation known as From: munging. Depending on the kind of mailing list, From: munging can annoy participants or not. For lists paired by web fora, for example, it is almost unnoticed. For other lists, where personal knowledge plays a role, it can become a nuisance as it hinders off-list messaging. One way to restore the end-to-end nature of the From: email field is to revert it to its original value after the message is delivered to the final subscriber's mailbox. This requires that the MLM saves the original value. For security reasons, this replacement should only be done after verifying the original DKIM signature, following reversion of MLM transformation. Vesely Expires 29 February 2024 [Page 2] Internet-Draft MLM Transformations August 2023 The method works with MLMs configured to add just a footer and a subject tag to the messages that they redistribute, which is what "classic" MLMs currently do. The method requires no conferral of trust, but needs author domains to produce "easy" signatures, which several domains do but not all. 2. Terms Definitions *Signers* and *verifiers* are defined by DKIM ([RFC6376]). The use of the term *Mailing List Manager*, almost always abbreviated *MLM* follows [RFC6377]. A MLM is a kind of *Mediator* in [RFC5598] parlance. It is usually composed of a Message Transfer Agent (MTA) with the usual suit of tools plus the mailing list software proper and any home brewed additions. *Message* is defined in [RFC5322]. It consists of a *header* made up of one or more *fields*, and a *body* possibly composed of various MIME *entities*, the latter being defined in [RFC2045] and companions. The term *original* is used here to refer to the Author or parts of the Author's message as it was sent out by the author's domain, where *Author* is defined in [RFC5598] and [RFC9057]. We use *colon* (:) to indicate header field names, as in From:, Author: and the like. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8175] when, and only when, they appear in all capitals, as shown here. 3. Revertible Transformations Message modifications can affect the header and/or the body of a message. This document only considers a very limited set of transformations, described in the following subsections. They turn out to be revertible. 3.1. Header Transformations 3.1.1. Subject MLM MAY modify the Subject: field by inserting a tag at the beginning of its value. A tag consists of a short text delimited by square brackets. For example: Vesely Expires 29 February 2024 [Page 3] Internet-Draft MLM Transformations August 2023 Subject: [added tag] Original value of subject This transformation is easily reverted by removing the tag. For security reasons, subject tags MUST NOT exceed 20 characters. Note that some MLMs carry out further changes to this field. For example: Subject: AW: [MLM-tag] German reply subject can be transformed to: Subject: Re: [MLM-tag] German reply subject That's why, if the field is signed, it is RECOMMENDED to save a copy of it as Original-Subject:. 3.1.2. From From: rewriting is necessary for DMARC. That way, the MLM domain becomes the primary identifier of a message, in the DMARC sense. It is often achieved by transforming a field like this: From: Original User into one like the following: From: Original User via MLM Many MLMs save the original From: in a variety of places, including Reply-To:, Cc:, X-Original-From:. When the original value is known, the transformation is revertible. 3.2. Body Transformations We only consider footer addition. It MUST be performed in one of three ways, according to the format of the original message. Single-part plain text When the original message is not structured, a footer can be appended at the end of the original text. See example in Appendix A.1 Multipart added The footer stands in its own MIME entity, which is appended as the last part of an original multipart/mixed structure. See example in Appendix A.2 Vesely Expires 29 February 2024 [Page 4] Internet-Draft MLM Transformations August 2023 Multipart wrapped The footer stands in the second entity of a new multipart/mixed MIME structure whose first entity consists of the original body. See example in Appendix A.3 The footer begins with a line consisting exclusively of underscore ("_", ASCII 95) characters, at least four of them. Alternatively, a footer can consist of the three characters "-- " (dash, dash, space), the Usenet signature convention (see for example Section 4.3 of [RFC3676]). For security reasons, the footer MUST belong to an entity of Content-Type: text/plain in all cases. In addition, footers cannot exceed 10 lines of text, each shorter than 80 characters. If these restrictions are not met, the transformation cannot be reverted safely. 4. Outline of a Reverting Verifier This subsection is informative. The algorithm described here is implemented in a mail filter [zdkimfilter]. These kind of filters usually read the input message twice —first pass, verify; last pass, rewrite the message to insert Authentication-Results:. When enabling MLM transformation reversion, there can be a retry pass in between those two. The result is yielded during the SMTP dialogue with no noticeable delay. Implementing reversion changed the software from 22730 lines of C code to 26762. The bulk of such ~18% increase is due to the addition of encoding conversion functions. Changes involve both verifying and signing functions (see Section 5.1 for the latter). While reading the header in the first pass, the verifier looks for specific fields: * From: * Author: * Original-From: * X-Original-From: * Reply-To: * Cc: These are candidates to the original mailbox. Note that Reply-To: and Cc: may contain multiple mailboxes; only the first one is considered. Vesely Expires 29 February 2024 [Page 5] Internet-Draft MLM Transformations August 2023 The verifier also collects the Subject: and any field named Original-* that the original signer might have set to ease the reversion. On reaching the end of the header, during the first pass, the verifier sorts the candidate original mailboxes according to the display name, which MLMs try and keep unaltered. The best candidate is then added to the collected set of Original-* fields. If the Subject: begins with a tag, its version without tag is added to that set as well, unless one was already found as Original-Subject:. Next, before reading the body, the verifier looks for prospect signatures; that is, signatures whose "d=" domain is not aligned with SPF credentials ([RFC7208]), List-Post: ([RFC4201]), Sender:, or the munged From: (if deemed to have been munged). If any such signature exist, along with MLM or other signatures, then the verifier enables parsing the body to look for a footer. Reversing verifiers also have to watch out for idiosyncrasies used to mask DKIM signatures. For example, a MLM introduced a header field named X-Mailman-Original-DKIM-Signature, because some receivers took the habit to downgrade messages with failed signatures, despite [RFC6376] recommendation to consider an unauthenticated message regardless of whether or not it looks like it was signed. Body parsing is done in parallel with body canonicalization during the first pass. For multipart, track top level entities. Set transformation type to "wrapped" if there are exactly two entities, "added" otherwise. However, some lists, perhaps out of misconfiguration, insert an empty attachment before the one containing the footer. As it is unlikely that a mail client sends an empty attachment, heuristically it may be preferable to just not count it. For single-part, body parsing must avail of encoding conversions as needed. Assume identity encoding, 7bit or 8bit, unless otherwise directed by an Original-Content-Transfer-Encoding: field. At the end of the first pass, the verifier knows how prospect signatures did. Let's recall that DKIM signature verification results from two independent operations, steps 3 and 4 in Section 6.1.3 of [RFC6376]. The signature in the "b=" tag depends on the header, while the body hash in the "bh=" tag depends on the body: * If the signature "b=" did not verify and the set of Original-* fields is not empty, then it is worth to try and re-canonicalize the header using the values in the set of Original-* fields. * If the body hash "bh=" did not match and a footer was found, then it is worth to try and re-canonicalize the body excluding the footer. Vesely Expires 29 February 2024 [Page 6] Internet-Draft MLM Transformations August 2023 None, one, or both of the above operations are performed in the retry pass. On writing Authentication-Results, if a prospect signature verifies after reversion, the verifier must signal this fact. How to signal it is a question of local settings and convenience. It can consist of an apposite reason or comment in Authentication-Results:, or it can just write dmarc=pass. It can also add an Original-From: field as a signal that From: can be restored to that value, having previously removed or renamed any existing field with the same name. For example: Original-From: Original Author Authentication-Results: example.com; spf=pass smtp.mailfrom=list.example; dkim=pass reason="transformed" header.d=example.org; dkim=pass (whitelisted) header.d=list.example; dmarc=pass header.from=example.org; That way, reversion elements can be easily recognized and parsed by downstream agents. It is up to the delivery agent to restore the original value of From:, after any possible forwarding has been executed. 5. Actors Roles and Compliance 5.1. Original Signer Author domains who DKIM-sign outgoing messages can copy the value of From: to Author:, at least when one or more recipients are MLMs. Omission to do so may limit the success of this method to MLMs that add the Author: field themselves. Signing Author: denotes an interest in this experiment. In this case, DMARC aggregate results are reported to the Author: domain as well. In addition, Author domains who DKIM-sign outgoing messages MUST NOT sign header fields that MLMs will change, namely: * MIME-Version: * Content-Type: * Content-Transfer-Encoding: * Resent-Date:, Resent-From:, Resent-To:, Resent-Cc: * List-Id:, List-Help:, List-Unsubscribe:, List-Subscribe:, List- Post:, List-Owner:, List-Archive: Vesely Expires 29 February 2024 [Page 7] Internet-Draft MLM Transformations August 2023 Not signing Content-Type: implies that author domains MUST NOT use the l= signature tag, according to Section 5.4.1 of [RFC6376]. Furthermore, the original value of the signed fields SHOULD be mirrored by corresponding fields, From: copied to Author:, the other fields to an Original-*: field, that is Reply-To: copied to Original- Reply-To:, Subject: to Original-Subject: and so forth. Copying Date: is actually not necessary. Copying Reply-To:, To: and Cc: is only useful if there are multiple recipients and the MLM changes their order. Original-Subject: is necessary if it starts with a tag that can be removed when attempting to recover the original value; this field is defined by [RFC5703], where similar considerations hold. Mailbox providers ignore this requirement if they are not aware of this experiment or don't participate. In many cases, the method succeeds anyway. Other generic rules to ease reversion are as follows: * DKIM signatures MUST use the "relaxed" canonicalization, at least for the header, since MLMs may reflow header fields. * The quoted-printable encoding MUST NOT be used for the body of single-part text/plain messages, as it is impossible to guess original soft line breaks after re-encoding. Base64 is much more robust. * Single-part text/plain messages encoded as base64 MUST follow a constant column width of 76 characters (which is what most encoders do.) The encoding MUST be advertised by adding a new header field as follows: Original-Content-Transfer-Encoding: base64 * Original-*: fields with an empty value stand for non-existing counterparts. 5.2. MLM MLMs MUST limit message changes to the revertible transformations described in Section 3. Since DKIM is MIME-agnostic, attention must be paid to preserve the exact preamble and epilogue of the original MIME structure. Several "classic" mailing lists behave in that way. MLMs MUST apply their own DKIM signature. It is RECOMMENDED that MLMs insert a mailbox entry to Reply-To: or Cc: in order to ease off-list replies as well as to allow transformation reversion. Vesely Expires 29 February 2024 [Page 8] Internet-Draft MLM Transformations August 2023 MLMs which collect posts from other MLMs must avoid to add their own footer and subject tag. Transformation reversion cannot be stacked. A second-level MLM can modify or replace the content of previous transformations. Attention must be paid to not exceed tag and footer length limits. 5.3. Verifier Attempts to verify original signatures can be done as outlined in Section 4. The reversion MUST NOT alter the messages signed and distributed by MLMs, except for adding an Authentication-Results: header field, and possibly an Original-From: or other header field used as a signal to downstream agents. If an original signature with rewritten From: is recovered, the verifier MUST make sure that the original value of From: is written out in a field agreed upon by downstream agents, typically Original- From:, which [RFC5703] suggests for a similar use. However, [RFC7960] suggests that Original-From: be added by mediators as well. Whatever field is used, the filter SHALL make sure it doesn't already exist. A mail delivery agent (MDA) downstream MAY combine the Authentication-Results: with that field to restore the original value of From:. Replacing From: can invalidate the message, therefore, it must be done after any dot-forward processing, so that external verifiers receive the message as distributed by the MLM, and can revert transformations by themselves. If the Author: field is found and if it is included in the h= tag of the original signature, the corresponding DMARC record SHOULD be looked up and its "rua=" and "ruf=" tags considered for feedback reports, whatever the result. Omitting feedback can hamper the tuning of DKIM signatures at remote sites. A verifier can ignore reporting if it hasn't yet enabled it at all. If applying DMARC policies is considered, it is the From: field which rules. 6. Security Considerations Rewriting the From: header field is a treacherous modification to messages. It fosters the belief that the display name of a mailbox is more true than the angle address. A belief further consented by the tendency to not even display the latter. Bad actors take advantage of this belief by displaying the names of trusted institutions paired with trash email addresses hidden between angle brackets. That trick defeats DMARC's purpose. Vesely Expires 29 February 2024 [Page 9] Internet-Draft MLM Transformations August 2023 It is out of this document's scope to suggest how mail user agents (MUAs) could counter phishing by highlighting security indicators (for the extent that indicators can actually help preventing phishing attacks). Let's just note that MUAs have to cope with MLMs and phishing alike, which makes it hard to devise a pattern to tell apart one from the other without getting involved with the reputation of the specific domains. By safely restoring munged From: to the original value in the MDA, that contrast is eliminated. Then, perhaps, deceptive From: lines might become amenable to some kind of efficient indication. Of course, MLM role can be played by miscreants as well. However, replaying a signed message, even with revertible transformations, has more limits than forging scam messages anew. Therefore, the risk introduced by easing transformation reversion is considerably lower than that of not signing, or of keeping DMARC policy at "none". An unlikely risk is that of a fake MLM sending messages with Author: signed by a broken signature in order to trick a reverting verifier into sending fake feedback reports. Compared with the use of "l=" tag (Section 8.2 of [RFC6376]), the fact that footers are written in plain text removes the main security objection about footer additions. Namely, footers cannot completely replace the original content in the end recipient's eyes by exploiting lax HTML parsing in the MUA. Still, a footer can contain dangerous URLs and deceiving text. That possibility has to be countered by usual mail filtering and savvy behavior. 7. IANA Considerations IANA maintains the "Message Header" registry with several subregistries. IANA is asked to make the assignments set out in the following section. 7.1. Provisional Message Header Field Names IANA is asked to create new entries in the "Provisional Message Header Field Names" registry as follows. Vesely Expires 29 February 2024 [Page 10] Internet-Draft MLM Transformations August 2023 +===========+============+=============+============+===========+ | Header | Applicable | Status | Author/ | Reference | | Field | Protocol | | Change | | | Name | | | controller | | +===========+============+=============+============+===========+ | Original- | mail | provisional | IETF | this I-D | | Content- | | | | | | Transfer- | | | | | | Encoding | | | | | +-----------+------------+-------------+------------+-----------+ | Original- | mail | provisional | IETF | this I-D | | Reply-To | | | | | +-----------+------------+-------------+------------+-----------+ | Original- | mail | provisional | IETF | this I-D | | Cc | | | | | +-----------+------------+-------------+------------+-----------+ Table 1 8. References 8.1. Normative References [RFC2045] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, DOI 10.17487/RFC2045, November 1996, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC5321] Klensin, J., "Simple Mail Transfer Protocol", RFC 5321, DOI 10.17487/RFC5321, October 2008, . [RFC5322] Resnick, P., Ed., "Internet Message Format", RFC 5322, DOI 10.17487/RFC5322, October 2008, . [RFC6376] Crocker, D., Ed., Hansen, T., Ed., and M. Kucherawy, Ed., "DomainKeys Identified Mail (DKIM) Signatures", STD 76, RFC 6376, DOI 10.17487/RFC6376, September 2011, . Vesely Expires 29 February 2024 [Page 11] Internet-Draft MLM Transformations August 2023 [RFC7489] Kucherawy, M., Ed. and E. Zwicky, Ed., "Domain-based Message Authentication, Reporting, and Conformance (DMARC)", RFC 7489, DOI 10.17487/RFC7489, March 2015, . [RFC8175] Ratliff, S., Jury, S., Satterwhite, D., Taylor, R., and B. Berry, "Dynamic Link Exchange Protocol (DLEP)", RFC 8175, DOI 10.17487/RFC8175, June 2017, . [RFC8617] Andersen, K., Long, B., Ed., Blank, S., Ed., and M. Kucherawy, Ed., "The Authenticated Received Chain (ARC) Protocol", RFC 8617, DOI 10.17487/RFC8617, July 2019, . [RFC9057] Crocker, D., "Email Author Header Field", RFC 9057, DOI 10.17487/RFC9057, June 2021, . 8.2. Informative References [RFC3676] Gellens, R., "The Text/Plain Format and DelSp Parameters", RFC 3676, DOI 10.17487/RFC3676, February 2004, . [RFC4201] Kompella, K., Rekhter, Y., and L. Berger, "Link Bundling in MPLS Traffic Engineering (TE)", RFC 4201, DOI 10.17487/RFC4201, October 2005, . [RFC5703] Hansen, T. and C. Daboo, "Sieve Email Filtering: MIME Part Tests, Iteration, Extraction, Replacement, and Enclosure", RFC 5703, DOI 10.17487/RFC5703, October 2009, . [RFC5598] Crocker, D., "Internet Mail Architecture", RFC 5598, DOI 10.17487/RFC5598, July 2009, . [RFC6377] Kucherawy, M., "DomainKeys Identified Mail (DKIM) and Mailing Lists", BCP 167, RFC 6377, DOI 10.17487/RFC6377, September 2011, . [RFC7208] Kitterman, S., "Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1", RFC 7208, DOI 10.17487/RFC7208, April 2014, . Vesely Expires 29 February 2024 [Page 12] Internet-Draft MLM Transformations August 2023 [RFC7960] Martin, F., Ed., Lear, E., Ed., Draegen, T., Ed., Zwicky, E., Ed., and K. Andersen, Ed., "Interoperability Issues between Domain-based Message Authentication, Reporting, and Conformance (DMARC) and Indirect Email Flows", RFC 7960, DOI 10.17487/RFC7960, September 2016, . [RFC8601] Kucherawy, M., "Message Header Field for Indicating Message Authentication Status", RFC 8601, DOI 10.17487/RFC8601, May 2019, . [zdkimfilter] "zdkimfilter", . Appendix A. Examples In the examples that follow, the first character of each wrapped line of DKIM-Signature: fields should be a TAB. For editorial reasons, it is rendered as four spaces. While visually there is little difference, those signatures won't verify unless replacing them with a TAB. To verify the examples, public keys can be set as follows: s._domainkey.example.com IN TXT ( "v=DKIM1; g=*; k=rsa; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqlye7m5zLLXoIpBp2OO05LNMqK" "u0zKowoHOpyRpviOVqOaNCk5uZ+wY00JwrKbt5u1G1ghuXsFkFkl0h00LBurz7ivyZH" "3LohSWOZ8okgR+8kuGu9GHtQ+MqgRd16tlCF8PlWS2kGaBQKua1zk+ZCDwFy82Uo5G2" "1nu/+Nn2sUwIDAQAB" ) s._domainkey.lists.example IN TXT ( "v=DKIM1; k=rsa; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDgnLb2TZ6KECBMBo9ZLqDFt4ZBz" "NHFrgBj/LVJVFU8IQP8uH4G8Pj0mEHRo1qpf0vuFI2HVpe/3NhzkT4Ay/1ZIIsxY754" "f2thlhBvKh4AAgZFmzRvA3aZs6Tb/ERmD+a51liEMFaTOmY4mWeLi9wOM51usQ9Q65i" "8IP/vjHM3rQIDAQAB" ) A.1. Single-part plain text Base64 encoding has to be decoded in order to locate the footer. The original encoding was text/plain, this can be inferred by the verifier from the absence of an Original-Content-Transfer-Encoding: field. The original body hash will match after decoding and removing the footer. Note that an "l=" tag couldn't have done the trick in this case. Vesely Expires 29 February 2024 [Page 13] Internet-Draft MLM Transformations August 2023 Received: from lists.example by subscriber.example.org with ESMTP DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lists.example; s=s; t=1603901305; bh=MjC5ikx26j8beyDJiz7Rk/4W+ppdGOmqh6koz0gLa8o=; h=Date:From:To:Subject; b=PNIYHGd7aytHEvew44WRpSfl4Py3c/9mKjovvQ1ps/xdpkl1/z+gWeu8e8ZmR7gdE iT2TsJ7ni3Lfp5oUpGCko5MvCoqcKX7Zmq3CmXTxRTwwvVZrAp/ir8UTvG+rJFnyEZ Yi3dSTX4rKe2LotyLkqcs+/uXaWEADbqcBp/9iHo= Received: from mail.example.com by lists.example with ESMTP DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=example.com; s=s; t=1603889142; bh=hrDXocZNPy1+eUFYIk1PVRKa6mUMb8+ql9CFNABacww=; h=Date:From:To:Subject; b=YFLwvvW5bGbE5HpJwBM1JoL1F9b8AxdVFlwE/vOkL0p/pPpr7g9KnPXqwoEXZgFI0 /kkTHK/Afy4gaWZQfwDZ77LuxYSMFjwpNorSc0YEGzHYzLCN7rL1e+xE7B7kOCThiq ebaMdcaHeZF6QUmWcUkEj8LVkxrvWi+bTzd3RnaA= Original-From: Author Received: from mua.example.com by mail.example.com with ESMTPA Message-ID: <123456@author.example> Date: Mon, 28 Oct 2020 13:12:55 +0100 From: Author MIME-Version: 1.0 To: MLM@lists.example Subject: [example] Check simple MLM message Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: base64 VGhpcyBpcyBhIHBsYWluIHRleHQgbWVzc2FnZSBzdWJtaXR0ZWQgdG8gYSBtYWlsaW5nIGxpc3Qu ClRoZSBtYWlsaW5nIGxpc3QgaXMgZXhwZWN0ZWQgdG8gYWRkIGEgZm9vdGVyIGFuZCBhIHN1Ympl Y3QgdGFnLgoKQmVzdApBdXRob3IKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KdGhpcyBtZXNzYWdlIHdhcyBtb2RpZmllZCBieSBNTE0gZXhhbXBsZQphZGRpbmcgdGhp cyBmb290ZXIgYW5kIHRoZSBzdWJqZWN0IHRhZwoobm90ZSB0aGF0IGw9IGlzIG5vdCBzZXQpCg== A.2. Multipart added When the original message has a MIME structure, MLMs can append an entity. Received: from lists.example by subscriber.example.org with ESMTP DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lists.example; s=s; t=1603974193; bh=sEPYSlJlh90leqy5+63oPn1iU+9P684R92cZHXa9ENw=; h=Date:From:To:Subject; b=fTSAMcaEatofQCuAeUhlTXmVl5j9bPbwWgc84NWtoSt5zT+SSNp37DTzhYIGHozEk bpldArGQ+GygJE1b2witi6NctBd1O/xsUwDcJQxDXkF63QlCcalbKWypHZOhRqncUQ zgUzdcuYgqTYMJ0NoTP8fqu0HdgmjD2LJXjV3pVI= Old-Authentication-Results: lists.example; dkim=pass header.d=example.com Received: from mail.example.com by lists.example with ESMTP DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=example.com; s=s; t=1603973996; bh=eWqyE53pjRVCFGyHY1zGQTkCEvucN1vNN4cTcWk90WU=; Vesely Expires 29 February 2024 [Page 14] Internet-Draft MLM Transformations August 2023 h=Date:From:To:Subject; b=LGP1M3IX6XORfLs8HRLCFOcymzsPn+8+ljgQlmeNlCC/2Cl1+aBDCIEnzWI0pceCb zg32vFfEeryvRDHB1L1K4rrKCEznvO0J3p1xkUPEWpSpzxUGw+PK9KA9ePZ5qdz7cI /hXf7zjebznNdDQJnxajf7QHnx1tXmxijsJ1jiGQ= Old-Authentication-Results: example.com; auth=pass (details omitted) Original-From: Author Received: from mua.example.com by mail.example.com with ESMTPA Message-ID: <123456@author.example> Date: Mon, 28 Oct 2020 13:12:55 +0100 From: Author via MLM MIME-Version: 1.0 To: MLM@lists.example Subject: [example] Check simple MLM message Content-Type: multipart/mixed; boundary=original-boundary Original preamble must be preserved! --original-boundary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This is a plain text message submitted to a mailing list. The mailing list is expected to add a footer and a subject tag. Best Author --original-boundary Content-Type: image/png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAHKgAAByoB49HU1wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAB+SURB VAiZNcGxDYUgAEXRhxTMYWLFVlDTOAUjOIEzWDqEC1igCQ0LSLi/+ueotUZKieu6uO+bdV2ptaLz PDHGsG0b+74jieM40Pd91Fr5K6UAMC3LImutxhgaY8g5p3meNcUYFULQ+756nkchBMUYpd47OWe8 93jvyTnTe+cHXqRZbKSV4EoAAAAASUVORK5CYII= --original-boundary Content-Tyep: text/plain ________________________________________ this message was modified by MLM example adding this footer and the subject tag (note that l= cannot work in this case) --original-boundary-- Vesely Expires 29 February 2024 [Page 15] Internet-Draft MLM Transformations August 2023 A.3. Multipart wrapped When the original body is multipart/alternative, MLMs have to wrap the whole body into the first entity of a multipart/mixed structure. Indeed, appending an entity to a multipart/alternative would result in it either hiding or being hidden by the existing ones. Received: from lists.example by subscriber.example.org with ESMTP DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lists.example; s=s; t=1603962061; bh=n4/RahgnfVg7htgJtCr7TwEW4eKA1O5oiNaQFA5HU+A=; h=Date:From:To:Subject; b=RJlq/Fu40AC1hdJfljd+KPU69Vq2M7capbGQyEMhDWvaN7xDPJdXotwnTwiz91iZY 5W3ITY7YXKHsWweLxu1Rph3ST3bbYQ1cifztpmtu4VPifBkm9MAe7OMDLHhk5ua9YL VzJOsXieiIw5a8JhOsr6F/05/K05kNiEXvuLgKd8= Old-Authentication-Results: lists.example; dkim=pass header.d=example.com Received: from mail.example.com by lists.example with ESMTP DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=example.com; s=s; t=1603961679; bh=XiCPbOV1vcu2Q2TyEUOuT4SMun2AjYj/Va6KRPa1lv0=; h=Date:From:To:Subject; b=gvM5grV2dbtinFMLcExv+gMATILzY+c8RY7QPVBJSFohH5HMgOLwrgSH8uwOcZxq0 FoXtBcHnukonqo97l8nY0faHi0Dp0LAmqn9e4ijwXw9IWwhFuUiCwICRaLEzrNUVBN TWtzkQKnHpEXnPGBD7Q9f924mBe+eZsDyRc41ZvQ= Old-Authentication-Results: example.com; auth=pass (details omitted) Original-From: Author Received: from mua.example.com by mail.example.com with ESMTPA Message-ID: <123456@author.example> Date: Mon, 28 Oct 2020 13:12:55 +0100 From: Author via MLM MIME-Version: 1.0 To: MLM@lists.example Subject: [example] Check simple MLM message Content-Type: multipart/mixed; boundary=MLM-boundary This is the MLM preamble, not signed by Author. --MLM-boundary Content-Type: multipart/alternative; boundary=original-boundary Original preamble must be preserved! --original-boundary Content-Type: text/plain; This is a plain text message submitted to a mailing list. The mailing list is expected to add a footer and a subject tag. Best Vesely Expires 29 February 2024 [Page 16] Internet-Draft MLM Transformations August 2023 Author --original-boundary Content-Type: text/html;

This is a plain text message submitted to a mailing list. The mailing list is expected to add a footer and a subject tag.

Best
Author
--original-boundary-- Original epilogue --MLM-boundary Content-Type: text/plain ________________________________________ this message was modified by MLM example adding this footer and the subject tag (note that l= is not set) --MLM-boundary-- MLM epilogue Author's Address Alessandro Vesely v. L. Anelli 13 20122 Milano MI Italy Email: vesely@tana.it Vesely Expires 29 February 2024 [Page 17]