Saturday, October 10, 2009

How to setup an email Server on Linux

login as: root

root@'s password:

Last login: Tue Jul 7 05:21:48 2009 from

[root@roni ~]# yum install dovecot

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base:

* updates:

* addons:

* extras:

Setting up Install Process

Parsing package install arguments

Resolving Dependencies

--> Running transaction check

---> Package dovecot.i386 0:1.0.7-7.el5 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved


Package Arch Version Repository Size



dovecot i386 1.0.7-7.el5 base 1.6 M

Transaction Summary


Install 1 Package(s)

Update 0 Package(s)

Remove 0 Package(s)

Total download size: 1.6 M

Is this ok [y/N]: y

Downloading Packages:

dovecot-1.0.7-7.el5.i386.rpm | 1.6 MB 00:00

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : dovecot [1/1]

Installed: dovecot.i386 0:1.0.7-7.el5


[root@roni ~]# vi /etc/dovecot.conf

Find and change the following options

protocols = pop3 pop3s imap imaps

mail_location = maildir:~/Maildir/

pop3_uidl_format = %08Xu%08Xv

imap_client_workarounds = delay-newmail outlook-idle netscape-eoh

pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

[root@roni ~]# /sbin/service dovecot start

Starting Dovecot Imap: [ OK ]

[root@roni ~]# telnet localhost pop3


Connected to localhost.localdomain (

Escape character is '^]'.

+OK Dovecot ready.

user roni


pass *****

+OK Logged in.


+OK 0 messages:



+OK Logging out.

Connection closed by foreign host.

[root@roni ~]#

to view the log

[root@roni ~]# vi /var/log/maillog

No comments:

Post a Comment

Start Your Spring development with IntelliJ IDEA in 3 Minutes

Lots of my students and juniors keep telling me that, setting up a “Spring” development environment is a big hassle. There are many tutori...