跳到主要内容

6. 可选动作 (Optional Action)

MSA 可以 执行以下任何动作:

6.1. 强制执行提交权限 (Submission Right)

如果 MAIL FROM 中的 address 看起来 submission right 不足, 或未被所用 authentication 授权 (如果 session 已 authentication), 则 MSA 可以 对 MAIL command 发出 error response.

Reply code 550 与按 [SMTP-CODES] 的适当 enhanced status code (如 5.7.1) 一起用于此目的.

6.2. 强制执行许可 (Permission)

如果 RCPT command 与授予用户的 permission 不一致 (如果 session 已 authentication), 则 MSA 可以 对该 RCPT command 发出 error response.

Reply code 550 与按 [SMTP-CODES] 的适当 enhanced status code (如 5.7.1) 一起用于此目的.

6.3. 检查消息数据 (Message Data)

如果 submitted message 在语法上无效, 或看起来与授予用户的 permission 不一致 (如果已知), 或以某种方式违反 site policy, 则 MSA 可以 对 DATA command 发出 error response, 或在 end-of-data 后发送 failure result.

Reply code 554 用于 data 中的 syntax problem. 如果 command 本身语法无效, 则使用 reply code 501. 基于 submitting user 进行拒绝时, 使用 reply code 550 以及按 [SMTP-CODES] 的适当 enhanced status code (如 5.7.1). 如果 message 违反 site policy, 则使用 reply code 550 以及适当 enhanced status code (如 5.7.0).

6.4. 对 Postmaster Address 的支持

在本地条件适当且为了便于符合 [SMTP-MTA] 的 "postmaster" 要求时, 与对其他 address 强制执行的要求相比, MSA 可以 对发往 "postmaster" (或其替代拼写形式之一, 见 [SMTP-MTA]), 且位于一个或多个 domain 中的 mail 允许较低程度的 authentication. 除其他好处外, 这提供了一个最后可用的 address, 授权用户可用它报告那些原本会阻止他们提交 mail 的问题.