<?xml version="1.0" encoding="utf-8"?>
<?xml-model href="rfc7991bis.rnc"?>  <!-- Required for schema validation and schema-aware editing -->
<!-- <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?> -->
<!-- This third-party XSLT can be enabled for direct transformations in XML processors, including most browsers -->
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
  <!ENTITY mydash "---">
]>
<!-- If further character entities are required then they should be added to the DOCTYPE above.
     Use of an external entity file is not recommended. -->
<rfc
  xmlns:xi="http://www.w3.org/2001/XInclude"
  category="info"
  docName="draft-nurpmeso-smtp-verp-01"
  ipr="trust200902"
  obsoletes=""
  updates=""
  submissionType="IETF"
  xml:lang="en"
  version="3">
<!--
     [CHECK]  FIXME
       * category should be one of std, bcp, info, exp, historic
       * ipr should be one of trust200902, noModificationTrust200902, noDerivativesTrust200902, pre5378Trust200902
       * updates can be an RFC number as NNNN
       * obsoletes can be an RFC number as NNNN
-->
  <front>

   <title>SMPT VERP Service Extension</title>

   <seriesInfo name="Internet-Draft" value="draft-nurpmeso-smtp-verp-01"/>

    <author fullname="Steffen Nurpmeso" initials="S" role="editor" surname="Nurpmeso">
      <address><email>steffen@sdaoden.eu</email></address>
    </author>

    <date year="2025" month="03" day="31"/>

    <area>General</area>
    <workgroup>Internet Engineering Task Force</workgroup>

    <keyword>SMTP</keyword>

    <abstract><t>
      This specification makes official
      D. J. Bernstein's Variable Envelope Return Paths: VERP.
    </t></abstract>

  </front>
  <middle>

    <section>
      <name>Introduction</name>
      <t>
        Since at least 1997 many mailing-list managers
        (and possibly other email configurations)
        make use of
        D. J. Bernstein's Variable Envelope Return Paths,
        or short, VERP.
        As he rightfully wrote, on 1997-02-01:
        <em>Every application of RFC 1891's ORCPT and ENVID
        can be handled with VERPs &mydash;
        easily, reliably, and right now</em>.
        (This is
        DSNs<xref target="RFC3461"/>
        at the time of this writing.)
        This specification defines an according
        SMTP VERP Service Service Extension.
        With it,
        undeliverable mail will reveal the recipient address
        simply through the return path address.
      </t>
    </section>

    <section>
      <name>Variable Envelope Return Path service extension</name>
      <t>
        If a
        SMTP<xref target="RFC5321"/>
        server announces VERP in the list of EHLO keywords
        (4.1.1.1, Extended HELLO (EHLO)),
        then VERP is supported.
      </t>
    </section>

    <section>
      <name>Additional parameter for MAIL command</name>
      <t>
        If VERP is supported, the extended MAIL command
        (SMTP<xref target="RFC5321"/>,
        4.1.1.2, MAIL)
        takes an additional VERP parameter.
      </t>
    </section>

    <section>
      <name>Operational behaviour</name>
      <t>
        When a server supports VERP,
        and the client requested its usage for a particular mail transaction,
        then it guarantees that each message recipient
        (SMTP<xref target="RFC5321"/>,
        4.1.1.2, RECIPIENT (RCPT))
        will get a copy of the message with a variable envelope return path.
      </t><t>
        The VERP is constructed by encapsulating the address of the recipient,
        separated with a plus sign (U+002B, +),
        and the commercial at (U+0040, @) being replaced with an equals sign
        (U+003D, =),
        in the MAIL sender address,
        after the senders local-part,
        before the senders domain.
      </t><blockquote>
        For example,
        a recipient <em>abc@def</em>
        will be encapsulated in the sender address <em>zyx@wvu</em>
        as <em>zyx+abc=def@wvu</em>.
      </blockquote><blockquote>
        <em>Informative remark:</em>
        A sender may include additional variable constructs in its address,
        which must be taken into account when constructing the VERP.
        For example,
        a recipient <em>abc@def</em>
        will be encapsulated in the sender address
        <em>zyx+bounces-1234@wvu</em>
        as <em>zyx+bounces-1234-abc=def@wvu</em>.
      </blockquote><t>
        The construction of the VERP happens when either a MTA is encountered
        along the hops that does not support the VERP service extension,
        or right before final delivery of an email message to a recipient,
        whichever comes first.
      </t><blockquote>
        <em>Informative remark:</em>
        This means that a SMTP server which supports VERP must take into
        account the need,
        and therefore be capable,
        to splice a single message with potentially many recipients
        into many messages with a single recipient and a dedicated VERP.
      </blockquote>
    </section>

    <section anchor="IANA">
    <!-- All drafts are required to have an IANA considerations section. See RFC 8126 for a guide.-->
      <name>IANA Considerations</name>
      <t>
        This document includes no request to IANA.
      </t>
    </section>

    <section anchor="Security">
      <!-- All drafts are required to have a security considerations section. See RFC 3552 for a guide. -->
      <name>Security Considerations</name>
      <t>
        Today, as by IETF means, SMTP trace headers etc need to be traversed,
        or non-standardized, MTA-specific bounce message content has to be
        parsed in order to find out (the) envelope recipient(s).
        Furthermore more and more SMTP trace headers are seen which completely
        hide the according information.
        With VERP as a standardized extension,
        bounce processing can be made a reliable task.
      </t>
    </section>

  </middle>
  <back>

    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5321.xml"/>
      </references>

      <references>
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3461.xml"/>
      </references>
    </references>

    <section anchor="Rationale">
      <name>Rationale</name>
      <t>
        This document only specifies VERP for senders.
        It could also be specified for recipients,
        to cover more aspects of the referenced
        DSNs<xref target="RFC3461"/>.
      </t><t>
        This method of creating variable envelope return paths is in active
        use on the internet for over the quarter of a century.
        The use of the plus sign and the equals sign as delimiters
        seem to have not been the cause of problems in real life.
      </t>
    </section>

    <section anchor="Acknowledgements">
      <name>Acknowledgements</name>
      <t>
        Thanks to Wietse Venema of the postfix MTA,
        for adding VERP support in version 1.1 (released 20020117).
        The Exim MTA seems to have implemented it pre-Y2K.
        D. J. Bernstein for documenting VERP,
        and implementing it in his qmail MTA, back in 1997.
        (This, however, used different delimiters:
        it used hyphen-minus and the equals sign,
        which is a bad choice for other software as list names etc,
        they often regulary contain hyphen-minus.)
      </t>
    </section>

 </back>
</rfc>
<!-- vim:set tw=1000:s-ts-mode -->
