RedHat 5.4下构建postfix全功能电子邮(四)-Dovecot软件安装
Dovecot 邮局软件安装(提供pop3/imap4协议)
[root@mail soft]# tar -zxvf dovecot-1.1.4.tar.gz -C /usr/local/src/
[root@mail soft]# cd /usr/local/src/dovecot-1.1.4/
[root@mail dovecot-1.1.4]# groupadd dovecot
[root@mail dovecot-1.1.4]# useradd -M -s /sbin/nologin dovecot
[root@mail dovecot-1.1.4]# ./configure --sysconfdir=/etc --with-mysql && make && make install
[root@mail dovecot-1.1.4]# cp /etc/dovecot-example.conf /etc/dovecot.conf
[root@mail dovecot-1.1.4]# vim /etc/dovecot.conf
47 disable_plaintext_auth = no
208 mail_location = maildir:~/Maildir
[root@mail ~]# vim /etc/postfix/main.cf
415 home_mailbox = Maildir/
[root@mail dovecot-1.1.4]# vim /etc/pam.d/dovecot
auth required pam_nologin.so
account include system-auth
session include system-auth
#/usr/local/sbin/dovecot -c /etc/dovecot.conf 启动把这句话写入开机脚本
# pkill -1 dovecot #重新读取dovecot
[root@mail dovecot-1.1.4]# /usr/local/sbin/dovecot -c /etc/dovecot.conf
[root@mail ~]# telnet mail.shuiyong.com 110
Connected to mail.shuiyong.com (10.20.5.35).
Escape character is '^]'.
. 1 432
Return-Path: <user1@shuiyong.com >
X-Original-To: user2@shuiyong.com
Delivered-To: user2@shuiyong.com
Received: from mail. shuiyong.com (mail.shuiyong.com [10.20.5.35])
by mail. shuiyong.com (Postfix) with ESMTP id 6FA1116DEF5
for <user2@ shuiyong.com >; Tue, 15 oct 2012 17:46:37 +0800 (CST)
Message-Id: <20120410094651.6FA1116DEF5@mail.junjie.com>
Date: Tue, 15 oct 2012 17:46:37 +0800 (CST)
From: user1@ shuiyong.com
Connection closed by foreign host. |