RFC 3965 DRAFT STANDARD INTERNET FAX · EMAIL · GATEWAYS

Simple Mode IFax: A Simple Mode of Facsimile Using Internet Mail

How a fax page travels as an ordinary email message, and what a gateway has to do to print it on a real fax machine.

On rfc-editor.org ↗
PUBLISHED
December 2004
AUTHORS
K. Toyoda, H. Ohno, J. Murai, D. Wing
STREAM
IETF
BUILDS ON
RFC 2305 — Simple Mode Fax
IMAGE FORMAT USED
TIFF for Facsimile, the S profile
MIME SUB-TYPE
image/TIFF
ADDRESSING FORMAT
The minimal GSTN address format
TECHNICAL CHANGES FROM RFC 2305
None
DOI
10.17487/RFC3965
ERRATA
Reported errata

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
Network Working Group                                          K. Toyoda
Request for Comments: 3965                                       H. Ohno
Obsoletes: 2305                                                 J. Murai
Category: Standards Track                                   WIDE Project
                                                                 D. Wing
                                                                   Cisco
                                                           December 2004


             A Simple Mode of Facsimile Using Internet Mail

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 specification provides for "simple mode" carriage of facsimile
   data using Internet mail.  Extensions to this document will follow.
   The current specification employs standard protocols and file formats
   such as TCP/IP, Internet mail protocols, Multipurpose Internet Mail
   Extensions (MIME), and Tagged Image File Format (TIFF) for Facsimile.
   It can send images not only to other Internet-aware facsimile devices
   but also to Internet-native systems, such as PCs with common email
   readers which can handle MIME mail and TIFF for Facsimile data.  The
   specification facilitates communication among existing facsimile
   devices, Internet mail agents, and the gateways which connect them.

   This document is a revision of RFC 2305.  There have been no
   technical changes.

1. Introduction

   This specification defines message-based facsimile communication over
   the Internet.  It describes a minimum set of capabilities, taking
   into account those of typical facsimile devices and PCs that can
   generate facsimile data.

   A G3Fax device has substantial restrictions due to specifications in
   the standards, such as for timers.  This specification defines a
   profile for Internet mail, rather than creating a distinct "facsimile
   over the Internet" service.  The semantics resulting from the profile
   are designed to be compatible with facsimile operation over the
   general switched telephone network, so that gateways between
   facsimile and Internet mail can operate with very high fidelity.

   The reason for developing this capability as an email profile is to
   permit interworking amongst facsimile and email users.  For example,
   it is intended that existing email users be able to send normal
   messages to lists of users, including facsimile-based recipients, and
   that other email recipients shall be able to reply to the original
   and continue to include facsimile recipients.  Similarly, it is
   intended that existing email software work without modification and
   not be required to process new, or different data structures, beyond
   what is normal for Internet mail users.  Existing email service
   standards are used, rather than replicating mechanisms which are more
   tailored to existing facsimile standards, to ensure this
   compatibility with existing email service.

1.1. Services

   A facsimile-capable device that uses T.4 [15] and the general
   switched telephone network (GSTN) is called a "G3Fax device" in this
   specification.  An "IFax device" is an Internet-accessible device
   capable of sending, receiving or forwarding Internet faxes.  A
   message can be sent to an IFax device using  an Internet mail
   address.  A message can be sent to a G3Fax device  using an Internet
   mail address; the message MAY be forwarded via an IFax offramp
   gateway.

1.2. Cases

   This specification provides for communication between each of the
   following combinations:

   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

1.3. Key Words

   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 [13].

2. Communication Protocols

   The set of conventions necessary to achieve facsimile-compatible
   service covers basic data transport, document data formats, message
   (document) addressing, delivery confirmation, and message security.
   In this section, the first 4 are covered.  The remainder are covered
   in following sections, along with additional details for addressing
   and formats.

2.1. Transport

   This section describes mechanisms involved in the transport between
   IFAX devices.

2.1.1. Relay

   Data transfer MAY be achieved using standard Internet mail transfer
   mechanisms [1, 3].  The format of addresses MUST conform to the RFC
   821 <addr-spec> and RFC 822 <mailbox> Internet mail standards [1, 2,
   3].

2.1.2. Gateway

   A gateway translates between dissimilar environments.  For IFax, a
   gateway connects between Internet mail and the T.4/GSTN facsimile.
   Gateways can service multiple T.4/GSTN facsimile users or can service
   only one.  In the former case, they serve as a classic "mail transfer
   agent" (MTA) and in the latter as a classic "mail user agent" (UA).
   An onramp is a gateway which connects from T.4/GSTN facsimile to
   Internet mail.  An offramp is a gateway which connects from Internet
   mail to T.4/GSTN facsimile. Behavior of onramps is out of scope for
   this specification.

   This specification describes the Internet mail service portion of
   offramp addressing, confirmation and failure notification.  Details
   are provided in later sections.

2.1.3. Mailbox protocols

   An offramp gateway that operate as an MTA serving multiple users
   SHOULD use SMTP; a gateway that operates as a UA serving a single
   mail recipient MAY use a mailbox access protocol such as POP [6] or
   similar mailbox access protocols.

   NOTE: An offramp gateway that relays mail based on addressing
   information needs to ensure that it uses addresses supplied in the
   MTA envelope, rather than from elsewhere, such as addresses listed in
   the message content headers.

2.2. Formats

2.2.1. Headers

   IFax devices MUST be compliant with RFC 2822 and RFC 1123, 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 facsimile image is based on the minimum set of
   TIFF for Facsimile [5], also known as the S profile.   Such facsimile
   data are included in a MIME object by use of the image/TIFF sub-type
   [12].  Additional rules for the use of TIFF for Facsimile, for the
   message-based Internet facsimile 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,
   rather than indicating 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 [9].

   NOTE:  Internet mail transported via SMTP MUST contain a MAIL FROM
          address appropriate for delivery of return notices.  (See
          section 5.2.6.)

2.3.2. Processing Failure

   IFax devices with limited capabilities might be unable to process the
   content of a message.  If this occurs it is important to ensure that
   the message is not lost without any notice.  Notice MAY be provided
   in any appropriate fashion, and the exact handling is a local matter.
   (See Appendix A, second bullet.)

3. Addressing

3.1. Classic Email Destinations

   Messages being sent to normal Internet mail recipients will use
   standard Internet mail addresses, without additional constraints.

3.2. G3Fax Devices

   G3Fax devices are accessed via 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 that is
   named on the right-hand-side (domain).

   The telephone number format SHOULD conform to [7, 8].  Other formats
   MUST be syntactically distinct from [7, 8].

4. Image File Format

   Sending IFax devices MUST be able to write minimum set TIFF files,
   per the rules for creating minimum set TIFF files defined in TIFF for
   Facsimile (the S profile) [5], which is also compatible with the
   specification for the minimum subset of TIFF-F in [14].  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.  The
   mechanism for determining capabilities of recipients is beyond the
   scope of this document.

5. Security Considerations

5.1. General Directive

   This specification is based on use of existing Internet mail.  To
   maintain interoperability with Internet mail, any security to be
   provided should be part of the of the Internet security
   infrastructure, rather than a new mechanism or some other mechanism
   outside of the Internet infrastructure.

5.2. Threats and Problems

   Both Internet mail and G3Fax standards and operational services have
   their own set of threats and countermeasures.  This section attends
   only to the set of additional threats which ensue from integrating
   the two services.  This section reviews relevant concerns about
   Internet mail for IFax environments, as well as considering the
   potential problems which can result of integrating the existing G3Fax
   service with Internet mail.

5.2.1. Spoofed Sender

   The actual sender of the message might not be the same as that
   specified in the Sender or From fields of the message content headers
   or the MAIL FROM address from the SMTP envelope.

   In a tightly constrained environment, sufficient physical and
   software controls may be able to ensure prevention of this problem.
   The usual solution is through encryption-based authentication, either
   for the channel or associated with the object, as discussed below.

   It should be recognized that SMTP implementations do not provide
   inherent authentication of the senders of messages, nor are sites
   under obligation to provide such authentication.  End-to-end
   approaches such as S/MIME and PGP/MIME are currently being developed
   within the IETF.  These technologies can provide such authentication.

5.2.2. Resources Consumed by Dialout

   In addition to the resources normally consumed for email (CPU cycles
   and disk), offramp facsimile causes an outdial which often imposes
   significant resource consumption, such as financial cost.  Techniques
   for establishing authorization of the sender are essential to those
   offramp facsimile services that need to manage such consumption.

   Due to the consumption of these resources by dialout, unsolicited
   bulk email which causes an outdial is undesirable.

   Offramp gateways SHOULD provide the ability to authorize senders in
   some manner to prevent unauthorized use of the offramp.  There are no
   standard techniques for authorization using Internet protocols.

   Typical solutions use simple authentication of the originator to
   establish and verify their identity and then check the identity
   against a private authorization table.

   Originator authentication entails the use of weak or strong
   mechanisms, such as cleartext keywords or encryption-based
   data-signing, respectively, to determine and validate the identify
   of the sender and assess permissions accordingly.

   Other control mechanisms which are common include source filtering
   and originator authentication.  Source filtering entails offramp
   gateway verification of the host or network originating the message
   and permitting or prohibiting relaying accordingly.

5.2.3. GSTN Authorization Information

   Confidential information about the sender necessary to dial a G3Fax
   recipient, such as sender's calling card authorization number, might
   be disclosed to the G3Fax recipient (on the cover page), such as
   through parameters encoded in the G3Fax recipients address in the To:
   or CC: fields.

   Senders SHOULD be provided with a method of preventing such
   disclosure.  As with mechanisms for handling unsolicited faxes, there
   are not yet standard mechanisms for protecting such information.

   Out-of-band communication of authorization information or use of
   encrypted data in special fields are the available non-standard
   techniques.

   Typically authorization needs to be associated to specific senders
   and specific messages, in order to prevent a "replay" attack which
   causes and earlier authorization to enable a later dial-out by a
   different (and unauthorized) sender.  A non-malicious example of such
   a replay would be to have an email recipient reply to all original
   recipients -- including an offramp IFax recipient -- and have the
   original sender's authorization cause the reply to be sent.

5.2.4. Sender Accountability

   In many countries, there is a legal requirement that the "sender" be
   disclosed on a facsimile message.  Email From addresses are trivial
   to fake, so that using only the MAIL FROM [1, 3]  or From [2, 3]
   header is not sufficient.

   Offramps SHOULD ensure that the recipient is provided contact
   information about the offramp, in the event of problems.

   The G3Fax recipient SHOULD be provided with sufficient information
   which permits tracing the originator of the IFax message.  Such
   information might include the contents of the MAIL FROM, From, Sender
   and Reply-To headers, as well as Message-Id and Received headers.

5.2.5. Message Disclosure

   Users of G3Fax devices have an expectation of a level of message
   privacy which is higher than the level provided by Internet mail
   without security enhancements.

   This expectation of privacy by G3Fax users SHOULD be preserved as
   much as possible.

   Sufficient physical and software control may be acceptable in
   constrained environments.  The usual mechanism for ensuring data
   confidentially entail encryption, as discussed below.

5.2.6. Non Private Mailboxes

   With email, bounces (delivery failures) are typically returned to the
   sender and not to a publicly-accessible email account or printer.
   With facsimile, bounces do not typically occur.  However, with IFax,
   a bounce could be sent elsewhere (see section [Delivery Failure]),
   such as a local system administrator's account, publicly-accessible
   account, or an IFax printer (see also [Traffic Analysis]).

5.2.7. Traffic Analysis

   Eavesdropping of senders and recipients is easier on the Internet
   than GSTN.  Note that message object encryption does not prevent
   traffic analysis, but channel security can help to frustrate attempts
   at traffic analysis.

5.3. Security Techniques

   There are two basic approaches to encryption-based security which
   support authentication and privacy:

5.3.1. Channel Security

   As with all email, an IFax message can be viewed as it traverses
   internal networks or the Internet itself.

   Virtual Private Networks (VPN), encrypted tunnels, or transport layer
   security can be used to prevent eavesdropping of a message as it
   traverses such networks.  It also provides some protection against
   traffic analysis, as described above.

   At the current time various protocols exist for performing the above
   functions, and are only mentioned here for information.  Such
   protocols are IPSec [17] and TLS [18].

5.3.2. Object Security

   As with all email, an IFax message can be viewed while it resides on,
   or while it is relayed through, an intermediate Mail Transfer Agent.

   Message encryption can be used to provide end-to-end encryption.

   At the current time two protocols are commonly used for message
   encryption and are only mentioned here for information.  The two
   protocols are PGP-MIME [16] and S/MIME [19].

6. References

6.1. Normative References

   [1]  Klensin, J., Editor, "Simple Mail Transfer Protocol", RFC 2821,
        April 2001.

   [2]  Resnick, P., Editor, "Internet Message Format", RFC 2822, April
        2001.

   [3]  Braden, R., "Requirements for Internet hosts - application and
        support", STD 3, 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]  Buckley, R., Venable, D., McIntyre, L., Parsons, G., and J.
        Rafferty, "File Format for Internet Fax", RFC 3949, November
        2004.

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

   [7]  Allocchio, C., "Minimal GSTN address format for Internet mail",
        RFC 3191, October 2001.

   [8]  Allocchio, C., "Minimal fax address format for Internet mail",
        RFC 3192, October 2001.

   [9]  Moore, K., and G. Vaudreuil, "An Extensible Message Format for
        Delivery Status Notifications", RFC 3464, January 2003.

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

   [11] Moore, K. "MIME (Multipurpose Internet Mail Extensions) Part
        Three: Message Header Extensions for Non-ASCII Text", RFC 2047,
        November 1996.

   [12] Parsons, G. and J. Rafferty, "Tag Image File Format (TIFF) -
        image/tiff MIME Sub-type Registration", RFC 3302, September
        2002.

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

6.2. Informative References

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

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

   [16] Callas, J., Donnerhacke, L., Finney, H., and R. Thayer, "OpenPGP
        Message Format", RFC 2440, November 1998.

   [17] Kent, S. and R. Atkinson, "Security Architecture for the
        Internet Protocol", RFC 2401, November 1998.

   [18] Hoffman, P., "SMTP Service Extension for Secure SMTP over
        Transport Layer Security", RFC 3207, February 2002.

   [19] Ramsdell, B., "S/MIME Version 3 Message Specification", RFC
        2633, June 1999.

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.

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.

Appendix B:  List of edits to RFC 2305

   +----+----------+-------------------------------------------------+
   | No.| Section  |             Edit  July 27, 2001                 |
   +----+----------+-------------------------------------------------+
   | 1. |Copyright | Updated copyright from "1998" to "1999,2000"    |
   |    |Notice    |                                                 |
   +----+----------+-------------------------------------------------+
   | 2. |SUMMARY   | Changed the phrase "over the Internet" to       |
   |    |          |               "using Internet mail"             |
   +----+----------+-------------------------------------------------+
   | 3. |5         | Changed the paragraphs regarding to the         |
   |    |          | following references to make them very          |
   |    |          | non-normative.                                  |
   |    |          |  "OpenPGP Message Format", RFC 2440             |
   |    |          |  "Security Architecture for the IP", RFC 2401   |
   |    |          |  "SMTP Service Extensions for Secure SMTP over  |
   |    |          |   TLS", RFC 2487                                |
   |    |          |  "S/MIME Version 2 Message Specification",      |
   |    |          |   RFC 2311                                      |
   +----+----------+-------------------------------------------------+
   | 4. |REFERENCES| Removed the following references because they   |
   |    |          | are non-normative                               |
   |    |          |  "SMTP Service Extensions for Delivery Status   |
   |    |          |   Notifications", RFC 1891                      |
   |    |          |  "Internet Message Access Protocol", RFC 2060   |
   +----+----------+-------------------------------------------------+
   | 5. |REFERENCES| Separated REFERENCES to the normative and       |
   |    |          | non-normative                                   |
   +----+----------+-------------------------------------------------+
   | 6. |Appendix  | Changed the phrase from "NOT REQUIRED" to       |
   |    | A        | "not required"                                  |
   +----+----------+-------------------------------------------------+
   | 7. |Appendix  | Added "Appendix B  List of edits to RFC 2305"   |
   +----+----------+-------------------------------------------------+

Authors' Addresses

   Kiyoshi Toyoda
   Panasonic Communications Co., Ltd.
   4-1-62 Minoshima Hakata-ku
   Fukuoka 812-8531 Japan

   Fax:   +81 92 477 1389
   EMail: toyoda.kiyoshi@jp.panasonic.com


   Hiroyuki Ohno
   National Institute of Information and Communications Technology
   4-2-1, Nukui-Kitamachi, Koganei, Tokyo,
   184-8795, Japan

   Fax:   +81 42 327 7941
   EMail: hohno@ohnolab.org


   Jun Murai
   Keio University
   5322 Endo, Fujisawa
   Kanagawa 252 Japan

   Fax:   +81 466 49 1101
   EMail: jun@wide.ad.jp


   Dan Wing
   170 W. Tasman Drive
   San Jose, CA 95134 USA

   Phone: +1 408 525 5314
   EMail: dwing@cisco.com

Full Copyright Statement

   Copyright (C) The Internet Society (2004).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, 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 IETF's procedures with respect to rights in IETF Documents can
   be found in BCP 78 and BCP 79.

   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
   http://www.ietf.org/ipr.

   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.

ISO Plain Language

On this page
PROBLEMFax machines speak a compressed image over the telephone network, and email speaks a different protocol entirely. A user who wants to send a fax by email needs both to work together without either side changing.
MECHANISMThe document defines a profile of ordinary Internet mail: the fax image is carried as a TIFF file in a MIME message, sent with the usual mail protocols, and a gateway called an offramp dials the telephone number and sends the image to the fax machine.
WHAT IT DEFINESThe document fixes the message format, the addressing rules for a fax number, and the error handling, and it works through the extra security questions that come from joining two services. It is a revision of RFC 2305 with no technical changes.

§1Introduction

This specification defines message-based facsimile communication over the Internet. It describes a minimum set of capabilities, taking into account those of typical facsimile devices and PCs that can generate facsimile data. A G3Fax device is a facsimile-capable device that uses T.4 and the general switched telephone network, and an IFax device is an Internet-accessible device capable of sending, receiving or forwarding Internet faxes. A message can be sent to an IFax device using an Internet mail address, and a message can be sent to a G3Fax device using an Internet mail address, in which case the message may be forwarded through an IFax offramp gateway.

The document defines a profile for Internet mail rather than a distinct service of its own. The semantics that result are designed to be compatible with facsimile operation over the telephone network, so that gateways between facsimile and Internet mail can operate with very high fidelity.

The reason for developing the capability as an email profile is to permit interworking between fax and email users. It is intended that existing email users be able to send ordinary messages to lists of users, including fax recipients, and that other email recipients be able to reply to the original and keep the fax recipients included. Existing email software is expected to work without modification and without having to process new or different data structures beyond what is normal for mail users, and existing mail service standards are used rather than replicating mechanisms more tailored to fax, so that compatibility with the existing mail service is kept.

The specification provides for communication between five combinations: Internet mail to a network printer, Internet mail to an offramp gateway that forwards to a G3Fax device, a network scanner to a network printer, a network scanner to an offramp gateway that forwards to a G3Fax device, and a network scanner to Internet mail.

The point of doing this as mail rather than as a new service is that everyone already has the software. A person can send a normal email to a fax number, and a reply can go to the same list. Nothing on the mail side has to change, so existing mail programs keep working and the telephone network keeps behaving the way fax machines expect.

THE COMBINATIONS THE SPECIFICATION COVERS
FromTo
Internet mailNetwork printer
Internet mailOfframp gateway, forwarding to a G3Fax device
Network scannerNetwork printer
Network scannerOfframp gateway, forwarding to a G3Fax device
Network scannerInternet mail

§2.1Transport and Gateways

Data transfer may be achieved using standard Internet mail transfer mechanisms, and the format of addresses must conform to the RFC 821 addr-spec and RFC 822 mailbox standards.

A gateway translates between dissimilar environments, and for IFax a gateway connects between Internet mail and the T.4 telephone facsimile. A gateway may service many facsimile users, in which case it acts as a classic mail transfer agent, or only one, in which case it acts as a classic mail user agent. An onramp is a gateway that connects from the telephone facsimile to Internet mail, and an offramp is a gateway that connects from Internet mail to the telephone facsimile. The behaviour of onramps is out of scope for this specification, which describes the Internet mail service portion of offramp addressing, confirmation and failure notification.

An offramp gateway that operates as a mail transfer agent serving many users should use SMTP, while a gateway that operates as a mail user agent serving a single mail recipient may use a mailbox access protocol such as POP or a similar protocol. The document notes that an offramp gateway that relays mail based on addressing information needs to use the addresses supplied in the MTA envelope rather than addresses listed in the message content headers.

The gateway comes in two kinds. An onramp takes a fax that arrives over the telephone and turns it into mail; the document leaves that alone. An offramp takes mail and dials out to a fax machine, and that is where the addressing, the confirmation and the failure notices are handled. A gateway serving many fax users behaves like a mail server, and one serving a single user may instead pick the mail up from a mailbox.

SENDING A FAX BY MAIL THROUGH AN OFFRAMP
Mail senderOfframp gatewayG3Fax device
  1. MAILThe fax image is sent as an ordinary mail message with a TIFF attachment.
  2. DIALThe offramp dials the telephone number and sends the image over the telephone network.
  3. DSNA failure notice goes back if the delivery did not succeed.
THE TWO KINDS OF GATEWAY
  • OnrampConnects from the telephone facsimile to Internet mail. Its behaviour is out of scope.
  • OfframpConnects from Internet mail to the telephone facsimile and performs the dial-out.
  • Serving many usersA gateway that behaves like a mail transfer agent, and should use SMTP.
  • Serving one userA gateway that behaves like a mail user agent, and may use a mailbox access protocol.

§2.2Headers, MIME and the Image

IFax devices must be compliant with the mail header format of RFC 2822 and RFC 1123. The header of an IFax message should include Message-ID and must include all the fields those documents require, such as DATE and FROM. IFax devices must also be compliant with MIME, except as noted in the document's appendix.

The data format of the facsimile image is based on the minimum set of TIFF for Facsimile, also known as the S profile, and such facsimile data are included in a MIME object by use of the image/TIFF sub-type. Additional rules for the use of TIFF for Facsimile in this message-based application are defined later in the document.

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 the processing of any part fails, then the processing of the whole message is treated as having failed.

The message is an ordinary mail message with the usual headers, and the page is attached as a TIFF file, in the simplest black-and-white format a fax can use. Sending several pages as one multi-page file is better, but a receiver has to cope with a message that carries several separate files, and if one of them cannot be handled the whole message counts as failed.

§2.3Error Handling

For a delivery failure, the document describes existing requirements for Internet mail rather than special requirements for IFax devices. In the event of a relay failure the sending relay must generate a failure message, which should be in the format of a delivery status notification. Internet mail transported via SMTP must contain a MAIL FROM address appropriate for the delivery of return notices.

A processing failure is a different matter. An IFax device with limited capabilities might be unable to process the content of a message, and in that case it is important that the message is not lost without any notice. Notice may be provided in any appropriate fashion and the exact handling is a local matter.

There are two kinds of failure. If the mail cannot be relayed, the mail system reports it in the usual way, as a delivery status notification. If the mail arrives but the device cannot handle what is inside it, the device should at least let somebody know, because otherwise the message disappears quietly.

§3Addressing

Messages sent to ordinary mail recipients use standard Internet mail addresses, with no additional constraints.

G3Fax devices are accessed through an IFax offramp gateway, which performs any authorized telephone dial-up. When a G3Fax device is identified by a telephone number, the entire address used for that device, including the number and the offramp host reference, must be contained within standard Internet mail transport fields such as RCPT TO and MAIL FROM. The address may also be contained in message content fields, such as the recipient and destination fields, as appropriate.

As for all Internet mail addresses, the left-hand side of an address is not to be interpreted except by the MTA named on the right-hand side, the domain. The telephone number format should conform to the minimal GSTN and fax address formats, and other formats must be syntactically distinct from them.

An ordinary recipient is addressed in the ordinary way. A fax machine is addressed by its telephone number, together with a reference to the gateway that should dial it, and the whole thing has to sit in the envelope of the mail message rather than only in a header, so that the mail server can act on it.

§4Image 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, which is also compatible with the specification for the minimum subset of TIFF-F. 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. The mechanism for determining the capabilities of recipients is beyond the scope of this document.

Every sender must be able to write the simplest black-and-white TIFF and every receiver must be able to read it, because that is the common denominator between a fax machine and an email program. Sending anything richer needs prior knowledge that the receiver can handle it, and the document does not define how to find that out.

§5Security Considerations

The general directive is that this specification is based on the use of existing Internet mail, so to keep interoperability with mail, any security provided should be part of the Internet security infrastructure rather than a new mechanism outside it.

The document then works through the additional threats that come from joining the two services. A spoofed sender is possible, because the actual sender of the message might not be the one named in the Sender or From headers or in the SMTP envelope, and SMTP implementations do not provide inherent authentication of senders. The usual solution is encryption-based authentication, either for the channel or associated with the object, and S/MIME and PGP/MIME can provide it.

Resources consumed by dialout are the next concern. Beyond the CPU cycles and disk that email uses, an offramp fax causes an outdial that often costs real money, so techniques for authorizing the sender are essential for gateways that need to manage that cost, and unsolicited bulk mail that causes an outdial is undesirable. There are no standard techniques for authorization using Internet protocols; typical solutions use simple authentication of the originator, or encryption-based data signing, and then check the identity against a private authorization table. Other common controls are source filtering, where the gateway checks the host or network the message came from, and originator authentication.

Confidential GSTN authorization information, such as a calling card authorization number, might be disclosed to the G3Fax recipient on the cover page, for example through parameters encoded in the address in the To or CC fields. Senders should be given a way of preventing such disclosure, but there are not yet standard mechanisms for protecting that information; out-of-band communication of the authorization information or encrypted data in special fields are the available non-standard techniques. Authorization usually needs to be tied to a specific sender and a specific message, to stop a replay attack in which an earlier authorization lets a later dial-out happen by a different and unauthorized sender. A harmless version of the same problem is an email recipient who replies to all the original recipients, including a fax recipient, so that the original sender's authorization causes the reply to be sent.

Sender accountability is the next point. In many countries there is a legal requirement that the sender be disclosed on a facsimile message, and email From addresses are trivial to fake, so using only the MAIL FROM or From header is not sufficient. Offramps should ensure the recipient is given contact information about the offramp in case of problems, and the G3Fax recipient should be given enough information to trace the originator, which might include the contents of the MAIL FROM, From, Sender and Reply-To headers, and the Message-ID and Received headers.

Message disclosure matters because users of fax devices expect a higher level of message privacy than mail without security enhancements gives, and that expectation should be preserved as far as possible; the usual mechanism for ensuring confidentiality is encryption. With non-private mailboxes, bounces usually go back to the sender rather than to a publicly accessible account or printer, but a fax bounce could go elsewhere, such as a local system administrator's account, a publicly accessible account, or an IFax printer. Traffic analysis is easier on the Internet than on the telephone network, and while encrypting the message does not prevent traffic analysis, channel security can help to frustrate such attempts.

Two kinds of encryption-based security support authentication and privacy. Channel security protects a message as it traverses internal networks or the Internet, using virtual private networks, encrypted tunnels or transport layer security, and also gives some protection against traffic analysis; IPsec and TLS are the protocols mentioned for this. Object security protects a message while it resides on, or is relayed through, an intermediate mail transfer agent, using message encryption to give end-to-end encryption, with PGP-MIME and S/MIME mentioned as the two protocols commonly used.

Joining mail and the telephone network raises questions that neither service has on its own. A mail address can be faked, so the sender of a fax may not be who the message says. Dialing out costs money, so a gateway needs some way to check who may send through it, and there is no standard way to do that. A calling card number can leak onto the fax cover page. And a fax is expected to be more private than an email, which plain mail does not deliver.

THE EXTRA THREADS THAT COME WITH JOINING THE TWO SERVICES
  • Spoofed senderThe real sender may not be the one named in the headers or in the envelope.
  • Cost of dial-outA fax costs money to send, so bulk mail that causes a dial-out is a problem.
  • Confidential details on the cover pageA calling card number may be shown to the fax recipient; senders should be able to prevent that.
  • Sender accountabilityMany countries require the sender to be disclosed on a fax, and email addresses are easy to fake.
  • Message disclosureFax users expect more privacy than plain mail gives them.
  • Traffic analysisIt is easier to see who is sending to whom on the Internet than on the telephone network.
TWO WAYS TO PROTECT THE MESSAGE
ApproachWhat it protectsProtocols named
Channel securityThe message as it crosses internal networks and the Internet.IPsec and TLS
Object securityThe message while it sits on or passes through a mail server.PGP-MIME and S/MIME

§8References