如何防止 SMTPUTF8 邮件被退回

Pug*_* Se 9 email postfix

将 postfix 更新到 3.0 后,主题中带有 UTF-8 字符的电子邮件卡在队列中,并出现以下错误:

SMTPUTF8 是必需的,但主机 mail.example.com [1.2.3.4] 未提供

接收服务器(此处称为 mail.example.com)是后缀 2.10.1,不支持 SMTPUTF8

我如何获得 postfix 来发送这些电子邮件?我可以更改 postfix 中的某些选项,以便像更新前那样发送它吗?

从我目前的选择来看,有趣的似乎是:

compatibility_level = 2
smtputf8_autodetect_classes = sendmail, verify
smtputf8_enable = ${{$compatibility_level} < {1} ? {no} : {yes}}
strict_smtputf8 = no
Run Code Online (Sandbox Code Playgroud)

我认为所有这些设置都是 3.0 中的默认设置

baf*_*baf 5

根据 Postfix自述文件

默认情况下,Postfix 仅在地址验证探测和发件人地址中包含 UTF-8、收件人地址中包含 UTF-8 或邮件标头值中包含 UTF-8 的 Postfix sendmail 提交上设置“SMTPUTF8 请求”标志。

如果您通过 sendmail 命令提交邮件或使用地址验证,您可能需要调整smtputf8_autodetect_classes选项。

要成功刷新队列,在更正smtputf8_autodetect_classes选项后,必须使用postsuper -r ALL命令重新对所有邮件进行排队。smtputf8可能还需要暂时禁用功能(请参阅评论中的讨论)。