CMTS info

Helpful linux and DOCSIS/CMTS howtos and tips

Installing Dovecot

1) Installation

After decompressing the sources execute:

./configure && make && make install

If no errors are reported the programs hould be installed correctly.

2) Configuration

Configuration is done by editing one configu file. Easiest way to get started is to copy exaple config file into place.




Server uses PAM by default. To create entry for dovecot simply create /etc/pam.d/dovecot file and paste content presented below.


auth            required
account         required
session         required

3) Dovecot configuration file

Specify what server we'll be running with protocols directive:

protocols = pop3 pop3s

Enable users to log in with passwords sent in plaintext:

disable_plaintext_auth = no

Enable SSL encryption:

ssl_disable = no

Specify private key and certificate files:

ssl_cert_file = /sciezka/do/dovecot.crt
ssl_key_file = /sciezka/do/dovecot.pem

Specify where mail is stored, in this case Maildir in each user's homedir. Other examples are included in the config file:

mail_location = maildir:~/Maildir

Make server name detection harder:

login_greeting = Nice pop3 server

Specifies naming scheme for emails, go with the recommended:

pop3_uidl_format = %08Xu%08Xv


By default dovecot uses /etc/passwd for file names and /etc/shadow for passwords. Good enough - leave it. Warning: CRAM MD5 doesn't seem to work with PAM.


To run properly dovecot needs user "dovecot" (default). tu start dovecot simply execute dovecot as root.

4) Complete configuration file

Default values were removed.

protocols = pop3 pop3s

disable_plaintext_auth = no

ssl_disable = no

ssl_cert_file = /etc/ssl/dovecot.crt
ssl_key_file = /etc/ssl/dovecot.pem

login_user = dovecot

login_greeting = Nice mail server

mail_location = maildir:~/Maildir

protocol imap {

protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv

protocol lda {
  postmaster_address =

auth default {
  mechanisms = plain

  passdb pam {

  userdb passwd {

  user = root

dict {

plugin {

Template: on license
All trademarks belong to their respective owners. All materials presented here for informational purposes only.