Shashikant shah

Friday, 19 October 2012

Dovecot POP3/IMAP Server for RHEL - 5.5



 # Yum install dovecot*
# vim /etc/dovecot.conf
20 protocols = pop3 pop3s imap imaps
205 mail_location = maildir:~/Maildir/
622 pop3_uidl_format = %08Xu%08Xv
564 imap_client_workarounds = delay-newmail outlook-idle netscape-eoh
647 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
For 64-bit users: Add the line login_process_size = 64 in the file /etc/dovecot.conf.
Lines starting with # are comments. The last two line enables workarounds for various client bugs. Save the file after completing your changes.
# /etc/init.d/dovecot restart

Test Dovecot

Sample dovecot session. Replace shashi and password with any valid user name and password.


[root@mail ~]# telnet localhost pop3
+OK dovecot ready.
user shashi
+OK
pass passwd
+OK Logged in.
list
+OK 1 messages:
1 622
.
retr 1
+OK 622 octets
Return-Path: <shashi@example.com>
X-Original-To: shashi
Delivered-To: shashi@example.com
Received: from mail.example.com (mail.example.com [192.168.0.123])
        by mail.example.com (Postfix) with SMTP id 9729067C17
        for <shashi>; Thu, 22 Feb 2007 09:06:37 -0500 (EST)
Message-Id: <20070222140640.9729067C17@mail.example.com>
Date: Thu, 22 Feb 2007 09:06:37 -0500 (EST)
From: shashi@example.com
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.
If you encounter any problems, check the log file at /var/log/maillog.

No comments:

Post a Comment