March 3, 2009
How to: Configure Dovecot on CentOS 5
Dovecot is the default for incoming electronic mail.
Dovecot is easy to configure.
POP: The Post Office Protocol.
IMAP: The Internet Messages Access Protocol.
If you have not installed dovecot, then install it with this command:
# yum install dovecot
The default protocols for dovecot are IMAP and IMAPS.
The configuration file is /etc/dovecot.conf.
To configure Dovecot to support pop3, imap, pop3s and imaps
# vi /etc/dovecot.conf
- Remove the # comment from the following line:
#protocols = imap imaps pop3 pop3s
# service dovecot start
# chkconfig dovecot on
If you want a secure POP3S or IMAP4S
Find and uncomment the following:
#ssl_disable = no #ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem #ssl_key_file = /etc/pki/dovecot/private/dovecot.pem
To create Dovecot certificates
- Modify this file
# vi /etc/pki/dovecot/dovecot-openssl.cnf
- Delete this file
# rm /etc/pki/dovecot/certs/dovecot.pem
- Delete This file
# rm /etc/pki/dovecot/private/dovecot.pem
- Run
# /usr/share/doc/dovecot-1.0/examples/mkcert.sh


