<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-brotman-srds-00" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" consensus="true">

<front>
<title abbrev="SRDS">SMTP Response for Detected Spam</title><seriesInfo value="draft-brotman-srds-00" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="A." surname="Brotman" fullname="Alex Brotman"><organization>Comcast, Inc</organization><address><postal><street></street>
</postal><email>alex_brotman@comcast.com</email>
</address></author>
<date/>
<area>Applications</area>
<workgroup></workgroup>

<abstract>
<t>Define a method by which an SMTP receiver can immediately notify
a sender that their message is suspected to be spam, though is still
being accepted.</t>
</abstract>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>Today, a typical SMTP transaction ends with a &quot;250 OK&quot; and the message is
then inspected by the receiver and routed to the inbox or spam folder as
appropriate.  In some cases, it may be desirable for the receiver to provide
in-line feedback.  This could be done via the SMTP response.</t>
<t>This document is intended as an update to <xref target="RFC5321"></xref>.</t>
</section>

<section anchor="terminology"><name>Terminology</name>
<t>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;,
&quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;NOT RECOMMENDED&quot;, &quot;MAY&quot;, and
&quot;OPTIONAL&quot; in this document are to be interpreted as described in
<xref target="RFC2119"></xref>.</t>
</section>

<section anchor="background"><name>Background</name>
<t>In the email ecosystem, there exist a few mechanisms by which a receiver or
recipient can provide feedback to the sending entity, such as Feedback
Reports <xref target="RFC5965"></xref> or Reputation portals.  Historically, these have been
out-of-band or delayed.  In some cases, this is more than sufficient, and
properly conveys information to the sender.  Given the out-of-band nature,
these do not allow for immediate feedback to the sender that their messages
may be construed as undesirable by the recipient or some automated system
within the platform.  By providing this feedback to responsible senders,
they may be able to more immediately use that feedback to remediate the
responsible party. In the case of an Email Service Provider or Mailbox
Provider, this information could allow them to cease delivery before
incurring further risk to recipients.</t>
</section>

<section anchor="the-259-reply-code"><name>The 259 Reply Code</name>
<t>This document adds the 259 reply code, and defines this as a signal to
the sender that the receiving system believes the attempted message to
be malicious or undesirable in some way.  The receiving system intends to
accept the message, and then deliver this to the spam folder of the
recipients.  The code SHOULD only be used when the receiving system has
already determined the message has been determined to be undesirable. This
implies that the receiving system will have evaluated various parts of the
message before fully accepting the message. The 259 response code MUST only
be used after the <tt>.</tt> has been used to indicate the end of the message.</t>
<t>A sample response could be:</t>
<t>259 OK - Delivering to spam folder</t>

<section anchor="sample-conversation"><name>Sample conversation</name>

<artwork>...
C:DATA
S:354 OK
C:From: Bob@example.com
C:To: Alice@example.net
C:Subject: Sample spam message
C:
C:XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
C: 
C:.
S:259 OK - Delivery to spam folder
C:QUIT
S:221 mailhost.example.net closing connection
</artwork>
</section>

<section anchor="disclosure-of-assuredness"><name>Disclosure of Assuredness</name>
<t>It may be desirable for the receiver to disclose some sort of value to
denote assuredness of the malicious verdict.  So consider a scale of 0-100
where 0 is a legitimate message and 100 is definitively spam, perhaps the
receiver may disclose this as such:</t>
<t>259 OK - Delivery to spam folder (85/100)</t>
<t>Doing so could aid the sender in determining the strength of this signal.
Other options could include more detailed information, though the receiver
should reference the Security Considerations before doing so.</t>
</section>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>
<t>When providing information a sender, care should be taken to give information
to reasonable and reliable entities.  Using this code to inform an
intentionally malicious sender may have an undesirable effect.  The
malicious party could attempt to more easily circumvent a receiving party's
anti-spam mechanisms.  By delaying the 259 until the end of DATA, that allows
for some obfuscation as to which data points caused the reciever to believe the
message to be undesirable.</t>
<t>A receiver should take reasonable precautions to utilize the 259 response only
when speaking with parties they believe will use that data responsibly. This
could be accomplished via a number of methods or ACLs.  These methods could
include IP, CIDR, PTR, DKIM/SPF, ASN, and so on.</t>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>
<t>An associated Enhanced Status Code will be requested.  The code would then
be listed in the table at IANA, with a reference to this document.</t>
<t><eref target="https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml">https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml</eref></t>
</section>

</middle>

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

</back>

</rfc>
