LL
[root@mail ~]# dnf -y install dovecot
cp /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.conf.ORG
cp /etc/dovecot/conf.d/10-mail.conf /etc/dovecot/conf.d/10-mail.conf.ORG
cp /etc/dovecot/conf.d/10-auth.conf /etc/dovecot/conf.d/10-auth.conf.ORG
cp /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-master.conf.ORG
cp /etc/dovecot/conf.d/10-ssl.conf /etc/dovecot/conf.d/10-ssl.conf.ORG
cp /etc/dovecot/conf.d/20-pop3.conf /etc/dovecot/conf.d/20-pop3.conf.ORG
This example shows to configure to provide SASL function to Postfix.
[root@mail ~]# vi /etc/dovecot/dovecot.conf
# line 30 : uncomment (if not use IPv6, remove [::])listen = *, ::
[root@mail ~]# vi /etc/dovecot/conf.d/10-auth.conf
# line 10 : uncomment and change (allow plain text auth)disable_plaintext_auth = no# line 100 : addauth_mechanisms = plain login
[root@mail ~]# vi /etc/dovecot/conf.d/10-mail.conf# line 30 : uncomment and addmail_location = maildir:~/Maildir
[root@mail ~]# vi /etc/dovecot/conf.d/10-master.conf
# line 107-109 : uncomment and add like follows # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix group = postfix }
[root@mail ~]# vi /etc/dovecot/conf.d/10-ssl.conf
# line 8 : change (not require SSL)ssl = yes
[root@mail ~]# systemctl enable --now dovecot systemctl restart dovecot
If Firewalld is running, allow POP/IMAP service. POP uses [110/TCP], IMAP uses [143/TCP].
[root@mail ~]# firewall-cmd --add-service={pop3,imap}success[root@mail ~]# firewall-cmd --runtime-to-permanent
LL