Cấu hình Mail Server trên CentOS 6.5

8705

3. Installing Dovecot

yum install dovecot

Chỉnh sửa file dovecot.conf

vi /etc/dovecot/dovecot.conf

Bỏ # dòng 20

# Protocols we want to be serving.
protocols = imap pop3 lmtp

Chỉnh sửa file 10-mail.conf

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

Bỏ # dòng 24

#
 mail_location = maildir:~/Maildir
# mail_location = mbox:~/mail:INBOX=/var/mail/%u

Chỉnh sửa file 10-auth.conf

vi /etc/dovecot/conf.d/10-auth.conf

Bỏ # dòng 9 chuyển disable_plaintext_auth = no

# connection is considered secure and plaintext authentication is allowed.
disable_plaintext_auth = no
# Authentication cache size (e.g. 10M). 0 means it's disabled. Note that

Bỏ # dòng 97 thêm auth_mechanisms = plain login

# NOTE: See also disable_plaintext_auth setting.
auth_mechanisms = plain login

Chỉnh sửa file 10-master.conf

vi /etc/dovecot/conf.d/10-master.conf

Bỏ # dòng 83 ,84

#mode = 0600
 user = postfix
 group = postfix
 }

Khởi động lại dịch vụ và test

service dovecot restart
telnet localhost pop3

Lưu ý : Những dòng được in đậm là do bạn nhập vào

[root@server /]# telnet localhost pop3
Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user adminvn 
+OK
pass 123456
+OK Logged in.
list
+OK 1 messages:
1 453
.
retr 1
+OK 453 octets
Return-Path: <[email protected]>
X-Original-To: adminvn
Delivered-To: [email protected]
Received: from localhost (localhost [IPv6:::1])
 by server.adminvietnam.org (Postfix) with SMTP id 157B0416B6
 for <adminvn>; Thu, 28 Apr 2016 19:10:20 +0700 (ICT)
Message-Id: <[email protected]>
Date: Thu, 28 Apr 2016 19:10:20 +0700 (ICT)
From: [email protected]
To: undisclosed-recipients:;

hello
.
quit
+OK Logging out.
Connection closed by foreign host.