2. Service Elements
Both RFC 822 and X.400 messages consist of certain service elements (such as 'originator' and 'subject'). As long as a message stays within its own world, the behaviour of such service elements is well defined. An important goal for a gateway is to maintain the highest possible service level when a message crosses the boundary between the two mail worlds.
When a user originates a message, a number of services are available. RFC 1327 describes, for each service elements, to what extent it is supported for a recipient accessed through a gateway. There are three levels of support:
- Supported: Some of the mappings are quite straight-forward,
such as '822.Subject:' <-> 'IPMS.Subject'.
- Not supported: There may be a complete mismatch: certain
service elements exist only in one of the two worlds (e.g.,
interpersonal notifications).
- Partially supported: When similar service elements exist in
both worlds, but with slightly different interpretations,
some tricks may be needed to provide the service over the
gateway border.
Apart from mapping between the service elements, a gateway must also map the types and values assigned to these service elements. Again, this may in certain cases be very simple, e.g., 'IA5 -> ASCII'. The most complicated example is mapping address spaces. The problem is that address spaces are not something static that can be defined within RFC 1327. Address spaces change continuously, and they are defined by certain addressing authorities, which are not always parallel in the RFC 822 and the X.400 world. A valid mapping between two addresses assumes however that there is 'administrative equivalence' between the two domains in which the addresses exist (see also [13]).
The following basic mappings are defined in RFC 1327. When going from RFC 822 to X.400, an RFC 822 message and the associated 822- MTS information is always mapped into an IPM (MTA, MTS, and IPMS Services). Going from X.400 to RFC 822, an RFC 822 message and the associated 822-MTS information may be derived from:
- A Report (MTA, and MTS Services)
- An InterPersonal Notification (IPN) (MTA, MTS, and IPMS
services)
- An InterPersonal Message (IPM) (MTA, MTS, and IPMS services)
Probes (MTA Service) have no equivalent in STD 10, RFC 821 or STD 11, RFC 822 and are thus handled by the gateway. The gateway's Probe confirmation should be interpreted as if the gateway were the final MTA to which the Probe was sent. Optionally, if the gateway uses RFC 821 as an 822-MTS, it may use the results of the 'VRFY' command to test whether it would be able to deliver (or forward) mail to the mailbox under probe.
MTS Messages containing Content Types other than those defined by the IPMS are not mapped by the gateway, and should be rejected at the gateway.
Some basic examples of mappings between service elements are listed below.
Service elements:
RFC 822 X.400
------------------------------------------------
Reply-To: IPMS.Heading.reply-recipients
Subject: IPMS.Heading.subject
In-Reply-To: IPMS.Heading.replied-to-ipm
References: IPMS.Heading.related-IPMs
To: IPMS.Heading.primary-recipients
Cc: IPMS.Heading.copy-recipients
Service element types:
RFC 822 X.400
------------------------------------------------
ASCII PrintableString
Boolean Boolean
Service element values:
RFC 822 X.400
------------------------------------------------
oh_dear oh(u)dear
False 00000000
There are some mappings between service elements that are rather tricky and important enough to mention in this tutorial. These are the mappings of origination-related headers and some envelope fields:
RFC 822 -> X.400:
- If Sender: is present, Sender: is mapped to
IPMS.Heading.originator, and From: is mapped to
IPMS.Heading.authorizing-users. If not, From: is mapped to
IPMS.Heading.originator.
X.400 -> RFC 822
- If IPMS.Heading.authorizing-users is present,
IPMS.Heading.originator is mapped to Sender:, and
IPMS.Heading.authorizing-users is mapped to From: . If not,
IPMS.Heading.originator is mapped to From:.
Envelope attributes
- RFC 1327 doesn't define how to map the MTS.OriginatorName and
the MTS.RecipientName (often referred to as the P1.originator
and P1.recipient), since this depends on which underlying 822-
MTS is used. In the very common case that RFC 821 (SMTP) is
used for this purpose, the mapping is normally as follows:
MTS.Originator-name <-> MAIL FROM:
MTS.Recipient-name <-> RCPT TO:
For more details, refer to RFC 1327, chapters 2.2 and 2.3.