Fedora 43

Mail サーバー : Dovecot インストール2025/11/19

 

Dovecot をインストールして POP/IMAP サーバーを構築します。

[1] Dovecot をインストールします。
[root@mail ~]#
dnf -y install dovecot
[2] Postfix に SASL 機能が提供できるよう Dovecot を設定します。
[root@mail ~]#
vi /etc/dovecot/dovecot.conf
# 29行目 : 変更
mail_path = ~/Maildir

# 47行目 : 変更
ssl = yes

[root@mail ~]#
vi /etc/dovecot/conf.d/10-auth.conf
# 新規作成

auth_allow_cleartext = yes
auth_mechanisms = plain login 

[root@mail ~]#
vi /etc/dovecot/conf.d/10-master.conf
# 新規作成

service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
    user = postfix
    group = postfix
  }
}

[root@mail ~]#
systemctl enable --now dovecot

[3] Firewalld を有効にしている場合は、POP/IMAP サービスの許可が必要です。 POP は [110/TCP], IMAP は [143/TCP] を使用します。
[root@mail ~]#
firewall-cmd --add-service={pop3,imap}

success
[root@mail ~]#
firewall-cmd --runtime-to-permanent

success
関連コンテンツ