home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_j_p / draft-ietf-mixer-rfc1664bis-00.txt < prev    next >
Text File  |  1997-01-31  |  57KB  |  1,347 lines

  1.  
  2. Network Working                                  C. Allocchio (editor)
  3. Group                                                   G.A.R.R. Italy
  4. INTERNET-DRAFT                                            January 1997
  5.                                                Expires:    August 1997
  6.                               File: draft-ietf-mixer-rfc1664bis-00.txt
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                  Using the Internet DNS to Distribute
  13.             MIXER Conformant Global Address Mapping (MCGAM)
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Status of this Memo
  20.  
  21. This document is an Internet Draft.  Internet Drafts are working
  22. documents of the Internet Engineering Task Force (IETF), its Areas,
  23. and its Working Groups.  Note that other groups may also distribute
  24. working documents as Internet Drafts.  Internet Drafts are draft
  25. documents valid for a maximum of six months.  Internet Drafts may be
  26. updated, replaced, or obsoleted by other documents at any time.  It is
  27. not appropriate to use Internet Drafts as reference material or to
  28. cite them other than as a ``working draft'' or ``work in progress.''
  29. Please check the I-D abstract listing contained in each Internet Draft
  30. directory to learn the current status of this or any other Internet
  31. Draft.
  32.  
  33.  
  34. Allocchio                                                       [Page 0]
  35.  
  36. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  37.  
  38.  
  39.  
  40.  
  41. Network Working Group                                       C. Allocchio
  42. Request for Comments: 1664bis                                 GARR-Italy
  43. Category: Internet-Draft                                    January 1997
  44. Obsoletes: RFC1664
  45.  
  46.                                                              
  47.  
  48.  
  49.                  Using the Internet DNS to Distribute
  50.             MIXER Conformant Global Address Mapping (MCGAM)
  51.  
  52. Status of this Memo
  53.  
  54.    This memo will be submitted to the RFC editor as a protocole
  55.    specification for the Internet community. This memo obsoletes 
  56.    RFC1664, updating its specifications to conform with MIXER (updated
  57.    version of RFC1327). Distribution of this memo is unlimited.
  58.  
  59. Abstract
  60.  
  61.    This memo is the complete technical specification to store in the
  62.    Internet Domain Name System (DNS) the mapping information (MCGAM)
  63.    needed by MIXER conformant e-mail gateways and other tools to map
  64.    RFC822 domain names into X.400 O/R names and vice versa.  Mapping
  65.    information can be managed in a distributed rather than a centralised
  66.    way. Organizations can publish their MIXER mapping or preferred
  67.    gateway routing information using just local resources (their local
  68.    DNS server), avoiding the need for a strong coordination with any
  69.    centralised organization. MIXER conformant gateways and tools located
  70.    on Internet hosts can retrieve the mapping information querying the
  71.    DNS instead of having fixed tables which need to be centrally updated
  72.    and distributed.  
  73.  
  74.    This memo obsoletes RFC1664. It includes the changes introduced by
  75.    MIXER specification with respect to RFC1327: the new 'gate1' (O/R
  76.    addresses to domain) table is fully supported. Full backward
  77.    compatibility with RFC1664 specification is mantained, too. 
  78.  
  79.    RFC1664 was a joint effort of IETF X400 operation working group
  80.    (x400ops) and TERENA (formely named "RARE") Mail and Messaging working
  81.    group (WG-MSG). This update was performed by the IETF MIXER working 
  82.    group.
  83.  
  84. 1. Introduction
  85.  
  86.    The connectivity between the Internet SMTP mail and other mail
  87.    services, including the Internet X.400 mail and the commercial X.400
  88.    service providers, is assured by the Mail eXchanger (MX) record
  89.    information distributed via the Internet Domain Name System (DNS). A
  90.  
  91.  
  92. Allocchio                                                       [Page 1]
  93.  
  94. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  95.  
  96.  
  97.    number of documents then specify in details how to convert or encode
  98.    addresses from/to RFC822 style to the other mail system syntax.
  99.    However, only conversion methods provide, via some algorithm or a set
  100.    of mapping rules, a smooth translation, resulting in addresses
  101.    indistinguishable from the native ones in both RFC822 and foreign
  102.    world.
  103.  
  104.    MIXER describes a set of mappings (MIXER Conformant Global Address
  105.    Mapping - MCGAM) which will enable interworking between systems
  106.    operating the CCITT X.400 (1984/88/92) Recommendations and systems using
  107.    using the RFC822 mail protocol, or protocols derived from RFC822. That
  108.    document addresses conversion of services, addresses, message
  109.    envelopes, and message bodies between the two mail systems.
  110.    This document is concerned with one aspect of MIXER: the mechanism
  111.    for mapping between X.400 O/R addresses and RFC822 domain names. As
  112.    described in Appendix F of MIXER, implementation of the mappings
  113.    requires a database which maps between X.400 O/R addresses and domain
  114.    names; in RFC1327 this database was statically defined.
  115.  
  116.    The original approach in RFC1327 required many efforts to maintain the
  117.    correct mapping: all the gateways needed to get coherent tables to apply
  118.    the same mappings, the conversion tables had to be distributed among all
  119.    the operational gateways, and also every update needed to be distributed.
  120.  
  121.    The concept of mapping rules distribution and use has been revised in
  122.    the new MIXER specification, introducing the concept of MIXER Conformant
  123.    Global Address Mapping (MCGAM). A MCGAM does not need to be globally 
  124.    installed by any MIXER conformant gateway in the world any more. However
  125.    MIXER requires now efficient methods to publish its MCGAM.
  126.  
  127.    Static tables are one of the possible methods to publish MCGAM.
  128.    However this static mechanism requires quite a long time to be spent
  129.    modifying and distributing the information, putting heavy constraints
  130.    on the time schedule of every update.  In fact it does not appear
  131.    efficient compared to the Internet Domain Name Service (DNS).  More
  132.    over it does not look feasible to distribute the database to a large
  133.    number of other useful applications, like local address converters,
  134.    e-mail User Agents or any other tool requiring the mapping rules to
  135.    produce correct results.
  136.  
  137.    Two much more efficient methods are proposed by MIXER for publication
  138.    of MCGAM: the Internet DNS and X.500. This memo is the complete
  139.    technical specification for publishing MCGAM via Internet DNS.
  140.  
  141.    A first proposal to use the Internet DNS to store, retrieve and
  142.    maintain those mappings was introduced by two of the authors of
  143.    RFC1664 (B. Cole and R. Hagens) adopting two new DNS resource record
  144.    (RR)  types: TO-X400 and TO-822. This proposal now adopts a more
  145.    complete strategy, and requires one new RR only. The distribution of
  146.    MCGAMs via DNS is in fact an important service for the whole Internet
  147.    community: it completes the information given by MX resource record
  148.  
  149.  
  150. Allocchio                                                       [Page 2]
  151.  
  152. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  153.  
  154.  
  155.    and it allows to produce clean addresses when messages are exchanged
  156.    among the Internet RFC822 world and the X.400 one (both Internet and
  157.    Public X.400 service providers).
  158.  
  159.    A first experiment in using the DNS without expanding the current set
  160.    of RR and using available ones was deployed by some of the authors of
  161.    RFC1664 at the time of its development. The existing PTR resource
  162.    records were used to store the mapping rules, and a new DNS tree was
  163.    created under the ".it" top level domain. The result of the experiment
  164.    was positive, and a few test applications ran under this provisional
  165.    set up. This test was also very useful in order to define a possible
  166.    migration strategy during the deployment of the new DNS containing
  167.    the new RR. The Internet DNS nameservers wishing to provide this
  168.    mapping information need in fact to be modified to support the new RR
  169.    type, and in the real Internet, due to the large number of different
  170.    implementations, this takes some time.
  171.  
  172.    The basic idea is to adopt a new DNS RR to store the mapping
  173.    information. The RFC822 to X.400 mapping rules (including the so
  174.    called 'gate2' rules) will be stored in the ordinary DNS tree, while
  175.    the definition of a new branch of the name space defined under each
  176.    national top level domain is envisaged in order to contain the X.400
  177.    to RFC822 mappings ('table1' and 'gate1'). A "two-way" mapping
  178.    resolution schema is thus fully implemented.
  179.  
  180.    The creation of the new domain name space representing the X.400 O/R
  181.    names structure also provides the chance to use the DNS to distribute
  182.    dynamically other X.400 related information, thus solving other
  183.    efficiency problems currently affecting the X.400 MHS service.
  184.  
  185.    In this paper we will adopt the MCGAM syntax, showing how it can be
  186.    stored into the Internet DNS.
  187.  
  188. 1.1 Definitions syntax
  189.  
  190.    The definitions in this document is given in BNF-like syntax, using
  191.    the following conventions:
  192.  
  193.       |   means choice
  194.       \   is used for continuation of a definition over several lines
  195.       []  means optional
  196.       {}  means repeated one or more times
  197.  
  198.    The definitions, however, are detailed only until a certain level,
  199.    and below it self-explaining character text strings will be used.
  200.  
  201. 2. Motivation
  202.  
  203.    Implementations of MIXER gateways require that a database store
  204.    address mapping information for X.400 and RFC822. This information
  205.    must be made available (published) to all MIXER gateways. In the
  206.  
  207.  
  208. Allocchio                                                       [Page 3]
  209.  
  210. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  211.  
  212.  
  213.    Internet community, the DNS has proven to be a practical mean for
  214.    providing a distributed name service. Advantages of using a DNS
  215.    based system over a table based approach for mapping between O/R
  216.    addresses and domain names are:
  217.  
  218.      - It avoids fetching and storing of entire mapping tables by every
  219.        host that wishes to implement MIXER gateways and/or tools
  220.  
  221.      - Modifications to the DNS based mapping information can be made
  222.        available in a more timely manner than with a table driven
  223.        approach.
  224.  
  225.      - It allows full authority delegation, in agreement with the
  226.        Internet regionalization process.
  227.  
  228.      - Table management is not necessarily required for DNS-based
  229.        MIXER gateways.
  230.  
  231.      - One can determine the mappings in use by a remote gateway by
  232.        querying the DNS (remote debugging).
  233.  
  234.    Also many other tools, like address converters and User Agents can
  235.    take advantage of the real-time availability of MIXER tables,
  236.    allowing a much easier maintenance of the information.
  237.  
  238. 3. The domain space for X.400 O/R name addresses
  239.  
  240.    Usual domain names (the ones normally used as the global part of an
  241.    RFC822 e-mail address) and their associated information, i.e., host
  242.    IP addresses, mail exchanger names, etc., are stored in the DNS as a
  243.    distributed database under a number of top-level domains. Some top-
  244.    level domains are used for traditional categories or international
  245.    organisations (EDU, COM, NET, ORG, INT, MIL...). On the other hand
  246.    any country has its own two letter ISO country code as top-level
  247.    domain (FR, DE, GB, IT, RU, ...), including "US" for USA.  The
  248.    special top-level/second-level couple IN-ADDR.ARPA is used to store
  249.    the IP address to domain name relationship. This memo defines in
  250.    the above structure the appropriate way to locate the X.400 O/R name
  251.    space, thus enabling to store in DNS the MIXER mappings (MCGAMs).
  252.  
  253.    The MIXER mapping information is composed by four tables: 
  254.  
  255.     - 'table1' and 'gate1' gives the translation from X.400 to RFC822;
  256.     - 'table2' and 'gate2' tables map RFC822 into X.400.
  257.  
  258.    Each mapping table is composed by mapping rules, and a single 
  259.    mapping rule is composed by a keyword (the argument of the mapping
  260.    function derived from the address to be translated) and a translator
  261.    (the mapping function parameter):
  262.  
  263.                           keyword#translator#
  264.  
  265.  
  266. Allocchio                                                       [Page 4]
  267.  
  268. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  269.  
  270.  
  271.    the '#' sign is a delimiter enclosing the translator. An example:
  272.  
  273.                 foo.bar.us#PRMD$foo\.bar.ADMD$intx.C$us#
  274.  
  275.    Local mappings are not intended for use outside their restricted
  276.    environment, thus they should not be included in DNS. If local
  277.    mappings are used, they should be stored using static local tables,
  278.    exactly as local static host tables can be used with DNS.
  279.  
  280.    The keyword of a 'table2' and 'gate2' table entry is a valid RFC822
  281.    domain; thus the usual domain name space can be used without problems
  282.    to store these entries.
  283.    On the other hand, the keyword of a 'table1' and 'gate1' entry
  284.    belongs to the X.400 O/R name space. The X.400 O/R name space 
  285.    does not usually fit into the usual domain name space, although
  286.    there are a number of similarities; a new name structure is thus
  287.    needed to represent it. This new name structure contains the X.400
  288.    mail domains.
  289.  
  290.    To ensure the correct functioning of the DNS system, the new X.400
  291.    name structure must be hooked to the existing domain name space in a
  292.    way which respects the existing name hierarchy.
  293.  
  294.    A possible solution was to create another special branch, starting
  295.    from the root of the DNS tree, somehow similar to the in-addr.arpa
  296.    tree. This idea would have required to establish a central authority
  297.    to coordinate at international level the management of each national
  298.    X.400 name tree, including the X.400 public service providers. This
  299.    coordination problem is a heavy burden if approached globally. More
  300.    over the X.400 name structure is very 'country oriented': thus while
  301.    it requires a coordination at national level, it does not have
  302.    concepts like the international root. In fact the X.400 international
  303.    service is based  on a large number of bilateral agreements, and only
  304.    within some communities an international coordination service exists.
  305.  
  306.    The X.400 two letter ISO country codes, however, are the same used
  307.    for the RFC822 country top-level domains and this gives us an
  308.    appropriate hook to insert the new branches. The proposal is, in
  309.    fact, to create under each national top level ISO country code a new
  310.    branch in the name space. This branch represents exactly the X.400
  311.    O/R name structure as defined in each single country, following the
  312.    ADMD, PRMD, O, OU hierarchy. A unique reserved label 'X42D' is placed
  313.    under each country top-level domain, and hence the national X.400
  314.    name space derives its own structure:
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324. Allocchio                                                       [Page 5]
  325.  
  326. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  327.  
  328.  
  329.                                     . (root)
  330.                                     |
  331.       +-----------------+-----------+--------+-----------------+...
  332.       |                 |                    |                 |
  333.      edu                it                   us                fr
  334.       |                 |                    |                 |
  335.   +---+---+...    +-----+-----+...     +-----+-----+...     +--+---+...
  336.   |       |       |     |     |        |     |     |        |      |
  337.  ...     ...     cnr   X42D  infn      va    ca   X42D     X42D  inria
  338.                         |                    |     |        |
  339.            +------------+------------+...   ...   ...  +----+-------+...
  340.            |            |            |                 |            |
  341.     ADMD-PtPostel  ADMD-garr  ADMD-Master400        ADMD-atlas  ADMD-red
  342.                         |            |                 |            |
  343.              +----------+----+...   ...        +-------+------+... ...
  344.              |               |                 |              |
  345.          PRMD-infn       PRMD-STET        PRMD-Telecom   PRMD-Renault
  346.              |               |                 |              |
  347.             ...             ...               ...            ...
  348.  
  349.  
  350.    The creation of the X.400 new name tree at national level solves the
  351.    problem of the international coordination. Actually the coordination
  352.    problem is just moved at national level, but it thus becomes easier
  353.    to solve. The coordination at national level between the X.400
  354.    communities and the Internet world is already a requirement for the
  355.    creation of the national static MIXER mapping tables; the use of
  356.    the Internet DNS gives further motivations for this coordination.
  357.  
  358.    The coordination at national level also fits in the new concept of
  359.    MCGAM pubblication. The DNS in fact allows a step by step authority
  360.    distribution, up to a final complete delegation: thus organizations
  361.    whishing to publish their MCGAM just need to receive delegation also
  362.    for their branch of the new X.400 name space. A further advantage of
  363.    the national based solution is to allow each country to set up its 
  364.    own X.400 name structure in DNS and to deploy its own authority
  365.    delegation according to its local time scale and requirements, with
  366.    no loss of global service in the mean time. And last, placing the
  367.    new X.400 name tree and coordination process at national level fits
  368.    into the Internet regionalization and internationalisation process,
  369.    as it requires local bodies to take care of local coordination 
  370.    problems.
  371.  
  372.    The DNS name space thus contains completely the information required
  373.    by an e-mail gateway or tool to perform the X.400-RFC822 mapping: a
  374.    simple query to the nearest nameserver provides it. Moreover there is
  375.    no more any need to store, maintain and distribute manually any
  376.    mapping table. The new X.400 name space can also contain further
  377.    information about the X.400 community, as DNS allows for it a
  378.  
  379.  
  380.  
  381. Allocchio                                                       [Page 6]
  382.  
  383. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  384.  
  385.  
  386.    complete set of resource records, and thus it allows further
  387.    developments. This set of RRs in the new X.400 name space must be
  388.    considered 'reserved' and thus not used until further specifications.
  389.  
  390.    The construction of the new domain space trees will follow the same
  391.    procedures used when organising at first the already existing DNS
  392.    space: at first the information will be stored in a quite centralised
  393.    way, and distribution of authority will be gradually achieved. A
  394.    separate document will describe the implementation phase and the
  395.    methods to assure a smooth introduction of the new service.
  396.  
  397. 4. The new DNS resource record for MIXER mapping rules: PX
  398.  
  399.    The specification of the Internet DNS (RFC1035) provides a number of
  400.    specific resource records (RRs) to contain specific pieces of
  401.    information. In particular they contain the Mail eXchanger (MX) RR
  402.    and the host Address (A) records which are used by the Internet SMTP
  403.    mailers. As we will store the RFC822 to X.400 mapping information in
  404.    the already existing DNS name tree, we need to define a new DNS RR in
  405.    order to avoid any possible clash or misuse of already existing data
  406.    structures. The same new RR will also be used to store the mappings
  407.    from X.400 to RFC822. More over the mapping information, i.e., the
  408.    MCGAMs, has a specific format and syntax which require an
  409.    appropriate data structure and processing. A further advantage of
  410.    defining a new RR is the ability to include flexibility for some
  411.    eventual future development.
  412.  
  413.    The definition of the new 'PX' DNS resource record is:
  414.  
  415.       class:        IN   (Internet)
  416.  
  417.       name:         PX   (pointer to X.400/RFC822 mapping information)
  418.  
  419.       value:        26
  420.  
  421.    The PX RDATA format is:
  422.  
  423.           +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  424.           |                  PREFERENCE                   |
  425.           +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  426.           /                    MAP822                     /
  427.           /                                               /
  428.           +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  429.           /                    MAPX400                    /
  430.           /                                               /
  431.           +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  432.  
  433.    where:
  434.  
  435.  
  436.  
  437. Allocchio                                                       [Page 7]
  438.  
  439. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  440.  
  441.  
  442.    PREFERENCE   A 16 bit integer which specifies the preference given to
  443.                 this RR among others at the same owner.  Lower values
  444.                 are preferred;
  445.  
  446.    MAP822       A <domain-name> element containing <rfc822-domain>, the
  447.                 RFC822 part of the MCGAM;
  448.  
  449.    MAPX400      A <domain-name> element containing the value of
  450.                 <x400-in-domain-syntax> derived from the X.400 part of
  451.                 the MCGAM (see sect. 4.2);
  452.  
  453.    PX records cause no additional section processing. The PX RR format
  454.    is the usual one:
  455.  
  456.              <name> [<class>] [<TTL>] <type> <RDATA>
  457.  
  458.    When we store in DNS a 'table1' or a 'gate1' entry, then <name> will
  459.    be an X.400 mail domain name in DNS syntax (see sect. 4.2). When we
  460.    store a 'table2' or a 'gate2' table entry, <name> will be an RFC822
  461.    mail domain name, including both fully qualified DNS domains and mail
  462.    only domains (MX-only domains). All normal DNS conventions, like
  463.    default values, wildcards, abbreviations and message compression,
  464.    apply also for all the components of the PX RR. In particular <name>,
  465.    MAP822 and MAPX400, as <domain-name> elements, must have the final
  466.    "." (root) when they are fully qualified.
  467.  
  468. 4.1 Additional features of the PX resource record
  469.  
  470.    The definition of the RDATA for the PX resource record, and the fact
  471.    that DNS allows a distinction between an exact value and a wildcard
  472.    match for the <name> parameter, represent an extension of the MIXER
  473.    specification for mapping rules. In fact, any MCGAM entry is an
  474.    implicit wildcard entry, i.e., the rule
  475.  
  476.       net2.it#PRMD$net2.ADMD$p400.C$it#
  477.  
  478.    covers any RFC822 domain ending with 'net2.it', unless more detailed
  479.    rules for some subdomain in 'net2.it' are present. Thus there is no
  480.    possibility to specify explicitly a MCGAM as an exact match only
  481.    rule. In DNS an entry like
  482.  
  483.       *.net2.it.   IN  PX  10   net2.it.  PRMD-net2.ADMD-p400.C-it.
  484.  
  485.    specify the usual wildcard match as for MIXER tables. However an
  486.    entry like
  487.  
  488.       ab.net2.it.  IN  PX  10   ab.net2.it.  O-ab.PRMD-net2.ADMDb.C-it.
  489.  
  490.  
  491.  
  492.  
  493. Allocchio                                                       [Page 8]
  494.  
  495. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  496.  
  497.  
  498.    is valid only for an exact match of 'ab.net2.it' RFC822 domain.
  499.  
  500.    Note also that in DNS syntax there is no '#' delimiter around MAP822
  501.    and MAPX400 fields: the syntax defined in sect. 4.2 in fact does not
  502.    allow the <blank> (ASCII decimal 32) character within these fields,
  503.    making unneeded the use of an explicit delimiter as required in the
  504.    MIXER original syntax.
  505.  
  506.    Another extension to the MIXER specifications is the PREFERENCE
  507.    value defined as part of the PX RDATA section. This numeric value has
  508.    exactly the same meaning than the similar one used for the MX RR. It
  509.    is thus possible to specify more than one single mapping for a domain
  510.    (both from RFC822 to X.400 and vice versa), giving as the preference
  511.    order. In MIXER static tables, however, you cannot specify more
  512.    than one mapping per each RFC822 domain, and the same restriction
  513.    apply for any X.400 domain mapping to an RFC822 one.
  514.  
  515.    More over, in the X.400 recommendations a note suggests than an
  516.    ADMD=<blank> should be reserved for some special cases. Various
  517.    national functional profile specifications for an X.400 MHS states
  518.    that if an X.400 PRMD is reachable via any of its national ADMDs,
  519.    independently of its actual single or multiple connectivity with
  520.    them, it should use ADMD=<blank> to advertise this fact. Again, if a
  521.    PRMD has no connections to any ADMD it should use ADMD=0 to notify
  522.    its status, etc. However, in most of the current real situations, the
  523.    ADMD service providers do not accept messages coming from their
  524.    subscribers if they have a blank ADMD, forcing them to have their own
  525.    ADMD value. In such a situation there are problems in indicating
  526.    properly the actually working mappings for domains with multiple
  527.    connectivity. The PX RDATA 'PREFERENCE' extension was introduced to
  528.    take in consideration these problems.
  529.  
  530.    However, as these extensions are not available with MIXER static
  531.    tables, it is strongly discouraged to use them when interworking with
  532.    any table based gateway or application. The extensions were in fact
  533.    introduced just to add more flexibility, like the PREFERENCE value,
  534.    or they were already implicit in the DNS mechanism, like the wildcard
  535.    specification. They should be used very carefully or just considered
  536.    'reserved for future use'. In particular, for current use, the
  537.    PREFERENCE value in the PX record specification should be fixed to a
  538.    value of 50, and only wildcard specifications should be used when
  539.    specifying <name> values.
  540.  
  541. 4.2 The DNS syntax for an X.400 'domain'
  542.  
  543.    The syntax definition of the MCGAM rules is defined in appendix F of
  544.    that document. However that syntax is not very human oriented and
  545.    contains a number of characters which have a special
  546.  
  547.  
  548.  
  549. Allocchio                                                       [Page 9]
  550.  
  551. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  552.  
  553.  
  554.    meaning in other fields of the Internet DNS. Thus in order to avoid
  555.    any possible problem, especially due to some old DNS implementations
  556.    still being used in the Internet, we define a syntax for the X.400
  557.    part of any MCGAM rules (and hence for any X.400 O/R name) which
  558.    makes it compatible with a <domain-name> element, i.e.,
  559.  
  560.    <domain-name>    ::= <subdomain> | " "
  561.    <subdomain>      ::= <label> | <label> "." <subdomain>
  562.    <label>          ::= <alphanum>|
  563.                         <alphanum> {<alphanumhyphen>} <alphanum>
  564.    <alphanum>       ::= "0".."9" | "A".."Z" | "a".."z"
  565.    <alphanumhyphen> ::= "0".."9" | "A".."Z" | "a".."z" | "-"
  566.  
  567.    (see RFC1035, section 2.3.1, page 8).  The legal character set for
  568.    <label> does not correspond to the IA5 Printablestring one used in
  569.    MIXER to define MCGAM rules. However a very simple "escape 
  570.    mechanism" can be applied in order to bypass the problem. We can in
  571.    fact simply describe the X.400 part of a MCGAM rule format as:
  572.  
  573.      <map-rule>   ::= <map-elem> | <map-elem> { "." <map-elem> }
  574.      <map-elem>   ::= <attr-label> "$" <attr-value>
  575.      <attr-label> ::= "C" | "ADMD" | "PRMD" | "O" | "OU"
  576.      <attr-value> ::= " " | "@" | IA5-Printablestring
  577.  
  578.    As you can notice <domain-name> and <map-rule> look similar, and also
  579.    <label> and <map-elem> look the same. If we define the correct method
  580.    to transform a <map-elem> into a <label> and vice versa the problem
  581.    to write a MCGAM rule in <domain-name> syntax is solved.
  582.  
  583.    The RFC822 domain part of any MCGAM rule is of course already in
  584.    <domain-name> syntax, and thus remains unchanged.
  585.  
  586.    In particular, in a 'table1' or 'gate1' mapping rule the 'keyword'
  587.    value must be converted into <x400-in-domain-syntax> (X.400 mail
  588.    DNS mail domain), while the 'translator' value is already a valid
  589.    RFC822 domain.  Vice versa in a 'table2' or 'gate2' mapping rule,
  590.    the 'translator' must be converted into <x400-in-domain-syntax>,
  591.    while the 'keyword' is already a valid RFC822 domain.
  592.  
  593. 4.2.1 IA5-Printablestring to <alphanumhyphen> mappings
  594.  
  595.    The problem of unmatching IA5-Printablestring and <label> character
  596.    set definition is solved by a simple character mapping rule: whenever
  597.    an IA5 character does not belong to <alphanumhyphen>, then it is
  598.    mapped using its 3 digit decimal ASCII code, enclosed in hyphens. A
  599.    small set of special rules is also defined for the most frequent
  600.    cases. Moreover some frequent characters combinations used in MIXER
  601.  
  602.  
  603.  
  604. Allocchio                                                      [Page 10]
  605.  
  606. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  607.  
  608.  
  609.    rules are also mapped as special cases.
  610.  
  611.    Let's then define the following simple rules:
  612.  
  613.     MCGAM rule            DNS store translation    conditions
  614.     -----------------------------------------------------------------
  615.     <attr-label>$@        <attr-label>             missing attribute
  616.     <attr-label>$<blank>  <attr-label>"b"          blank attribute
  617.     <attr-label>$xxx      <attr-label>-xxx         elsewhere
  618.  
  619.    Non <alphanumhyphen> characters in <attr-value>:
  620.  
  621.     MCGAM rule            DNS store translation    conditions
  622.     -----------------------------------------------------------------
  623.     -                     -h-                      hyphen
  624.     \.                    -d-                      quoted dot
  625.     <blank>               -b-                      blank
  626.     <non A/N character>   -<3digit-decimal>-       elsewhere
  627.  
  628.    If the DNS store translation of <attr-value> happens to end with an
  629.    hyphen, then this last hyphen is omitted.
  630.  
  631.    Let's now have some examples:
  632.  
  633.     MCGAM rule            DNS store translation    conditions
  634.     -----------------------------------------------------------------
  635.     PRMD$@                PRMD                     missing attribute
  636.     ADMD$<blank>          ADMDb                    blank attribute
  637.     ADMD$400-net          ADMD-400-h-net           hyphen mapping
  638.     PRMD$UK\.BD           PRMD-UK-d-BD             quoted dot mapping
  639.     O$ACME Inc\.          O-ACME-b-Inc-d           blank & final hyphen
  640.     PRMD$main-400-a       PRMD-main-h-400-h-a      hyphen mapping
  641.     O$-123-b              O--h-123-h-b             hyphen mapping
  642.     OU$123-x              OU-123-h-x               hyphen mapping
  643.     PRMD$Adis+co          PRMD-Adis-043-co         3digit mapping
  644.  
  645.    Thus, an X.400 part from a MCGAM like
  646.  
  647.      OU$uuu.O$@.PRMD$ppp\.rrr.ADMD$aaa ddd-mmm.C$cc
  648.  
  649.    translates to
  650.  
  651.      OU-uuu.O.PRMD-ppp-d-rrr.ADMD-aaa-b-ddd-h-mmm.C-cc
  652.  
  653.  Another example:
  654.  
  655.      OU$sales dept\..O$@.PRMD$ACME.ADMD$ .C$GB
  656.  
  657.  
  658.  
  659.  
  660. Allocchio                                                      [Page 11]
  661.  
  662. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  663.  
  664.  
  665.    translates to
  666.  
  667.      OU-sales-b-dept-d.O.PRMD-ACME.ADMDb.C-GB
  668.  
  669. 4.2.2 Flow chart
  670.  
  671.    In order to achieve the proper DNS store translations of the X.400
  672.    part of a MCGAM or any other X.400 O/R name, some software tools
  673.    will be used. It is in fact evident that the above rules for 
  674.    converting mapping table from MIXER to DNS format (and vice versa)
  675.    are not user friendly enough to think of a human made conversion.
  676.  
  677.    To help in designing such tools, we describe hereunder a small flow
  678.    chart. The fundamental rule to be applied during translation is,
  679.    however, the following:
  680.  
  681.       "A string must be parsed from left to right, moving appropriately
  682.       the pointer in order not to consider again the already translated
  683.       left section of the string in subsequent analysis."
  684.  
  685.    Flow chart 1 - Translation from MIXER to DNS format:
  686.  
  687.  
  688.                  parse  single attribute
  689.               (enclosed in "." separators)
  690.                            |
  691.             (yes)  ---  <label>$@ ?  ---  (no)
  692.               |                             |
  693.         map to <label>        (no)  <label>$<blank> ?  (yes)
  694.               |                 |                        |
  695.               |           map to <label>-        map to <label>"b"
  696.               |                 |                        |
  697.               |           map "\." to -d-                |
  698.               |                 |                        |
  699.               |           map "-" to -h-                 |
  700.               |                 |                        |
  701.               |    map non A/N char to -<3digit>-        |
  702.   restart     |                 |                        |
  703.      ^        |      remove (if any) last "-"            |
  704.      |        |                 |                        |
  705.      |        \------->     add a  "."    <--------------/
  706.      |                          |
  707.      \----------  take  next  attribute  (if  any)
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715. Allocchio                                                      [Page 12]
  716.  
  717. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  718.  
  719.  
  720.    Flow chart 2 - Translation from DNS to MIXER format:
  721.  
  722.  
  723.                 parse single attribute
  724.             (enclosed in "." separators)
  725.                           |
  726.             (yes) ---- <label> ? ---- (no)
  727.               |                          |
  728.       map to <label>$@        (no) <label>"b" ? (yes)
  729.               |                 |                 |
  730.               |           map to <label>$    map to <label>$<blank>
  731.               |                 |                 |
  732.               |           map -d- to "\."         |
  733.               |                 |                 |
  734.               |           map -h- to "-"          |
  735.               |                 |                 |
  736.               |           map -b- to " "          |
  737.   restart     |                 |                 |
  738.      ^        |   map -<3digit>- to non A/N char  |
  739.      |        |                 |                 |
  740.      |        \-------->   add a "."   <----------/
  741.      |                         |
  742.      \------------- take next attribute (if any)
  743.  
  744.  
  745.    Note that the above flow charts deal with the translation of the
  746.    attributes syntax, only.
  747.  
  748. 4.2.3 The Country Code convention in the <name> value.
  749.  
  750.    The RFC822 domain space and the X.400 O/R address space, as said in
  751.    section 3, have one specific common feature: the X.400 ISO country
  752.    codes are the same as the RFC822 ISO top level domains for countries.
  753.    In the previous sections we have also defined a method to write in
  754.    <domain-name> syntax any X.400 domain, while in section 3 we
  755.    described the new name space starting at each country top level
  756.    domain under the X42D.cc (where 'cc' is then two letter ISO country
  757.    code).
  758.  
  759.    The <name> value for a 'table1' or 'gate1' entry in DNS should thus
  760.    be derived from the X.400 domain value, translated to <domain-name>
  761.    syntax, adding the 'X42D.cc.' post-fix to it, i.e.,
  762.  
  763.       ADMD$acme.C$fr
  764.  
  765.    produces in <domain-name> syntax the key:
  766.  
  767.       ADMD-acme.C-fr
  768.  
  769.  
  770.  
  771. Allocchio                                                      [Page 13]
  772.  
  773. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  774.  
  775.  
  776.    which is post-fixed by 'X42D.fr.' resulting in:
  777.  
  778.       ADMD-acme.C-fr.X42D.fr.
  779.  
  780.    However, due to the identical encoding for X.400 country codes and
  781.    RFC822 country top level domains, the string 'C-fr.X42D.fr.' is
  782.    clearly redundant.
  783.  
  784.    We thus define the 'Country Code convention' for the <name> key,
  785.    i.e.,
  786.  
  787.       "The C-cc section of an X.400 domain in <domain-name> syntax must
  788.       be omitted when creating a <name> key, as it is identical to the
  789.       top level country code used to identify the DNS zone where the
  790.       information is stored".
  791.  
  792.    Thus we obtain the following <name> key examples:
  793.  
  794.    X.400 domain                       DNS <name> key
  795.    --------------------------------------------------------------------
  796.    ADMD$acme.C$fr                     ADMD-acme.X42D.fr.
  797.    PRMD$ux\.av.ADMD$ .C$gb            PRMD-ux-d-av.ADMDb.X42D.gb.
  798.    PRMD$ppb.ADMD$Dat 400.C$de         PRMD-ppb.ADMD-Dat-b-400.X42D.de.
  799.  
  800. 4.3 Creating the appropriate DNS files
  801.  
  802.    Using MIXER's assumption of an asymmetric mapping between X.400 and
  803.    RFC822 addresses, two separate relations are required to store the
  804.    mapping database: MIXER 'table1' and MIXER 'table2'; thus also in
  805.    DNS we will maintain the two different sections, even if they will
  806.    both use the PX resource record. More over MIXER also specify two
  807.    additional tables: MIXER 'gate1' and 'gate2' tables. These additional
  808.    tables, however, have the same syntax rules than MIXER 'table1' and
  809.    'table2' respectively, and thus the same translation procedure as 
  810.    'table1' and 'table2' will be applied; some details about the MIXER
  811.    'gate1' and 'gate2' tables are discussed in section 4.4.
  812.  
  813.    Let's now check how to create, from an MCGAM entry, the appropriate
  814.    DNS entry in a DNS data file. We can again define an MCGAM entry as
  815.    defined in appendix F of that document as:
  816.  
  817.      <x400-domain>#<rfc822-domain>#  (case A: 'table1' and 'gate1' entry)
  818.  
  819.    and
  820.  
  821.      <rfc822-domain>#<x400-domain>#  (case B: 'table2' and 'gate2' entry)
  822.  
  823.    The two cases must be considered separately. Let's consider case A.
  824.  
  825.  
  826.  
  827. Allocchio                                                      [Page 14]
  828.  
  829. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  830.  
  831.  
  832.     - take <x400-domain> and translate it into <domain-name> syntax,
  833.       obtaining <x400-in-domain-syntax>;
  834.     - create the <name> key from <x400-in-domain-syntax> i.e., apply
  835.       the Country Code convention described in sect. 4.2.3;
  836.     - construct the DNS PX record as:
  837.  
  838.       *.<name>  IN  PX  50  <rfc822-domain>  <x400-in-domain-syntax>
  839.  
  840.    Please note that within PX RDATA the <rfc822-domain> precedes the
  841.    <x400-in-domain-syntax> also for a 'table1' and 'gate1' entry.
  842.  
  843.    an example: from the 'table1' rule
  844.  
  845.      PRMD$ab.ADMD$ac.C$fr#ab.fr#
  846.  
  847.    we obtain
  848.  
  849.      *.PRMD-ab.ADMD-ac.X42D.fr. IN PX 50  ab.fr.  PRMD-ab.ADMD-ac.C-fr.
  850.  
  851.    Note that <name>, <rfc822-domain> and <x400-in-domain-syntax> are
  852.    fully qualified <domain-name> elements, thus ending with a ".".
  853.  
  854.    Let's now consider case B.
  855.  
  856.     - take <rfc822-domain> as <name> key;
  857.     - translate <x400-domain> into <x400-in-domain-syntax>;
  858.     - construct the DNS PX record as:
  859.  
  860.      *.<name>  IN  PX  50  <rfc822-domain>  <x400-in-domain-syntax>
  861.  
  862.    an example: from the 'table2' rule
  863.  
  864.      ab.fr#PRMD$ab.ADMD$ac.C$fr#
  865.  
  866.    we obtain
  867.  
  868.      *.ab.fr.  IN  PX  50  ab.fr.  PRMD-ab.ADMD-ac.C-fr.
  869.  
  870.    Again note the fully qualified <domain-name> elements.
  871.  
  872.    A file containing the MIXER mapping rules and MIXER 'gate1' and 
  873.    'gate2' table written in DNS format will look like the following 
  874.    fictious example:
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885. Allocchio                                                      [Page 15]
  886.  
  887. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  888.  
  889.  
  890.      !
  891.      ! MIXER table 1: X.400 --> RFC822
  892.      !
  893.      *.ADMD-acme.X42D.it.               IN  PX  50  it. ADMD-acme.C-it.
  894.      *.PRMD-accred.ADMD-tx400.X42D.it.  IN  PX  50   \
  895.                                 accred.it. PRMD-accred.ADMD-tx400.C-it.
  896.      *.O-u-h-newcity.PRMD-x4net.ADMDb.X42D.it.  IN  PX  50   \
  897.                        cs.ncty.it. O-u-h-newcity.PRMD-x4net.ADMDb.C-it.
  898.      !
  899.      ! MIXER table 2: RFC822 --> X.400
  900.      !
  901.      *.nrc.it.    IN  PX  50   nrc.it. PRMD-nrc.ADMD-acme.C-it.
  902.      *.ninp.it.   IN  PX  50   ninp.it. O.PRMD-ninp.ADMD-acme.C-it.
  903.      *.bd.it.     IN  PX  50   bd.it. PRMD-uk-d-bd.ADMDb.C-it.
  904.      !
  905.      ! MIXER Gate 1 Table
  906.      !
  907.      *.ADMD-XKW-h-Mail.X42D.it.         IN  PX  50   \
  908.                             XKW-gateway.it. ADMD-XKW-h-Mail.C-it.G.
  909.      *.PRMD-Super-b-Inc.ADMDb.X42D.it.  IN  PX  50   \
  910.                             GlobalGw.it. PRMD-Super-b-Inc.ADMDb.C-it.G.
  911.      !
  912.      ! MIXER Gate 2 Table
  913.      !
  914.      my.it.  IN PX 50  my.it. OU-int-h-gw.O.PRMD-ninp.ADMD-acme.C-it.G.
  915.      co.it.  IN PX 50  co.it. O-mhs-h-relay.PRMD-x4net.ADMDb.C-it.G.
  916.  
  917.  
  918.    (here the "\" indicates continuation on the same line, as wrapping is
  919.    done only due to typographical reasons).
  920.  
  921.    Note the special suffix ".G." on the right side of the 'gate1' and
  922.    'gate2' Tables section whose aim is described in section 4.4. The
  923.    corresponding MIXER tables are:
  924.  
  925.  
  926.      #
  927.      # MIXER table 1: X.400 --> RFC822
  928.      #
  929.      ADMD$acme.C$it#it#
  930.      PRMD$accred.ADMD$tx400.C$it#accred.it#
  931.      O$u-newcity.PRMD$x4net.ADMD$ .C$it#cs.ncty.it#
  932.      #
  933.      # MIXER table 2: RFC822 --> X.400
  934.      #
  935.      nrc.it#PRMD$nrc.ADMD$acme.C$it#
  936.      ninp.it#O.PRMD$ninp.ADMD$acme.C$it#
  937.      bd.it#PRMD$uk\.bd.ADMD$ .C$it# 
  938.  
  939.  
  940. Allocchio                                                      [Page 16]
  941.  
  942. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  943.  
  944.                  
  945.      #
  946.      # MIXER Gate 1 Table
  947.      #
  948.      ADMD$XKW-Mail.C$it#XKW-gateway.it#
  949.      PRMD$Super Inc.ADMD$ .C$it#GlobalGw.it#
  950.      #
  951.      # MIXER Gate 2 Table
  952.      #
  953.      my.it#OU$int-gw.O$@.PRMD$ninp.ADMD$acme.C$it#
  954.      co.it#O$mhs-relay.PRMD$x4net.ADMD$ .C$t#
  955.  
  956. 4.4 Storing the MIXER 'gate1' and 'gate2' tables
  957.  
  958.    Section 4.3.4 of MIXER also specify how an address should be
  959.    converted between RFC822 and X.400 in case a complete mapping is
  960.    impossible. To allow the use of DDAs for non mappable domains, the
  961.    MIXER 'gate2' table is thus introduced. 
  962.  
  963.    In a totally similar way, when an X.400 address cannot be completely
  964.    converted in RFC822, section 4.3.5 of MIXER specifies how to encode 
  965.    (LHS encoding) the address itself, pointing then to the appropriate 
  966.    MIXER conformant gateway, indicated in the MIXER 'gate1' table.
  967.  
  968.    DNS must store and distribute also these 'gate1' and 'gate2' data. 
  969.  
  970.    One of the major features of the DNS is the ability to distribute the
  971.    authority: a certain site runs the "primary" nameserver for one
  972.    determined sub-tree and thus it is also the only place allowed to
  973.    update information regarding that sub-tree. This fact allows, in our
  974.    case, a further additional feature to the table based approach. In
  975.    fact we can avoid one possible ambiguity about the use of the 'gate1'
  976.    and 'gate2' tables (and thus of LHS and DDAs encoding).
  977.  
  978.    The authority maintaining a DNS entry in the usual RFC822 domain
  979.    space is the only one allowed to decide if its domain should be
  980.    mapped using Standard Attributes (SA) syntax or Domain Defined
  981.    Attributes (DDA) one. If the authority decides that its RFC822 domain
  982.    should be mapped using SA, then the PX RDATA will be a 'table2'
  983.    entry, otherwise it will be a 'gate2' table entry. Thus for an RFC822
  984.    domain we cannot have any more two possible entries, one from 'table2
  985.    and another one from 'gate2' table, and the action for a gateway
  986.    results clearly stated.
  987.  
  988.    Similarly, the authority mantaining a DNS entry in the new X.400
  989.    name space is the only one allowed to decide if its X.400 domain
  990.    should be mapped using SA syntax or Left Hand Side (LHS) encoding. If
  991.    the authority decides that its X.400 domain should be mapped using SA,
  992.    then the PX RDATA will be a 'table1' entry, otherwise it will be a
  993.    'gate1' table entry. Thus also for an X.400 domain we cannot have any
  994.    more two possible entries, one from 'table1' and another one from 
  995.    'gate1' table, and the action for a gateway results clearly stated.
  996.  
  997.  
  998. Allocchio                                                      [Page 17]
  999.  
  1000. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  1001.  
  1002.  
  1003.    The MIXER 'gate1' table syntax is actually identical to MIXER
  1004.    'table1', and 'gate2' table syntax is identical to MIXER 'table2'.
  1005.    Thus the same syntax translation rules from MIXER to DNS format can
  1006.    be applied in both cases. However a gateway or any other application
  1007.    must know if the answer it got from DNS contains some 'table1', 
  1008.    'table2' or some 'gate1', 'gate2' table information. This is easily
  1009.    obtained flagging with an additional ".G." post-fix the PX RDATA value
  1010.    when it contains a 'gate1' or 'gate2' table entry. The example in
  1011.    section 4.3 shows clearly the result. As any X.400 O/R domain must
  1012.    end with a country code ("C-xx" in our DNS syntax) the additional 
  1013.    ".G." creates no conflicts or ambiguities at all. This postfix must
  1014.    obviously be removed before using the MIXER 'gate1' or 'gate2' table
  1015.    data.
  1016.  
  1017. 5. Finding MIXER mapping information from DNS
  1018.  
  1019.    The MIXER mapping information is stored in DNS both in the normal
  1020.    RFC822 domain name space, and in the newly defined X.400 name space.
  1021.    The information, stored in PX resource records, does not represent a
  1022.    full RFC822 or X.400 O/R address: it is a template which specifies
  1023.    the fields of the domain that are used by the mapping algorithm.
  1024.  
  1025.    When mapping information is stored in the DNS, queries to the DNS are
  1026.    issued whenever an iterative search through the mapping table would
  1027.    be performed (MIXER: section 4.3.4, State I; section 4.3.5, mapping
  1028.    B). Due to the DNS search mechanism, DNS by itself returns the
  1029.    longest possible match in the stored mapping rule with a single
  1030.    query, thus no iteration and/or multiple queries are needed. As
  1031.    specified in MIXER, a search of the mapping table will result in
  1032.    either success (mapping found) or failure (query failed, mapping not
  1033.    found).
  1034.  
  1035.    When a DNS query is issued, a third possible result is timeout. If
  1036.    the result is timeout, the gateway operation is delayed and then
  1037.    retried at a later time. A result of success or failure is processed
  1038.    according to the algorithms specified in MIXER. If a DNS error code
  1039.    is returned, an error message should be logged and the gateway
  1040.    operation is delayed as for timeout. These pathological situations,
  1041.    however, should be avoided with a careful duplication and chaching
  1042.    mechanism which DNS itself provides.
  1043.  
  1044.    Searching the nameserver which can authoritatively solve the query is
  1045.    automatically performed by the DNS distributed name service.
  1046.  
  1047. 5.1 A DNS query example
  1048.  
  1049.    An MIXER mail-gateway located in the Internet, when translating
  1050.    addresses from RFC822 to X.400, can get information about the MCGAM
  1051.    rule asking the DNS. As an example, when translating the address
  1052.    SUN.CCE.NRC.IT, the gateway will just query DNS for the associated
  1053.    PX resource record. The DNS should contain a PX record like this:
  1054.  
  1055.  
  1056. Allocchio                                                      [Page 18]
  1057.  
  1058. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  1059.  
  1060.  
  1061.    *.cce.nrc.it.  IN PX 50   cce.nrc.it.  O-cce.PRMD-nrc.ADMD-acme.C-it.
  1062.  
  1063.    The first query will return immediately the appropriate mapping rule
  1064.    in DNS store format.
  1065.  
  1066.    There is no ".G." at the end of the obtained PX RDATA value, thus
  1067.    applying the syntax translation specified in paragraph 4.2 the
  1068.    MIXER Table 2 mapping rule will be obtained.
  1069.  
  1070.    Let's now take another example where a 'gate2' table rule is returned.
  1071.    If we are looking for an RFC822 domain ending with top level domain
  1072.    "MW", and the DNS contains a PX record like this,
  1073.  
  1074.       *.mw.   IN  PX  50  mw.  O-cce.PRMD-nrc.ADMD-acme.C-it.G.
  1075.  
  1076.    DNS will return 'mw.' and 'O-cce.PRMD-nrc.ADMD-acme.C-it.G.', i.e., a
  1077.    'gate2' table entry in DNS store format. Dropping the final ".G." and
  1078.    applying the syntax translation specified in paragraph 4.2 the
  1079.    original rule will be available. More over, the ".G." flag also tells
  1080.    the gateway to use DDA encoding for the inquired RFC822 domain.
  1081.  
  1082.    On the other hand, translating from X.400 to RFC822 the address
  1083.  
  1084.       C=de; ADMD=pkz; PRMD=nfc; O=top;
  1085.  
  1086.    the mail gateway should convert the syntax according to paragraph
  1087.    4.2, apply the 'Country code convention' described in 4.2.3 to derive
  1088.    the appropriate DNS translation of the X.400 O/R name and then query
  1089.    DNS for the corresponding PX resource record. The obtained record for
  1090.    which the PX record must be queried is thus:
  1091.  
  1092.       O-top.PRMD-nfc.ADMD-pkz.X42D.de.
  1093.  
  1094.    The DNS could contain:
  1095.  
  1096.       *.ADMD-pkz.X42D.de.  IN  PX  50  pkz.de.  ADMD-pkz.C-de.
  1097.  
  1098.    Assuming that there are not more specific records in DNS, the
  1099.    wildcard mechanism will return the MIXER 'table1' rule in encoded
  1100.    format.
  1101.  
  1102.    Finally, an example where a 'gate1' rule is involved. If we are 
  1103.    looking for an X.400 domain ending with ADMD=PWT400; C=US; ,
  1104.    and the DNS contains a PX record like this,
  1105.  
  1106.       *.ADMD-PWT400.X42D.us.  IN  PX  50  intGw.com. ADMD-PWT400.C-us.G.
  1107.  
  1108.    DNS will return 'intGw.com.' and 'ADMD-PWT400.C-us.G.', i.e., a
  1109.    'gate1' table entry in DNS store format. Dropping the final ".G." and
  1110.    applying the syntax translation specified in paragraph 4.2 the
  1111.    original rule will be available. More over, the ".G." flag also tells
  1112.  
  1113.  
  1114. Allocchio                                                      [Page 19]
  1115.  
  1116. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  1117.  
  1118.  
  1119.    the gateway to use LHS encoding for the inquired X.400 domain.
  1120.  
  1121. 6. Administration of mapping information
  1122.  
  1123.    The DNS, using the PX RR, is able to distribute the MCGAM rules
  1124.    to all MIXER gateways located on the Internet. However, not all 
  1125.    MIXER gateways will be able to use the Internet DNS. It is expected 
  1126.    that some gateways in a particular management domain will conform 
  1127.    to one of the following models:
  1128.  
  1129.       (a) Table-based, (b) DNS-based, (c) X.500-based
  1130.  
  1131.    Table-based management domains will continue to publish their MCGAM
  1132.    rules and retrieve the mapping tables via the International Mapping
  1133.    Table coordinator, manually or via some automated procedures. Their
  1134.    MCGAM information can be made available also in DNS by the appropriate
  1135.    DNS authorities, using the same mechanism already in place for MX 
  1136.    records: if a branch has not yet in place its own DNS server, some
  1137.    higher authority in the DNS tree will provide the service for it. 
  1138.    A transition procedure similar to the one used to migrate from the
  1139.    'hosts.txt' tables to DNS can be applied also to the deployment 
  1140.    phase of this specification. An informational document describing 
  1141.    the implementation phase and the detailed coordination procedures is
  1142.    expected. 
  1143.  
  1144.    Another distributed directory service which can distribute the
  1145.    MCGAM information is X.500. Coordination with table-based domains can
  1146.    be obtained in an identical way as for the DNS case. 
  1147.  
  1148.    Coordination of MCGAM information between DNS and X.500 is more
  1149.    complex, as it requies some kind of uploading information between the
  1150.    two systems. The ideal solution is a dynamic alignment mechanism which 
  1151.    transparently makes the DNS mapping information available in X.500 and
  1152.    vice versa. Some work in this specific field is already being done 
  1153.    [see Costa] which can result in a global transparent directory service,
  1154.    where the information is stored in DNS or in X.500, but is visible 
  1155.    completely by any of the two systems.
  1156.  
  1157.    However we must remind that MIXER concept of MCGAM rules publication
  1158.    is different from the old RFC1327 concept of globally distributed,
  1159.    coordinated and unique mapping rules. In fact MIXER does not requires
  1160.    any more for any conformant gateway or tool to know the complete set
  1161.    of MCGAM: it only requires to use some set (eventually empty) of 
  1162.    valid MCGAM rules, published either by Tables, DNS or X.500 mechanisms
  1163.    or any combination of these methods. More over MIXER specifies that
  1164.    also incomplete sets of MCGAM can be used, and supplementary local
  1165.    unpublished (but valid) MCGAM can also be used. As a consequence, the
  1166.    problem of coordination between the three systems proposed by MIXER
  1167.    for MCGAM publication is non essential, and important only for efficient
  1168.    operational matters. It does not in fact affect the correct behaviour
  1169.    of MIXER conformant gateways and tools.
  1170.  
  1171.  
  1172. Allocchio                                                      [Page 20]
  1173.  
  1174. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  1175.  
  1176.  
  1177. 7. Conclusion
  1178.  
  1179.    The introduction of the new PX resource record and the definition of
  1180.    the X.400 O/R name space in the DNS structure provide a good
  1181.    repository for MCGAM information. The mapping information is stored
  1182.    in the DNS tree structure so that it can be easily obtained using the
  1183.    DNS distributed name service. At the same time the definition of the
  1184.    appropriate DNS space for X.400 O/R names provide a repository where
  1185.    to store and distribute some other X.400 MHS information. The use of
  1186.    the DNS has many known advantages in storing, managing and updating
  1187.    the information. A successful number of tests were been performed
  1188.    under the provisional top level domain "X400.IT" when RFC1664 was
  1189.    developed, and their results confirmed the advantages of the method.
  1190.    Operational exeprience for over 2 years with RFC1664 specification
  1191.    confirmed the feasibility of the method, and helped identifying some
  1192.    operational procedures to deploy the insertion of MCGAM into DNS.
  1193.  
  1194.    Software to query the DNS and then to convert between the textual
  1195.    representation of DNS resource records and the address format defined
  1196.    in MIXER was developed with RFC1664. This software also allows a
  1197.    smooth implementation and deployment period, eventually taking care
  1198.    of the transition phase. This software can be easily used (with
  1199.    little or null modification) also for this updated specification,
  1200.    supporting the new 'gate1' MIXER table. DNS software implementations
  1201.    supporting RFC1664 also supports with no modification this memo new
  1202.    specification.
  1203.  
  1204.    A further informational document describing operational and
  1205.    implementation of the service is expected.
  1206.  
  1207. 8. Acknowledgements
  1208.  
  1209.    We wish to thanks all those who contributed to the discussion and
  1210.    revision of this document: many of their ideas and suggestions
  1211.    constitute essential parts of this work. In particular thanks to Jon
  1212.    Postel, Paul Mockapetris, Rob Austin and the whole IETF x400ops, 
  1213.    TERENA wg-msg and IETF namedroppers groups. A special mention to
  1214.    Christian Huitema for his fundamental contribution to this work.
  1215.  
  1216.    This document is a revision of RFC1664, edited by one of its
  1217.    authors on behalf of the IETF MIXER working group. The current
  1218.    editor wishes to thank here also the authors of RFC1664:
  1219.  
  1220.  
  1221.      Antonio Blasco Bonito     RFC822: bonito@cnuce.cnr.it
  1222.      CNUCE - CNR               X.400:  C=it;A=garr;P=cnr;
  1223.      Reparto infr. reti                O=cnuce;S=bonito;
  1224.      Viale S. Maria 36
  1225.      I 56126 Pisa
  1226.      Italy
  1227.  
  1228.  
  1229.  
  1230. Allocchio                                                      [Page 21]
  1231.  
  1232. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  1233.  
  1234.  
  1235.      Bruce Cole                RFC822: bcole@cisco.com
  1236.      Cisco Systems Inc.        X.400:  C=us;A= ;P=Internet;
  1237.      P.O. Box 3075                     DD.rfc-822=bcole(a)cisco.com;
  1238.      1525 O'Brien Drive
  1239.      Menlo Park, CA 94026
  1240.      U.S.A.
  1241.  
  1242.  
  1243.      Silvia Giordano           RFC822: giordano@cscs.ch
  1244.      Centro Svizzero di        X.400:  C=ch;A=arcom;P=switch;O=cscs;
  1245.      Calcolo Scientifico               S=giordano;
  1246.      Via Cantonale
  1247.      CH 6928 Manno
  1248.      Switzerland
  1249.  
  1250.  
  1251.      Robert Hagens                   RFC822: hagens@ans.net
  1252.      Advanced Network and Services   X.400:  C=us;A= ;P=Internet;
  1253.      1875 Campus Commons Drive               DD.rfc-822=hagens(a)ans.net;
  1254.      Reston, VA 22091
  1255.      U.S.A.
  1256.  
  1257.  
  1258. 9. References
  1259.  
  1260.    [CCITT] CCITT SG 5/VII, "Recommendation X.400, Message Handling
  1261.        Systems: System Model - Service Elements", October 1988.
  1262.  
  1263.    [RFC 1327] Kille, S., "Mapping between X.400(1988)/ISO 10021 and RFC
  1264.        822", RFC 1327, March 1992.
  1265.  
  1266.    [RFC 1034] Mockapetris, P., "Domain Names - Concepts and Facilities",
  1267.        STD 13, RFC 1034, USC/Information Sciences Institute, November
  1268.        1987.
  1269.  
  1270.    [RFC 1035] Mockapetris, P., "Domain names - Implementation and
  1271.        Specification", STD 13, RFC 1035, USC/Information Sciences
  1272.        Institute, November 1987.
  1273.  
  1274.    [RFC 1033] Lottor, M., "Domain Administrators Operation Guide", RFC
  1275.        1033, SRI International, November 1987.
  1276.  
  1277.    [MIXER] Kille, S. E., " MIXER (Mime Internet X.400 Enhanced Relay):
  1278.        Mapping between X.400 and RFC 822/MIME", RFC xxxx, xxxxxxx 1997.
  1279.  
  1280.    [Costa] Costa, A., Macedo, J., and V. Freitas, "Accessing and
  1281.        Managing DNS Information in the X.500 Directory", Proceeding of
  1282.        the 4th Joint European Networking Conference, Trondheim, NO, May
  1283.        1993.
  1284.  
  1285.  
  1286.  
  1287.  
  1288. Allocchio                                                      [Page 22]
  1289.  
  1290. RFC 1664bis       Internet DNS for Mail Mapping Tables      January 1997
  1291.  
  1292.  
  1293. 10. Security Considerations
  1294.  
  1295.    Security issues are not discussed in this memo.
  1296.  
  1297.  
  1298. 11. Author's Address
  1299.  
  1300.    Claudio Allocchio
  1301.    Sincrotrone Trieste
  1302.    SS 14 Km 163.5 Basovizza
  1303.    I 34012 Trieste
  1304.    Italy
  1305.  
  1306.    RFC822: Claudio.Allocchio@elettra.trieste.it
  1307.    X.400:  C=it;A=garr;P=Trieste;O=Elettra;
  1308.    S=Allocchio;G=Claudio;
  1309.    Phone:  +39 40 3758523
  1310.    Fax:    +39 40 3758565
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. Allocchio                                                      [Page 23]
  1347.