Saturday, October 10, 2009

How to setup an email Server on Linux


login as: root

root@209.190.27.98's password:

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

[root@roni ~]# yum install dovecot

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirror.cs.vt.edu

* updates: mirror.atlanticmetro.net

* addons: chi-10g-1-mirror.fastsoft.net

* extras: updates.interworx.info

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

================================================================================

Installing:

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

Complete!

[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

Trying 127.0.0.1...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

+OK Dovecot ready.

user roni

+OK

pass *****

+OK Logged in.

list

+OK 0 messages:

.

QUIT

+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

@decorators in Python

People have confusion about how to use python decorators in the proper way and how it works. The main reason for it is there are several way...