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 のセクションを以下に示します。

何かアイデアはありますか?どんな助言でも構いません。イアン

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

解決策! 問題と解決策の説明はここにあります:

バグ報告

簡単に読む: main.cf に次の行を追加します。

smtp_sasl_mechanism_filter = login

関連情報