dovecotのログでエラー(/etc/dovecot/dovecot.conf:25: ‘pop3s’ protocol is no longer necessary, remove it)

dovecotの再起動をかけると以下のエラーがログに上がっていました

$ sudo grep "Warning" /var/log/messages

Feb 20 16:40:45 Mail01 dovecot[2727643]: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:25: 'imaps' protocol is no longer necessary, remove it
Feb 20 16:40:45 Mail01 dovecot[2727643]: doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:25: 'pop3s' protocol is no longer necessary, remove it

上記のエラーですが、「dovecot.conf」でimaps、pop3s の指定が不要になっているので「Warning」の警告がログに出力されています

Dovecot 2.3 以降では、暗号化(SSL/TLS)専用の pop3s や imaps のプロトコル指定は不要 となり、pop3 や imap のみを指定すれば、自動的に STARTTLS や SSL/TLS に対応します。

警告エラー(/etc/dovecot/dovecot.conf:25: 'imaps’ protocol is no longer necessary, remove it)の対応方法は、以下のようにdovecot.conf の protocols = imap pop3 imaps pop3s の箇所を protocols = imap pop3 に変更してdovecotを再起動します

# dovecot.conf を編集します
$ sudo vim /etc/dovecot/dovecot.conf

protocols = imap pop3 imaps pop3s
# ↓ 下記のように、imaps pop3sの設定を削除します
protocols = imap pop3

# dovecot 再起動
$ sudo systemctl restart dovecot

再起動後にログに警告メッセージが表示されなければ、修正完了です