2026/09/18(金)dovecot 2.4.5 で auth の挙動が変わっている・・・

2026/09/18 11:28 サーバ運営・管理
先月下旬(8/28) に dovecot 2.4.5/pigeonhole 2.4.5 のリリースアナウンスがあり、前バージョン環境でまれに結果的に送受信出来ない問題があるらしいので、テスト環境で更新検証中。
同時に postfix を 3.11.5 から 3.11.7 へアップデートしています。

postfix の更新インストールは管理上、ソースコードからの構築にて、安定の不具合無しで、
dovecot の更新インストール自体は 前バージョン(2.4.4) で発生していた、ソースコードコンパイル時の不具合は一切無く順調に進んだものの、いざ試験運用させると、

/var/log/postfix.log
Sep 18 01:51:20 www0 postfix/master[21870]: daemon started -- version 3.11.7, configuration /usr/local/etc/postfix
Sep 18 01:51:27 www0 postfix/smtpd[21877]: connect from vmi3565266.contaboserver.net[109.123.231.22]
Sep 18 01:51:27 www0 postfix/smtpd[21877]: fatal: no SASL authentication mechanisms
Sep 18 01:51:28 www0 postfix/master[21870]: warning: process /usr/local/libexec/postfix/smtpd pid 21877 exit status 1
Sep 18 01:51:28 www0 postfix/master[21870]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
Sep 18 01:51:45 www0 postfix/smtpd[21886]: connect from unknown[212.132.119.116]
Sep 18 01:51:45 www0 postfix/smtpd[21886]: fatal: no SASL authentication mechanisms
Sep 18 01:51:46 www0 postfix/master[21870]: warning: process /usr/local/libexec/postfix/smtpd pid 21886 exit status 1
Sep 18 01:51:46 www0 postfix/master[21870]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
Sep 18 01:52:54 www0 postfix/smtpd[21914]: connect from unknown[91.92.240.92]
Sep 18 01:52:54 www0 postfix/smtpd[21914]: fatal: no SASL authentication mechanisms
Sep 18 01:52:55 www0 postfix/master[21870]: warning: process /usr/local/libexec/postfix/smtpd pid 21914 exit status 1
Sep 18 01:52:55 www0 postfix/master[21870]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
/var/log/maillog
Sep 18 01:51:19 www0 dovecot[21787]: master: Dovecot v2.4.5 (0cbb641e3e) starting up for imap, pop3, lmtp
Sep 18 01:51:27 www0 dovecot[21791]: auth: Fatal: auth settings: Failed to parse configuration: Failed to expand auth_realms list key variables: domain: No value to get domain from
Sep 18 01:51:27 www0 dovecot[21787]: master: Error: service(auth): command startup failed, throttling for 2.000 secs
Sep 18 01:51:28 www0 milter-manager[1738]: [statistics] [session][end][connect][pass][1.01182](4925)
Sep 18 01:51:28 www0 milter-manager[1738]: [statistics] [sessions][finished] 1232(+1) 0
Sep 18 01:51:45 www0 dovecot[21791]: auth: Fatal: auth settings: Failed to parse configuration: Failed to expand auth_realms list key variables: domain: No value to get domain from
Sep 18 01:51:45 www0 dovecot[21787]: master: Error: service(auth): command startup failed, throttling for 4.000 secs
Sep 18 01:51:46 www0 milter-manager[1738]: [statistics] [session][end][connect][pass][1.02587](4929)
Sep 18 01:51:46 www0 milter-manager[1738]: [statistics] [sessions][finished] 1233(+1) 0
Sep 18 01:52:54 www0 dovecot[21791]: auth: Fatal: auth settings: Failed to parse configuration: Failed to expand auth_realms list key variables: domain: No value to get domain from
Sep 18 01:52:54 www0 dovecot[21787]: master: Error: service(auth): command startup failed, throttling for 8.000 secs
Sep 18 01:52:55 www0 milter-manager[1738]: [statistics] [session][end][connect][pass][1.01076](4933)
Sep 18 01:52:55 www0 milter-manager[1738]: [statistics] [sessions][finished] 1234(+1) 0
のような感じで、送受信が出来ない。
以前のバージョン(2.4.4) では、正常に機能していたのですが・・・

既存事案を調査しても全く解決せず、色々試行錯誤したところ、どうやら dovecot の設定を変えないとダメっぽい。

dovecot.conf の設定で、
auth_realms = %{domain}
はダメっぽくて、
auth_realms = example.basekernel.ne.jp example.or.jp
のように、送受信許可するFQDNを半角スペースで区切って羅列しないとダメっぽい。
弊社の場合 postfix の SASL に dovecot を使用しているので、「送受信」共に意識しないといけないのです。
この設定変更で解決したようですが、2~3日様子を見て、問題なさそうであれば、本番環境への適用となります。

適用する場合、連休中に本番環境への適用作業を完了させる予定です。