Installing and setting up Dovecot in RHEL 4 or CentOS 4 is easy. All we have to do is to enable the services we would like to provide and we are good to go.
Install Dovecot

1. If you did not add dovecot during the CentOS installation, you can add it now. Dovecot is located in the package Mail Server. Learn how to add or remove applications here.Configure Dovecot
Find the following keys and change its values as follows
protocols = pop3 pop3s imap imaps default_mail_env = maildir:~/Maildir/ client_workarounds = oe6-fetch-no-newmail outlook-idle outlook-pop3-no-nuls
Lines starting with # are comments. The last line enables workarounds for various Microsoft Outlook/Outlook Express bugs. Save the file after completing your changes.

4. Start the dovecot service. Learn how to start and stop services here.Test Dovecot

1. Click Applications, select System Tools, and click Terminal. This will launch the Terminal window.Sample dovecot session. Replace johndoe and password with any valid user name and password.
[root@mail ~]# telnet localhost pop3 +OK dovecot ready. user johndoe +OK pass password +OK Logged in. list +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 [127.0.0.1]) 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 X-Keywords: test . quit +OK Logging out. Connection closed by foreign host. [root@mail ~]#
If you encounter any problems, check the log file at /var/log/maillog.
«« Previous: How to Setup Postfix SMTP Server
Next: How to Install SquirrelMail »»
***
Posted on 3/12/2007 and last updated on 7/12/2008
Filed under CentOS 4 , Dovecot , Red Hat Enterprise Linux 4
Share This




July 9th, 2008 at 9:10 am
I can send email using smtp but i can not receive using pop3 any further information can help me i am using centos 4.5 and Evaluation mail client.
July 9th, 2008 at 12:51 pm
Please check /var/log/maillog That should give us a clue on what the problem is.
July 16th, 2008 at 2:42 am
I’ve got the same problem, and I opened the error log, it shows:
Jul 15 21:30:46 regulus dovecot: imap-login: Login: user=, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Jul 15 21:30:46 regulus dovecot: IMAP(jandura): Disconnected: Logged out
I can send email to any email, but I couldn’t receive email from any mails except my own machine!
July 16th, 2008 at 7:36 am
Check your postfix settings. Mydestination should be something like the one below.
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain