RFC 2305

A Simple Mode of Facsimile Using Internet Mail

๐Ÿ“… published March 1998, from ietf

RFC 2305 ๐ŸŽ€ A Simple Mode of Facsimile Using Internet Mail

okay bestie, this one is a Standards Track doc from March 1998 ๐Ÿ’… written by K. Toyoda, H. Ohno, and J. Murai from the WIDE Project, plus D. Wing from Cisco ๐ŸŒธ. It's the spec for sending faxes as regular emails, and it's giving interop queen energy โœจ. The title block doesn't say it obsoletes or updates anything, so this is a fresh start ๐Ÿฆ‹. This is part 1 of 3, so stay tuned ๐Ÿ’œ.


Status of this Memo ๐ŸŒˆ

okay so this bit says it's an Internet standards track protocol for the community ๐Ÿซถ, and it wants discussion and suggestions for improvements ๐Ÿ’ฌ. If you want the current standardization state, go check the "Internet Official Protocol Standards" (STD 1) doc ๐Ÿ“š. And distribution is unlimited, so share away ๐Ÿ“.

The Internet Society owns the copyright here (1998), and all rights are reserved ๐Ÿ’–.

SUMMARY โœจ

okay so this section is the vibe check ๐Ÿ’…. It's about "simple mode" carriage of fax data over the Internet ๐Ÿ“ . Extensions are coming later ๐Ÿ”ฎ. It uses stuff you already know and love: TCP/IP, Internet mail protocols [1, 2, 3], MIME [4, 16, 17], and TIFF for Facsimile [5,6,19] ๐Ÿงš. It can send images to Internet-aware fax machines ๐Ÿ–จ๏ธ, but also to Internet-native systems like PCs with email readers that handle MIME mail and TIFF for Facsimile data ๐Ÿ’ป. Basically it helps fax devices, mail agents, and the gateways between them all get along ๐Ÿซถ iconic.

The key words "MUST", "SHOULD", "SHOULD NOT", and "MAY" in this document are to be interpreted as described in [7] ๐Ÿ“–. That's the BCP 14 rule book, bestie ๐Ÿ”ฅ.

1. SCOPE ๐Ÿฆ‹

This spec defines fax communication that's message-based over the Internet ๐Ÿ“จ. It sets a minimum set of capabilities, keeping typical fax devices and PCs that can make fax data in mind ๐Ÿ–ฅ๏ธโœจ.

A G3Fax device has real restrictions from the standards, like timers โฑ๏ธ. So this spec doesn't make some new "fax over the Internet" service. It defines a profile for Internet mail instead ๐Ÿ’Œ. The semantics are built to match fax over the regular telephone network (GSTN), so gateways between fax and email can run with very high fidelity ๐ŸŽฏ no cap.

Why email? So fax users and email users can talk to each other ๐Ÿ’ฌ. Existing email users should be able to send normal messages to lists that include fax recipients ๐Ÿ“‹, and other email people should be able to reply and keep fax recipients in the loop ๐Ÿ”. Existing email software should work without changes and shouldn't have to handle new or different data structures beyond what normal Internet mail users already handle ๐Ÿ™Œ. The spec uses existing email service standards instead of making new mechanisms tailored to fax, so that compatibility with email stays solid ๐Ÿ’œ.

1.1. Services ๐ŸŒธ

A facsimile-capable device that uses T.4 [8] and the GSTN is called a "G3Fax device" here ๐Ÿ“ . An "IFax device" is an Internet-accessible device that can send, receive, or forward Internet faxes ๐ŸŒ. You can send a message to an IFax device using an Internet mail address ๐Ÿ’Œ. You can also send a message to a G3Fax device using an Internet mail address, and the message MAY be forwarded via an IFax offramp gateway ๐Ÿšช.

1.2. Cases ๐ŸŽ€

This spec covers communication between each of these combos:

Internet mail             =>  Network printer
Internet mail             =>  Offramp gateway (forward to
                              G3Fax)
Network scanner           =>  Network printer
Network scanner           =>  Offramp gateway (forward to
                              G3Fax)
Network scanner           =>  Internet mail

2. COMMUNICATION PROTOCOLS ๐Ÿ’–

The conventions needed for fax-compatible service cover basic data transport, document data formats, message (document) addressing, delivery confirmation, and message security ๐Ÿ”. This section covers the first four ๐Ÿ™Œ. The rest show up in later sections, along with more addressing and format details ๐Ÿ“š.

2.1. Transport ๐Ÿš—

This section is about the transport mechanisms between IFAX devices ๐Ÿ›ฃ๏ธ.

2.1.1. Relay ๐Ÿ”

Data transfer MAY use standard Internet mail transfer mechanisms [1, 3] โœ‰๏ธ. Address formats MUST conform to the RFC 821 <addr-spec> and RFC 822 <mailbox> Internet mail standards [1, 2, 3] ๐Ÿ“œ. No skipping this one, bestie ๐Ÿซก.

2.1.2. Gateway ๐ŸŒ‰

A gateway translates between dissimilar environments ๐Ÿ”€. For IFax, a gateway connects Internet mail and T.4/GSTN fax ๐Ÿ“ โ†”๏ธ๐Ÿ“ง. A gateway can serve multiple T.4/GSTN fax users or just one. When it serves many, it acts like a classic "mail transfer agent" (MTA) ๐Ÿข. When it serves one, it acts like a classic "mail user agent" (UA) ๐Ÿ™‹โ€โ™€๏ธ.

An onramp is a gateway that connects from T.4/GSTN fax to Internet mail ๐Ÿ›ฌ. An offramp is a gateway that connects from Internet mail to T.4/GSTN fax ๐Ÿ›ซ. Onramp behavior is out of scope for this spec ๐Ÿ™…โ€โ™€๏ธ.

This spec describes the Internet mail service part of offramp addressing, confirmation, and failure notification ๐Ÿ“ฌ. The details come in later sections ๐Ÿ”œ.

2.1.3. Mailbox protocols ๐Ÿ“ฎ

An offramp gateway that works as an MTA serving multiple users SHOULD use SMTP ๐Ÿ™Œ. A gateway that works as a UA serving a single mail recipient MAY use a mailbox access protocol such as POP or IMAP [9, 10] ๐Ÿ“ฅ.

NOTE: An offramp gateway that relays mail based on addressing information needs to make sure it uses addresses supplied in the MTA envelope, rather than addresses from elsewhere, like addresses listed in the message content headers ๐Ÿ‘€. Don't let the headers gaslight your routing ๐Ÿ’€.

2.2. Formats ๐ŸŽจ

2.2.1. Headers ๐Ÿ“

IFax devices MUST be compliant with RFC 822 and RFC1123, which define the format of mail headers ๐Ÿ“. The header of an IFax message SHOULD include Message-ID, and MUST include all fields required by [2, 3], such as DATE and FROM ๐Ÿ“….

2.2.2. MIME ๐ŸŽ€

IFax devices MUST be compliant with MIME [4], except as noted in Appendix A ๐Ÿงฉ.

2.2.3. Content ๐Ÿ–ผ๏ธ

The data format of the fax image is based on the minimum set of TIFF for Facsimile [6], also known as the S profile ๐ŸŒŸ. This fax data goes into a MIME object using the image/TIFF sub-type [19] ๐ŸŽ. Extra rules for using TIFF for Facsimile in this message-based internet fax application are defined later ๐Ÿ”œ.

2.2.4. Multipart ๐Ÿงบ

A single multi-page document SHOULD be sent as a single multi-page TIFF file, even though recipients MUST process multipart/mixed containing multiple TIFF files ๐Ÿ“„โœจ. If multipart content is present and processing of any part fails, then processing for the entire message is treated as failing, per [Processing failure] below ๐Ÿ’”.

2.3. Error Handling ๐Ÿšจ

2.3.1. Delivery failure ๐Ÿ“ญ

This section describes existing requirements for Internet mail, not special requirements for IFax devices ๐Ÿ“ง.

In the event of relay failure, the sending relay MUST generate a failure message, which SHOULD be in the format of a DSN [14,15] ๐Ÿšฉ.

NOTE: Internet mail transported via SMTP MUST contain a MAIL FROM address appropriate for delivery of return notices [Also see section 5.2.6] ๐Ÿ“ฌ.

2.3.2. Processing failure โš ๏ธ

IFax devices with limited capabilities might not be able to process a message's content ๐Ÿฅบ. If that happens, it's important that the message isn't lost without any notice ๐Ÿ˜ฑ. Notice MAY be provided in any appropriate fashion, and the exact handling is a local matter ๐Ÿ . (Also see Appendix A, second bullet.) ๐ŸŽ€

3. ADDRESSING ๐Ÿ“

3.1. Classic Email Destinations ๐Ÿ’Œ

Messages sent to normal Internet mail recipients use standard Internet mail addresses, with no extra constraints ๐Ÿ’–.

3.2. G3Fax Devices ๐Ÿ“ 

G3Fax devices are accessed through an IFAX offramp gateway, which performs any authorized telephone dial-up ๐Ÿ“ž.

3.3. Address Formats Used by Offramps ๐Ÿšช

When a G3Fax device is identified by a telephone number, the entire address used for the G3Fax device, including the number and offramp host reference, MUST be contained within standard Internet mail transport fields, such as RCPT TO and MAIL FROM [1, 3] ๐Ÿ”’. The address MAY be contained within message content fields, such as <authentic> and <destination> [2, 3], as appropriate ๐Ÿงพ.

As for all Internet mail addresses, the left-hand side (local-part) of an address is not to be interpreted except by the MTA named on the right-hand side (domain) ๐Ÿ‘‘. Don't go poking at someone else's local-part, that's rude ๐Ÿ™…โ€โ™€๏ธ.

The telephone number format SHOULD conform to [11, 12]. Other formats MUST be syntactically distinct from [11, 12] ๐Ÿ”ข.

4. IMAGE FILE FORMAT ๐Ÿ–ผ๏ธ

Sending IFax devices MUST be able to write minimum set TIFF files, following the rules for creating minimum set TIFF files defined in TIFF for Facsimile (the S profile) [6], which is also compatible with the specification for the minimum subset of TIFF-F in [5] ๐ŸŽฏ. Receiving IFax devices MUST be able to read minimum set TIFF files ๐Ÿ“–.

A sender SHOULD NOT use TIFF fields and values beyond the minimum subset of TIFF for Facsimile unless the sender has prior knowledge of other TIFF fields or values supported by the recipient ๐Ÿšซ. How a sender figures out what a recipient can handle is beyond the scope of this document ๐Ÿคทโ€โ™€๏ธ.

5. SECURITY CONSIDERATIONS ๐Ÿ”

5.1. General Directive ๐Ÿ›ก๏ธ

This spec is based on existing Internet mail ๐Ÿ“ง. To keep things interoperable with Internet mail, any security should be part of the Internet security infrastructure, not a new mechanism or some other mechanism outside the Internet infrastructure ๐Ÿ’€๐Ÿ”ฅ. This is serious, bestie, don't freelance your security ๐Ÿ™…โ€โ™€๏ธ๐Ÿ”’.


To be continued in part 2 ๐Ÿ’œ๐ŸŽ€

5.2 Threats and Problems ๐Ÿšจ

Okay so both Internet mail and G3Fax have their own threats and their own countermeasures, and they're honestly both giving drama. This section only covers the extra threats that show up when you smoosh the two services together ๐Ÿซถ It also looks at the Internet mail concerns that matter for IFax environments, plus the problems that can pop up when you plug the existing G3Fax service into Internet mail ๐Ÿฆ‹

5.2.1 Spoofed sender ๐ŸŽญ

The person who actually sent the message might not match the sender in the Sender or From fields of the message content headers, or the MAIL FROM address from the SMTP envelope. Not me being shady about it, but this is a real issue ๐Ÿ’€

In a tightly constrained environment, enough physical and software controls may be able to stop this from happening ๐Ÿ”’ The usual fix is encryption-based authentication, either for the channel or tied to the object, which we'll get into below.

Also, SMTP implementations don't give you inherent authentication of who sent a message, and sites aren't obligated to provide it either ๐Ÿ™ˆ The end-to-end approaches S/MIME and PGP/MIME are currently being developed within the IETF, and these technologies can provide that authentication โœจ


5.2.2 Resources consumed by dialout ๐Ÿ“ž

Email already eats up resources like CPU cycles and disk space, but offramp facsimile adds an outdial, and that can cost a lot of resources, including actual money ๐Ÿ’ธ Techniques for establishing authorization of the sender are essential for offramp fax services that need to manage that consumption ๐Ÿ‘‘

Because dialout burns through those resources, unsolicited bulk email that causes an outdial is undesirable ๐Ÿ˜ค

Offramp gateways SHOULD provide a way to authorize senders, so unauthorized folks can't use the offramp ๐Ÿ›ก๏ธ Honest truth though: there are no standard authorization techniques for Internet protocols yet ๐Ÿ˜ญ

Typical solutions use simple authentication of the originator to establish and verify their identity, and then check that identity against a private authorization table ๐Ÿ“‹

Originator authentication uses either weak or strong mechanisms, like cleartext keywords or encryption-based data-signing, to figure out and validate who the sender is and then decide their permissions accordingly ๐Ÿ”‘

Other common controls include source filtering and originator authentication. Source filtering means the offramp gateway checks the host or network that sent the message, and then permits or prohibits relaying based on that ๐Ÿšฆ


5.2.3 GSTN authorization information ๐Ÿคซ

Confidential info about the sender that's needed to dial a G3Fax recipient, like the sender's calling card authorization number, might get disclosed to the G3Fax recipient on the cover page ๐Ÿ˜ณ This could happen through parameters encoded in the G3Fax recipient's address in the To: or CC: fields.

Senders SHOULD be given a way to prevent that disclosure ๐Ÿฆ‹ Just like with handling unsolicited faxes, there aren't yet standard mechanisms for protecting this info ๐Ÿ˜” The available non-standard techniques are out-of-band communication of authorization information, or using encrypted data in special fields.

Authorization usually needs to be tied to specific senders and specific messages, so that a "replay" attack can't happen ๐Ÿ” A replay attack is when an earlier authorization enables a later dial-out by a different, unauthorized sender. A non-malicious example is when an email recipient replies to all the original recipients (including an offramp IFax recipient), and the original sender's authorization ends up making that reply get sent ๐Ÿ“จ


5.2.4 Sender accountability ๐Ÿ•ต๏ธโ€โ™€๏ธ

In many countries there's a legal requirement that the "sender" be disclosed on a facsimile message โš–๏ธ Email From addresses are trivial to fake, so using only the MAIL FROM [1, 3] or From [2, 3] header is not sufficient ๐Ÿ™…โ€โ™€๏ธ

Offramps SHOULD make sure the recipient gets contact info for the offramp, just in case something goes wrong ๐Ÿ“ž

The G3Fax recipient SHOULD be given enough info to trace who originated the IFax message ๐Ÿ” That info might include the contents of the MAIL FROM, From, Sender and Reply-To headers, plus the Message-Id and Received headers.


5.2.5 Message disclosure ๐Ÿ”

G3Fax users expect a higher level of message privacy than what Internet mail gives you without security enhancements ๐ŸŒธ

That G3Fax privacy expectation SHOULD be kept as much as possible ๐Ÿ’œ

Sufficient physical and software controls may be acceptable in constrained environments. The usual way to protect data confidentiality is encryption, which we'll cover below ๐Ÿ”’


5.2.6 Non private mailboxes ๐Ÿ“ญ

With email, bounces (delivery failures) normally go back to the sender, not to some publicly-accessible email account or printer โœ‰๏ธ With facsimile, bounces don't typically happen at all ๐Ÿ™ƒ With IFax though, a bounce could get sent somewhere else (see section [Delivery Failure]), like a local system administrator's account, a publicly-accessible account, or an IFax printer (see also [Traffic Analysis]) ๐Ÿ‘€


5.2.7 Traffic analysis ๐Ÿฆ‡

Eavesdropping on senders and recipients is easier on the Internet than on the GSTN ๐Ÿ˜ฌ Message object encryption doesn't stop traffic analysis, but channel security can help frustrate those attempts ๐Ÿ›ก๏ธ


5.3 Security Techniques ๐Ÿ’…

There are two basic approaches to encryption-based security that support authentication and privacy ๐Ÿ’–


5.3.1 Channel security ๐Ÿ›ฃ๏ธ

Just like all email, an IFax message can be viewed as it travels through internal networks or the Internet itself ๐Ÿ‘€

Virtual Private Networks (VPN) that use encrypted tunnels, like via IPSec technology [18] or transport layer security, can stop eavesdropping on a message while it's traveling across those networks โœจ They also give some protection against traffic analysis, as covered above ๐Ÿฆ‹


5.3.2 Object security ๐Ÿ“ฆ

Just like all email, an IFax message can be viewed while it sits on an intermediate Mail Transfer Agent, or while it's relayed through one ๐Ÿงš

Message encryption, like PGP-MIME [13] and S/MIME, can provide end-to-end encryption ๐ŸŽ€


6 REFERENCES ๐Ÿ“š

[1] Postel, J., "Simple Mail Transfer Protocol", STD 10, RFC 821, August 1982.

[2] Crocker, D., "Standard for the Format of ARPA Internet Text Messages", STD 11, RFC 822, August l982.

[3] Braden, R., 1123 "Requirements for Internet hosts - application and support", RFC 1123, October 1989.

[4] Borenstein, N., and N. Freed, " Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples ", RFC 2049, November 1996.

[5] Parsons, G., and J. Rafferty, "Tag Image File Format (TIFF) -- F Profile for Facsimile", RFC 2306, March 1998.

[6] McIntyre, L., Zilles, S., Buckley, R., Venable, D., Parsons, G., and J. Rafferty, "File Format for Internet Fax", RFC 2301, March 1998.

[7] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", RFC 2119, March 1997.

[8] ITU-T (CCITT), "Standardization of Group 3 facsimile apparatus for document transmission", ITU-T (CCITT), Recommendation T.4.

[9] Myers, J., and M. Rose, "Post Office Protocol - Version 3", STD 53, RFC 1939, May 1996.

[10] Crispin, M., "Internet Message Access Protocol - Version 4Rev1", RFC 2060, December 1996.

[11] Allocchio, C., "Minimal PSTN address format for Internet mail", RFC 2303, March 1998.

[12] Allocchio, C., "Minimal fax address format for Internet mail", RFC 2304, March 1998.

[13] Elkins, M., "MIME Security with Pretty Good Privacy (PGP)", RFC 2015, October 1996.

[14] Moore, K., and G. Vaudreuil, "An Extensible Message Format for Delivery Status Notifications", RFC 1894, January 1996.

[15] Moore, K., "SMTP Service Extension for Delivery Status Notifications", RFC 1891, January 1996.

[16] Freed, N., and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types", RFC 2046, November 1996.

[17] Moore, K., "Multipurpose Internet Mail Extensions (MIME) Three: Representation of Non-ASCII Text in Internet ge Headers", RFC 2047, November 1996.

[18] Atkinson, R., "Security Architecture for the Internet Protocol", RFC 1825, Naval Research Laboratory, August 1995.

[19] Parsons, G. and Rafferty, J. "Tag Image File Format (TIFF) -- image/TIFF: MIME Sub-type Registration", RFC 2302, March 1998.


7 ACKNOWLEDGEMENTS ๐Ÿซถ

This specification was produced by the Internet Engineering Task Force Fax Working Group, over the course of more than one year's online and face-to-face discussions. As with all IETF efforts, many people contributed to the final product ๐ŸŒˆ

Active for this document were: Steve Huston, Jeffrey Perry, Greg Vaudreuil, Richard Shockey, Charles Wu, Graham Klyne, Robert A. Rosenberg, Larry Masinter, Dave Crocker, Herman Silbiger, James Rafferty. ๐Ÿ‘‘


8 AUTHORS' ADDRESSES ๐Ÿ’Œ

Kiyoshi Toyoda
Matsushita Graphic Communication Systems, Inc.
2-3-8 Shimomeguro, Meguro-ku
Tokyo 153 Japan
Fax: +81 3 5434 7166
Email: ktoyoda@rdmg.mgcs.mei.co.jp
Hiroyuki Ohno
Tokyo Institute of Technology
2-12-1 O-okayama, Meguro-ku
Tokyo 152 Japan
FAX: +81 3 5734 2754
Email: hohno@is.titech.ac.jp
Jun Murai
Keio University
5322 Endo, Fujisawa
Kanagawa 252 Japan
Fax: +81 466 49 1101
Email: jun@wide.ad.jp
Dan Wing
Cisco Systems, Inc.
101 Cooper Street
Santa Cruz, CA 95060 USA
Phone: +1 408 457 5200
Fax: +1 408 457 5208
Email: dwing@cisco.com

9 APPENDIX A: Exceptions to MIME ๐ŸŽ€

  • IFax senders are NOT REQUIRED to be able to send text/plain messages (RFC 2049 requirement 4), although IFax recipients are required to accept such messages, and to process them. ๐Ÿ’–
  • IFax recipients are NOT REQUIRED to offer to put results in a file. (Also see 2.3.2.) ๐Ÿงš
  • IFax recipients MAY directly print/fax the received message rather than "display" it, as indicated in RFC 2049. ๐Ÿ–จ๏ธโœจ

Copyright (C) The Internet Society (1998). All Rights Reserved. ๐Ÿ’–

okay bestie, here's the legal part ๐Ÿ’… You can copy this document and share it with others, including translations. You can also write derivative works that comment on it, explain it, or help people implement it, and you can publish and distribute those too, in whole or in part, with zero restrictions, as long as the above copyright notice and this paragraph are included on every copy and derivative work ๐Ÿฆ‹ BUT the document itself may not be modified in any way. That means no removing the copyright notice or the references to the Internet Society or other Internet organizations. The only exceptions are (a) when it's needed for developing Internet standards, in which case the copyright procedures in the Internet Standards process must be followed, or (b) when it's required to translate it into languages other than English ๐ŸŒˆ

The permissions above are perpetual, meaning the Internet Society and its successors or assigns will never revoke them ๐Ÿซถ

Now the serious bit ๐Ÿ˜ญ This document and the information in it is provided "AS IS", and the Internet Society and the Internet Engineering Task Force totally disclaim all warranties, express or implied. That includes (but isn't limited to) any warranty that using the information here won't infringe any rights, and any implied warranties of merchantability or fitness for a particular purpose ๐Ÿ’€

THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS 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.
๐Ÿ“ฆ where this page comes from