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

  1. # vi /etc/dovecot.conf
  2. Remove the # comment from the following line:
    #protocols = imap imaps pop3 pop3s
  3. # service dovecot start
  4. # 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
RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)

Spread the word

del.icio.us Digg Furl Reddit Help

Permalink • Print

Related Entries

Made with WordPress and a search engine optimized WordPress theme • Sky Gold skin by Denis de Bernardy