大前提:当然先要安装sendmail了 一.需要软件: openssl-0.9.6g.tar.gz(可从www.sunfreeware.com下载); imap.tar.Z(可从www.washington.edu/imap下载) 二.安装过程: 1.安装openssl #gunzip openssl-0.9.6g.tar.gz #tar xvf openssl-0.9.6g.tar #cd openssl-0.9.6g #./config #make #make test #make install 2.安装imap2002: #uncompress imap.tar.Z #tar xvf imap.tar #cd imap-2002 #make gso #make install #cp imapd/imapd /usr/local/etc/ #cp ipopd/ipop2d /usr/local/etc/ #cp ipopd/ipop3d /usr/local/etc/ 三.配置过程: #vi /etc/inet/inetd.conf 添加: pop stream tcp nowait root /usr/local/etc/ipop2d ipop2d pop3 stream tcp nowait root /usr/local/etc/ipop3d ipop3d imap stream tcp nowait root /usr/local/etc/imapd imapd pop3s stream tcp nowait root /usr/local/etc/ipop3d ipop3d imaps stream tcp nowait root /usr/local/etc/imapd imapd # vi /etc/inet/services 确保有下列几行: pop109/tcp pop3110/tcp imap143/tcp imaps993/tcp pop3s995/tcp #ps -ef | grep inetd #kill -HUP pid 四.测试 #telnet xxx.xxx.xxx.xxx 110 +OK POP3 narcissus v2001.80 server ready #telnet xxx.xxx.xxx.xxx 143 * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS LOGINDISABLED] narcissus IMA P4rev1 2002.332 at Thu, 12 Dec 2002 11:24:31 +0800 (CST) 五.总结 第一次支持pop3用的软件是qpopper,就下载->解压->configure->make->make install相当顺利相当简单,没什么好说的。后来就一直想用imap试试,一开始安装失败是由于没有装openssl,接着安装失败是由于openssl没有安装在默认路径下。整个过程前后花了一个晚上一个上午。安装软件还是需要胆大心细,一定要看README和INSTALL。
|
|