其他的地方都安装的比较顺利,在安装到courier-imap不行,网上找了资料有人也有和我一样的问题但是都没有解决 最后我重新编译下终于解决,开始找了个4.4.x的版本发现emos里面courier-authlib的版本太低不兼容,后面安装4.1.2的终于好了!在此和大家分享下!
http://download.chinaunix.net/do ... eID=1789&site=1
yum -y install courier-authlib-devel
tar -jxvf courier-imap-4.1.2.tar.bz2
cd courier-imap-4.1.2
./configure --prefix=/usr/local/courier-imap --with-redhat --enable-unicode --disable-root-check \
--with-trashquota --without-ipv6 CPPFLAGS='-I/usr/courier-authlib/include' \
COURIERAUTHCONFIG='/usr/bin/courierauthconfig' \
CPPFLAGS='-I/usr/courier-authlib/include'
(我遇到编译报错,需安装包:yum install gdbm gdbm-devel)
make
make install
cp /usr/local/courier-imap/etc/imapd.dist /usr/local/courier-imap/etc/imapd
cp /usr/local/courier-imap/etc/imapd-ssl.dist /usr/local/courier-imap/etc/imapd-ssl
cp /usr/local/courier-imap/etc/pop3d.dist /usr/local/courier-imap/etc/pop3d
cp /usr/local/courier-imap/etc/pop3d-ssl.dist /usr/local/courier-imap/etc/pop3d-ssl
配置Courier-IMAP,为用户提供pop3服务:
vi /usr/local/courier-imap/etc/pop3d
POP3DSTART=yes
注:如果你想为用户提供IMAP服务,可以在"/usr/local/courier-imap/etc/imapd"文件中设置"IMAPDSTART=yes"。
设置courier-imap开机自动运行:
cp courier-imap.sysvinit /etc/rc.d/init.d/imapd
chmod 755 /etc/rc.d/init.d/imapd
chkconfig --add imapd
service imapd start
至此完全OK了!
参考文档:http://wiki.extmail.org/extmail_solution_for_linux
原文:http://hahayong.blog.51cto.com/231965/530016