Installing and setting up Dovecot in Ubuntu 10.04 is easy. All we have to do is set the mailbox format to maildir and we are good to go.

Configure Dovecot

Edit dovecot.conf
1. Edit the file /etc/dovecot/dovecot.conf using the command
sudo vi /etc/dovecot/dovecot.conf
and update the lines below
mail_location = maildir:~/Maildir
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
Service Configuration2. Restart dovecot using the command
sudo service dovecot restart

Test Dovecot

Here’s a sample dovecot session. Replace johndoe and password with any valid user name and password.

johndoe@mail:~$ telnet localhost pop3
Connected to localhost.
Escape character is '^]'.
+OK dovecot ready.
user johndoe
pass password
+OK Logged in.
+OK 1 messages:
1 622
retr 1
+OK 622 octets
Return-Path: <johndoe@mail.acme.local>
X-Original-To: johndoe
Delivered-To: johndoe@mail.acme.local
Received: from localhost.localdomain (localhost.localdomain [])
        by mail.acme.local (Postfix) with SMTP id 9729067C17
        for <johndoe>; Thu, 22 Feb 2007 09:06:37 -0500 (EST)
Message-Id: <20070222140640.9729067C17@mail.acme.local>
Date: Thu, 22 Feb 2007 09:06:37 -0500 (EST)
From: johndoe@mail.acme.local
To: undisclosed-recipients:;
X-IMAPbase: 1172153557 1
Status: O
X-UID: 1
Content-Length: 5

+OK Logging out.
Connection closed by foreign host.

NoteIf you encounter any problems, check the log file at /var/log/mail.log.


Visit the forum to ask for help or to give a comment.

Posted on 9/12/2011 and last updated on 9/12/2011
Filed under Dovecot , Ubuntu 10.04