2. 服务要素
RFC 822 和 X.400 消息都由某些服务要素 (例如 "originator" 和 "subject") 组成.只要消息停留在其自身的世界内, 这些服务要素的行为就有明确定义.网关的一个重要目标是, 当消息跨越两个邮件世界之间的边界时, 维持尽可能高的服务级别.
当用户发起一条消息时, 可使用若干服务.RFC 1327 针对每个服务要素描述了对于通过网关访问的接收方, 它在多大程度上受支持.存在三个支持级别:
- 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.
除了服务要素之间的映射之外, 网关还必须映射分配给这些服务要素的类型和值.同样, 在某些情况下这可能非常简单, 例如 "IA5 -> ASCII".最复杂的示例是地址空间映射.问题在于, 地址空间并不是可以在 RFC 1327 中定义的静态事物.地址空间不断变化, 它们由某些寻址权威机构定义, 而这些机构在 RFC 822 和 X.400 世界中并不总是平行对应.然而, 两个地址之间的有效映射假定地址所在的两个域之间存在 "administrative equivalence" (另见 [13]).
RFC 1327 定义了以下基本映射.从 RFC 822 走向 X.400 时, 一条 RFC 822 消息及相关的 822-MTS 信息总是被映射为一个 IPM (MTA, MTS 和 IPMS 服务).从 X.400 走向 RFC 822 时, 一条 RFC 822 消息及相关的 822-MTS 信息可能派生自:
- 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) 在 STD 10, RFC 821 或 STD 11, RFC 822 中没有对应物, 因此由网关处理.网关的 Probe 确认应被解释为仿佛网关就是 Probe 所发往的最终 MTA.可选地, 如果网关使用 RFC 821 作为 822-MTS, 它可以使用 "VRFY" 命令的结果来测试自己是否能够向被探测的邮箱投递 (或转发) 邮件.
MTS Messages 包含 IPMS 所定义类型之外的内容类型时, 网关不予映射, 并应在网关处拒绝.
下面列出服务要素之间映射的一些基本示例.
服务要素:
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
服务要素类型:
RFC 822 X.400
------------------------------------------------
ASCII PrintableString
Boolean Boolean
服务要素值:
RFC 822 X.400
------------------------------------------------
oh_dear oh(u)dear
False 00000000
有些服务要素之间的映射相当棘手, 并且重要到足以在本教程中提及.这些是与发起相关的头和某些信封字段的映射:
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:.
信封属性
- 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:
更多细节请参阅 RFC 1327 第 2.2 节和第 2.3 节.