Dovecot allows e-mail retrieval through POP3 and/or IMAP protocols, optionally secured with TLS. Dovecot installation requires to install the dovecot package
followed by configuration. Below is a simple dovecot configuration file which allows user credentials to be retrieved from a MySQL database, and few other parameters: mail location, user id, group id, ip address list allowed for client connection, etc. For now, I don't want TLS support, so I'll enable only the standard mail retrieval protocols.
Below is the /etc/dovecot.conf file contents:
As you can see, the authentication system relies on a MySQL database. I've configured the SASL authentication socket, accesible for postfix. The parameters required for database connection are included in the /etc/dovecot-mysql.conf file, it's content is shown below:
In my example, I put the e-mails below a directory /mail. Your setup can be different, you cah choose whatever root location you like for e-mail placement on the filesystems. The user is and group id are the UID and GID of the postfix user in a default CentOS installation.
Up: CentOS Mail Server setup: Postfix, Dovecot, MySQL, SASL, Postfixadmin, TLS
Prev: MySQL Database installation
Next: Dovecot configuration for multiple domains