Configure Dovecot Server

Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like systems, written with security primarily in mind

1- Install Package

 # yum install dovecoat* -y

2- Open Config File

# vim /etc/dovecot/dovecot.conf 

protocols = imap pop3 lmtp

3- Open the file /etc/dovecot/conf.d/10-mail.conf and uncomment the line as shown below.

# vi /etc/dovecot/conf.d/10-mail.conf

4- Open the /etc/dovecot/conf.d/10-auth.conf and edit as shown below.

# vi /etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no         (line no 9 - uncomment and change from yes to no.)
auth_mechanisms = plain login (line no 97 - add the text "login")

Open the /etc/dovecot/conf.d/10-master.conf and edit as shown below.

unix_listener auth-userdb {
    #mode = 0600
    user = postfix (line no 83 - uncomment and enter postfix)
    group = postfix (line no 84 - uncomment and enter postfix)

5-Start the dovecot service.

# service dovecot start
Starting Dovecot Imap:                                     [  OK  ]
# chkconfig dovecot on


Test Dovecot

The commands shown in bold should be entered by the user.

# telnet localhost pop3
Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user user1
pass user1
+OK Logged in.
+OK 1 messages:
1 428
retr 1
+OK 428 octets
Return-Path: <>
X-Original-To: user1
Received: from localhost (localhost [IPv6:::1])
by (Postfix) with ESMTP id 117113FF18
for <user1>; Thu,  7 Feb 2013 17:05:32 +0530 (IST)
Message-Id: <>
Date: Thu,  7 Feb 2013 17:05:32 +0530 (IST)
To: undisclosed-recipients:;
+OK Logging out.
Connection closed by foreign host.
[root@server ~]# 

Now Working………

Leave a Reply

Your email address will not be published. Required fields are marked *