Mail Server : Install Dovecot2023/11/22 |
Install Dovecot to configure POP/IMAP Server.
|
|
[1] | Install Dovecot. |
[root@mail ~]# dnf -y install dovecot
|
[2] | 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 : add auth_mechanisms = plain login
[root@mail ~]#
vi /etc/dovecot/conf.d/10-mail.conf # line 30 : uncomment and add mail_location = maildir:~/Maildir
[root@mail ~]#
vi /etc/dovecot/conf.d/10-master.conf # line 110-112 : 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
systemctl enable --now dovecot |
[3] | 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 success |
Sponsored Link |