Postfix SASL 在升级到 19.10 时不起作用

Postfix SASL 在升级到 19.10 时不起作用

我从 18.04LTS 升级到了 19.10。但是,带有 SASL(cyrus)的 postfix 已停止工作。它使用广泛描述的常规方法配置为 smtp.office365.com:587 的智能主机/中继。

如果没有调试设置,日志中会出现常见的“无效参数”错误:

Nov 17 00:15:21 ianb-pc postfix/smtp[2277]: 939A25A20DB: SASL authentication failed; cannot authenticate to server smtp.office365.com[52.97.133.242]: invalid parameter supplied
Nov 17 00:15:21 ianb-pc postfix/smtp[2278]: AB6735A0D5A: to=<ianb@removed>, relay=smtp.office365.com[40.100.174.194]:587, delay=214662, delays=214661/0.02/0.46/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.office365.com[40.100.174.194]: invalid parameter supplied)

经过一些调试后,下面是第 4 级的 mail.log 的一部分。

有什么想法吗?感谢您的帮助。Ian

Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: Using ESMTP PIPELINING, TCP send buffer size is 87040, PIPELINING buffer size is 4096
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: maps_find: smtp_sasl_password_maps: smtp.office365.com: not found
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: maps_find: smtp_sasl_password_maps: hash:/etc/postfix/sasl_password(0,lock|fold_fix|utf8_request): [smtp.office365.com]:587 = (removed):(removed)
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: smtp_sasl_passwd_lookup: host `smtp.office365.com' user `(removed)' pass `(removed)'
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: starting new SASL client
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: name_mask: noanonymous
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: smtp_sasl_authenticate: smtp.office365.com[52.97.146.130]:587: SASL mechanisms LOGIN XOAUTH2
Nov 18 20:55:56 ianb-pc postfix/smtp[22488]: xsasl_cyrus_client_get_user: (removed)
Nov 18 20:55:56 ianb-pc postfix/qmgr[22373]: warning: private/smtp socket: malformed response
Nov 18 20:55:56 ianb-pc postfix/qmgr[22373]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Nov 18 20:55:56 ianb-pc postfix/master[18888]: warning: process /usr/lib/postfix/sbin/smtp pid 22490 killed by signal 11

答案1

解决方案!问题和解决方案的描述如下:

https://bugzilla.redhat.com/show_bug.cgi?id=1575424

快速阅读:将这一行添加到 main.cf:

smtp_sasl_mechanism_filter = login

相关内容