配置dovecot

运维

配置dovecot

yum install -y dovecot

a.配置文件:

a.  vim /etc/dovecot/dovecot.conf  (protocols = imap pop3)

b.  vim /etc/dovecot/conf.d/10-auth.conf

(disable_plaintext_auth = no)

c. vim /etc/dovecot/conf.d/10-mail.conf

(mail_location = maildir:~/Maildir)地址要和postfix服务器配置文件中的home_mailbox地址一致

d. vim /etc/dovecot/conf.d/10-ssl.conf

(ssl = yes)

e. vim /etc/pam.d/dovecot  (查看pam认证文件)

b.验证:

[root@CentOS6 ~]# telnet localhost 110

Trying ::1…

Connected to localhost.

Escape character is ‘^]’.

+OK Dovecot ready.

user user1

+OK

pass 123

+OK Logged in.

list

+OK 4 messages:

1 472

2 458

3 464

4 464

.

retr 3

+OK 464 octets

Return-Path: <sadsz2@asd.com>

X-Original-To: syj@mail.1991syj.com

Delivered-To: syj@mail.1991syj.com

Tagged