1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
|
<pre>Network Working Group E. Allman
Request for Comments: 3885 Sendmail, Inc.
Updates: <a href="./rfc3461">3461</a> T. Hansen
Category: Standards Track AT&T Laboratories
September 2004
<span class="h1">SMTP Service Extension</span>
<span class="h1">for Message Tracking</span>
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2004).
Abstract
This memo defines an extension to the SMTP service whereby a client
may mark a message for future tracking.
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Other Documents and Conformance</span>
The model used for Message Tracking is described in [<a href="#ref-RFC-MTRK-MODEL" title=""Message Tracking Model and Requirements"">RFC-MTRK-MODEL</a>].
Doing a Message Tracking query is intended as a "last resort"
mechanism. Normally, Delivery Status Notifications (DSNs) [RFC-DSN-
SMTP] and Message Disposition Notifications (MDNs) [<a href="#ref-RFC-MDN" title=""Message Disposition Notification"">RFC-MDN</a>] would
provide the primary delivery status. Only if the message is not
received, or there is no response from either of these mechanisms
should a Message Tracking query be issued.
The definition of the base64 token is imported from section 6.8 of
[<a href="#ref-RFC-MIME" title=""Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"">RFC-MIME</a>]. Formally,
base64 = %x2b / %x2f / %x30-39 / %x41-5a / %x61-7a
<span class="grey">Allman & Hansen Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
The definition of the DIGIT token is imported from [<a href="#ref-RFC-MSGFMT" title=""Internet Message Format"">RFC-MSGFMT</a>].
Formally,
DIGIT = %x30-39
Syntax notation in this document conforms to [<a href="#ref-RFC-ABNF" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC-ABNF</a>].
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>
[<a href="#ref-RFC-KEYWORDS" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC-KEYWORDS</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. SMTP Extension Overview</span>
The Message Tracking SMTP service extension uses the SMTP service
extension mechanism described in [<a href="#ref-RFC-ESMTP" title=""SMTP Service Extensions"">RFC-ESMTP</a>]. The following service
extension is hereby defined:
(1) The name of the SMTP service extension is "Message Tracking".
(2) The EHLO keyword value associated with this extension is
"MTRK".
(3) No parameters are allowed with this EHLO keyword value. Future
documents may extend this specification by specifying
parameters to this keyword value.
(4) One optional parameter using the keyword "MTRK" is added to the
MAIL command. In addition, the ENVID parameter of the MAIL
command (as defined in <a href="./rfc3461">RFC 3461</a>) MUST be supported, with
extensions as described below. The ORCPT parameter of the RCPT
command (as defined in <a href="./rfc3461">RFC 3461</a>) MUST also be supported. All
semantics associated with ENVID and ORCPT described in <a href="./rfc3461">RFC 3461</a>
MUST be supported as part of this extension.
(5) The maximum length of a MAIL command line is increased by 40
characters by the possible addition of the MTRK keyword and
value. Note that the 507 character extension of RCPT commands
for the ORCPT parameter and the 107 character extension of MAIL
commands for the ENVID parameter as mandated by <a href="./rfc3461">RFC 3461</a> [RFC-
DSN-SMTP] must also be included.
(6) No SMTP verbs are defined by this extension.
<span class="grey">Allman & Hansen Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. The Extended MAIL Command</span>
The extended MAIL command is issued by an SMTP client when it wishes
to inform an SMTP server that message tracking information should be
retained for future querying. The extended MAIL command is identical
to the MAIL command as defined in [<a href="#ref-RFC-SMTP" title=""Simple Mail Transfer Protocol"">RFC-SMTP</a>], except that MTRK,
ORCPT, and ENVID parameters appear after the address.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. The MTRK parameter to the ESMTP MAIL command</span>
Any sender wishing to request the retention of data for further
tracking of message must first tag that message as trackable by
creating two values A and B:
A = some-large-random-number
B = SHA1(A)
The large random number A is calculated on a host-dependent basis.
See [<a href="#ref-RFC-RANDOM" title=""Randomness Recommendations for Security"">RFC-RANDOM</a>] for a discussion of choosing good random numbers.
This random number MUST be at least 128 bits but MUST NOT be more
than 1024 bits.
The 128-bit hash B of A is then computed using the SHA-1 algorithm as
described in [<a href="#ref-NIST-SHA1" title=""Secure Hash Standard"">NIST-SHA1</a>].
The sender then base64 encodes value B and passes that value as the
mtrk-certifier on the MAIL command:
mtrk-parameter = "MTRK=" mtrk-certifier [ ":" mtrk-timeout ]
mtrk-certifier = base64 ; authenticator
mtrk-timeout = 1*9DIGIT ; seconds until timeout
A is stored in the originator's tracking database to validate future
tracking requests as described in [<a href="#ref-RFC-MTRK-MTQP" title=""Message Tracking Query Protocol"">RFC-MTRK-MTQP</a>]. B is stored in
tracking databases of compliant receiver MTAs and used to
authenticate future tracking requests.
The mtrk-timeout field indicates the number of seconds that the
client requests that this tracking information be retained on
intermediate servers, as measured from the initial receipt of the
message at that server. Servers MAY ignore this value if it violates
local policy. In particular, servers MAY silently enforce an upper
limit to how long they will retain tracking data; this limit MUST be
at least one day.
If no mtrk-timeout field is specified then the server should use a
local default. This default SHOULD be 8-10 days and MUST be at least
one day. Notwithstanding this clause, the information MUST NOT be
<span class="grey">Allman & Hansen Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
expired while the message remains in the queue for this server: that
is, an MTQP server MUST NOT deny knowledge of a message while that
same message sits in the MTA queue.
If the message is relayed to another compliant SMTP server, the MTA
acting as the client SHOULD pass an mtrk-timeout field equal to the
remaining life of that message tracking information. Specifically,
the tracking timeout is decremented by the number of seconds the
message has lingered at this MTA and then passed to the next MTA. If
the decremented tracking timeout is less than or equal to zero, the
entire MTRK parameter MUST NOT be passed to the next MTA;
essentially, the entire tracking path is considered to be lost at
that point.
See [<a href="#ref-RFC-DELIVERYBY" title=""Deliver By SMTP Service Extension"">RFC-DELIVERYBY</a>] <a href="#section-4">section 4</a> for an explanation of why a timeout is
used instead of an absolute time.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Use of ENVID</span>
To function properly, Message Tracking requires that each message
have a unique identifier that is never reused by any other message.
For that purpose, if the MTRK parameter is given, an ENVID parameter
MUST be included, and the syntax of ENVID from <a href="./rfc3461">RFC 3461</a> is extended
as follows:
envid-parameter = "ENVID=" unique-envid
unique-envid = local-envid "@" fqhn
local-envid = xtext
fqhn = xtext
The unique-envid MUST be chosen in such a way that the same ENVID
will never be used by any other message sent from this system or any
other system. In most cases, this means setting fqhn to be the fully
qualified host name of the system generating this ENVID, and local-
envid to an identifier that is never re-used by that host.
In some cases, the total length of (local-envid + fqhn + 1) (for the
`@' sign) may exceed the total acceptable length of ENVID (100). In
this case, the fqhn SHOULD be replaced by the SHA1(fqhn) encoded into
BASE64. After encoding, the 160 bit SHA-1 will be a 27 octet string,
which limits local-envid to 72 octets. Implementors are encouraged
to use an algorithm for the local-envid that is reasonably unique.
For example, sequential integers have a high probability of
intersecting with sequential integers generated by a different host,
but a SHA-1 of the current time of day concatenated with the host's
IP address and a random number are unlikely to intersect with the
same algorithm generated by a different host.
<span class="grey">Allman & Hansen Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
Any resubmissions of this message into the message transmission
system MUST assign a new ENVID. In this context, "resubmission"
includes forwarding or resending a message from a user agent, but
does not include MTA-level aliasing or forwarding where the message
does not leave and re-enter the message transmission system.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Forwarding Tracking Certifiers</span>
MTAs SHOULD forward unexpired tracking certifiers to compliant
mailers as the mail is transferred during regular hop-to-hop
transfers. If the "downstream" MTA is not MTRK-compliant, then the
MTRK= parameter MUST be deleted. If the downstream MTA is DSN-
compliant, then the ENVID and ORCPT parameters MUST NOT be deleted.
If aliasing, forwarding, or other redirection of a recipient occurs,
and the result of the redirection is exactly one recipient, then the
MTA SHOULD treat this as an ordinary hop-to-hop transfer and forward
the MTRK=, ENVID=, and ORCPT= values; these values MUST NOT be
modified except for decrementing the mtrk-timeout field of the MTRK=
value, which MUST be modified as described in <a href="#section-4.1">section 4.1</a> above.
MTAs MUST NOT copy MTRK certifiers when a recipient is aliased,
forwarded, or otherwise redirected and the redirection results in
more than one recipient. However, an MTA MAY designate one of the
multiple recipients as the "primary" recipient to which tracking
requests shall be forwarded; other addresses MUST NOT receive
tracking certifiers. MTAs MUST NOT forward MTRK certifiers when
doing mailing list expansion.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Considerations</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Denial of service</span>
An attacker could attempt to flood the database of a server by
submitting large numbers of small, tracked messages. In this case, a
site may elect to lower its maximum retention period retroactively.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Confidentiality</span>
The mtrk-authenticator value ("A") must be hard to predict and not
reused.
The originating client must take reasonable precautions to protect
the secret. For example, if the secret is stored in a message store
(e.g., a "Sent" folder), the client must make sure the secret isn't
accessible by attackers, particularly on a shared store.
<span class="grey">Allman & Hansen Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
Many site administrators believe that concealing names and topologies
of internal systems and networks is an important security feature.
MTAs need to balance such desires with the need to provide adequate
tracking information.
In some cases site administrators may want to treat delivery to an
alias as final delivery in order to separate roles from individuals.
For example, sites implementing "postmaster" or "webmaster" as
aliases may not wish to expose the identity of those individuals by
permitting tracking through those aliases. In other cases, providing
the tracking information for an alias is important, such as when the
alias points to the user's preferred public address.
Therefore, implementors are encouraged to provide mechanisms by which
site administrators can choose between these alternatives.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
IANA has registered the SMTP extension defined in <a href="#section-3">section 3</a>.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Acknowledgements</span>
Several individuals have commented on and enhanced this document,
including Philip Hazel, Alexey Melnikov, Lyndon Nerenberg, Chris
Newman, and Gregory Neil Shapiro.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. References</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Normative References</span>
[<a id="ref-RFC-MTRK-MODEL">RFC-MTRK-MODEL</a>] Hansen, T., "Message Tracking Model and
Requirements", <a href="./rfc3888">RFC 3888</a>, September 2004.
[<a id="ref-RFC-MTRK-MTQP">RFC-MTRK-MTQP</a>] Hansen, T., "Message Tracking Query Protocol", <a href="./rfc3887">RFC</a>
<a href="./rfc3887">3887</a>, September 2004.
[<a id="ref-RFC-ABNF">RFC-ABNF</a>] Crocker, D., Ed. and P. Overell, "Augmented BNF
for Syntax Specifications: ABNF", <a href="./rfc2234">RFC 2234</a>,
November 1997.
[<a id="ref-RFC-ESMTP">RFC-ESMTP</a>] Klensin, J., Freed, N., Rose, M., Stefferud, E.,
and D. Crocker, "SMTP Service Extensions", STD 10,
<a href="./rfc1869">RFC 1869</a>, November 1995.
[<a id="ref-RFC-KEYWORDS">RFC-KEYWORDS</a>] Bradner, S., "Key words for use in RFCs to
Indicate Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
March 1997.
<span class="grey">Allman & Hansen Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
[<a id="ref-RFC-MIME">RFC-MIME</a>] Freed, N. and N. Borenstein, "Multipurpose
Internet Mail Extensions (MIME) Part One: Format
of Internet Message Bodies", <a href="./rfc2045">RFC 2045</a>, November
1996.
[<a id="ref-NIST-SHA1">NIST-SHA1</a>] NIST FIPS PUB 180-1, "Secure Hash Standard"
National Institute of Standards and Technology,
U.S. Department of Commerce, May 1994.
[<a id="ref-RFC-SMTP">RFC-SMTP</a>] Klensin, J., Ed., "Simple Mail Transfer Protocol",
<a href="./rfc2821">RFC 2821</a>, April 2001.
[<a id="ref-RFC-MSGFMT">RFC-MSGFMT</a>] Resnick, P., Ed., "Internet Message Format", <a href="./rfc2822">RFC</a>
<a href="./rfc2822">2822</a>, April 2001.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Informational References</span>
[<a id="ref-RFC-DELIVERYBY">RFC-DELIVERYBY</a>] Newman, D., "Deliver By SMTP Service Extension",
<a href="./rfc2852">RFC 2852</a>, June 2000.
[<a id="ref-RFC-DSN-SMTP">RFC-DSN-SMTP</a>] Moore, K., "Simple Mail Transfer Protocol (SMTP)
Service Extension for Delivery Status
Notifications (DSNs)", <a href="./rfc3461">RFC 3461</a>, January 2003.
[<a id="ref-RFC-MDN">RFC-MDN</a>] Hansen, T. and G. Vaudreuil, Eds., "Message
Disposition Notification", <a href="./rfc3798">RFC 3798</a>, May 2004.
[<a id="ref-RFC-RANDOM">RFC-RANDOM</a>] Eastlake, D., Crocker, S., and J. Schiller,
"Randomness Recommendations for Security", <a href="./rfc1750">RFC</a>
<a href="./rfc1750">1750</a>, December 1994.
<span class="grey">Allman & Hansen Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Authors' Addresses</span>
Eric Allman
Sendmail, Inc.
6425 Christie Ave, 4th Floor
Emeryville, CA 94608
U.S.A.
Phone: +1 510 594 5501
Fax: +1 510 594 5429
EMail: eric@Sendmail.COM
Tony Hansen
AT&T Laboratories
Middletown, NJ 07748
U.S.A.
Phone: +1 732 420 8934
EMail: tony+msgtrk@maillennium.att.com
<span class="grey">Allman & Hansen Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc3885">RFC 3885</a> Message Tracking ESMTP Extension September 2004</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Full Copyright Statement</span>
Copyright (C) The Internet Society (2004). This document is subject
to the rights, licenses and restrictions contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and
except as set forth therein, the authors retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at ietf-
ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Allman & Hansen Standards Track [Page 9]
</pre>
|