[root@mail ~]# yum -y install dovecot
[root@mail ~]# vi /etc/dovecot/dovecot.conf
# line 20: uncomment, line 21: make it comment
protocols = imap imaps pop3 pop3s lmtp
# protocols = imaps pop3s lmtp
# line 27: change ( if not use IPv6 )
[root@mail ~]# vi /etc/dovecot/conf.d/10-auth.conf
# line 9: uncomment and change ( allow plain text auth )
disable_plaintext_auth = no
# line 99: 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 88-90: uncomment and add
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
# add
group = postfix
# add
}
[root@mail ~]# systemctl start dovecot.service
[root@mail ~]# systemctl enable dovecot.service