linux上安装基于postfix的全功能邮件服务器(2)
rceforge/courier/courier-imap-4.1.3.tar.bz2
# tar jxvf courier-imap-4.1.3.tar.bz2 # cd courier-imap-4.1.3 # ./configure --prefix=/usr/local/courier-imap --with-redhat --enable-unicode --disable-root-check --with-trashquota --without-ipv6 CPPFLAGS=''-I/usr/local/ssl/include/openssl -I/usr/local/courier-authlib/include'' LDFLAGS=''-L/usr/local/courier-authlib/lib/courier-authlib'' COURIERAUTHCONFIG=''/usr/local/courier-authlib/bin/courierauthconfig'' # make ##############出现错误start@@@@@@@@@@@@@@@@@@@ ./.libs/libcouriertls.a(libcouriertls.o): In function `init_session_cache'': /usr/local/courier-imap-4.1.3/tcpd/libcouriertls.c:590: undefined reference to `SSL_CTX_sess_set_new_cb'' /usr/local/courier-imap-4.1.3/tcpd/libcouriertls.c:591: undefined reference to `SSL_CTX_sess_set_get_cb'' /usr/local/courier-imap-4.1.3/tcpd/libcouriertls.c:592: undefined reference to `SSL_CTX_sess_set_remove_cb'' collect2: ld returned 1 exit status make[3]: *** [couriertls] 错误 1 make[3]: Leaving directory `/usr/local/courier-imap-4.1.3/tcpd'' make[2]: *** [all] 错误 2 make[2]: Leaving directory `/usr/local/courier-imap-4.1.3/tcpd'' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/usr/local/courier-imap-4.1.3'' make: *** [all] 错误 2 解决方法:更新了openssl到openssl-0.9.8f ps:极有可能是我openssl-0.9.8e没有装好 tar zxvf openssl-0.9.8f.tar.gz cd openssl-0.9.8f ./config shared zlib make make test make install #不再备份是之前已经备份! rm -rf /usr/bin/openssl rm -rf /usr/include/openssl rm /usr/lib/libssl.so ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl ln -s /usr/local/ssl/include/openssl /usr/include/openssl ln -sv /usr/local/ssl/lib/libssl.so.0.9.8 /usr/lib/libssl.so
终于可以通过make ##############出现错误end@@@@@@@@@@@@@@@@@@@ # 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";其它类同; 新建虚拟用户邮箱所在的目录,并将其权限赋予postfix用户: #mkdir –pv /var/spool/mail #chown postfix -R /var/spool/mail #cp courier-imap.sysvinit /etc/rc.d/init.d/courier-imapd #chmod 755 /etc/rc.d/init.d/courier-imapd #chkconfig --add courier-imapd #chkconfig --level 2345 courier-imapd on #service courier-imapd start 接下来重新配置SMTP 认证,编辑 /usr/local/lib/sasl2/smtpd.conf , |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |