一、RPM格式
1。安装RPM包;
2。编辑/etc/dovecot.conf
其中,修改<br />
protocols = imap pop3
passdb passwd {
}
passdb shadow {
}
3。启动</div>

#service dovecot start
二、tar.gz包的安装
1。下载地址:(目前最新版本)http://www.dovecot.org/releases/dovecot-1.0.rc14.tar.gz
2。安装:
#tar zxvf dovecot-1.0.rc14.tar.tar
#cd dovecot-1.0.rc14
#./configure –prefix=/usr/local/dovecot –sysconfdir=/usr/local/etc –with-mysql –without-ssl –disable-ipv6
#make
#make install
# cp /usr/local/etc/dovecot-example.conf /usr/local/etc/dovecot.conf
3。建立启动进程所依赖的用户<br />
# useradd -s /bin/false -d /dev/null dovecot
4。修改配置文件</div>

编辑/usr/local/etc/dovecot.conf
其中,修改<br />
protocols = imap pop3
ssl_disable = yes
passdb passwd {
}
passdb shadow {
}
5。启动</div>

#/usr/local/dovecot/sbin/dovecot
6。可以把启动命令写进/etc/rc.d/rc.local文件,以使得系统启动时能自动启动服务。</div>

#echo “/usr/local/dovecot/sbin/dovecot” >> /etc/rc.d/rc.local
7。验正</div>

(1)验正POP3
#telnet localhost 110
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
+OK Dovecot ready.
(2)验正imap
#telnet localhost 143

Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
* OK Dovecot ready.

One Response to dovecot安装
  1. Pin my tail and call me a doenyk, that really helped.


[top]

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注