跳到主要内容

5. 推荐动作 (Recommended Action)

MSA 应该 执行以下所有动作:

5.1. 强制执行地址语法 (Address Syntax)

MSA 应该 拒绝 sender 或 recipient SMTP envelope address 中具有非法 syntax 的 message.

如果 MSA 以任何方式检查或更改 message text, 除添加 trace header field 外, 它 应该 拒绝 address header field 中具有非法 address syntax 的 message.

Reply code 501 用于拒绝包含可检测不当 address 的 MAIL 或 RCPT command.

当 address 在提交 message body 后解析时, 如果 message 在 header 中包含无效 address, 则在 end-of-data 之后使用 reply code 554 (带有来自 [SMTP-CODES] 的合适 enhanced status code).

5.2. 记录错误

MSA 应该 记录 message error, 尤其是 client software 的明显 misconfiguration.

当检测到本地 mail client 存在问题时, 通知 administrator 可能非常有帮助. 这是区分 submission 和 relay 的另一个优点: system administrator 可能对本地配置问题感兴趣, 但不关心其他站点的 client 问题.

注意, 对这类 logging 施加限制很重要, 以防止某些形式的 denial of service (DoS) attack.