Linux+IMAP4.7c1安装脚本
#----where to download----
#ftp://ftp.cac.washington.edu/imap/imap-4.7c1.tar.Z
#----where to install----
imap=/usr/local/imap
c_client=/usr/local/imap/c_client
#----untar----
tar xzvf imap-4.7c1.tar.Z
#----install----
cd imap-4.7c
make slx
mkdir $imap
cp -f ipopd/ipop2d $imap
cp -f ipopd/ipop3d $imap
cp -f imapd/imapd $imap
cp -f mtest/mtest $imap
mkdir $c_client
mkdir $c_client/include
cp -R -f c-client/*.h $c_client/include
mkdir $c_client/lib
cp -R -f c-client/*.a $c_client/lib
ln -s $c_client/lib/c-client.a $c_client/lib/libc-client.a
mkdir $c_client/src
cp -R -f src/c-client/* $c_client/src
cd ..
#----free----
rm -rf imap-4.7c
#----configuration information----
echo "
--------------------------------------------------------------------------------
please add following lines in /etc/profile
(
tip:you can create a file named /etc/profile.imap,and add these lines in this
file,finally add a line on the end of /etc/profile:
. /etc/profile.imap
):
PATH=""$""PATH:$imap
CPLUS_INCLUDE_PATH=""$""CPLUS_INCLUDE_PATH:$c_client/include
LD_LIBRARY_PATH=""$""LD_LIBRARY_PATH:$c_client/lib
LIBRARY_PATH=""$""LIBRARY_PATH:$c_client/lib
export PATH CPLUS_INCLUDE_PATH LD_LIBRARY_PATH LIBRARY_PATH
please add or uncomment following lines in /etc/services:
pop2 109/tcp postoffice # POP version 2
pop2 109/udp
pop3 110/tcp # POP version 3
pop3 110/udp
imap2 143/tcp imap # Interim Mail Access Proto v2
imap2 143/udp imap
please add or uncomment following lines in /etc/inetd.conf:
pop2 stream tcp nowait root /usr/sbin/tcpd $imap/ipop2d
pop3 stream tcp nowait root /usr/sbin/tcpd $imap/ipop3d
imap stream tcp nowait root /usr/sbin/tcpd $imap/imapd
now,you should logout and relogin as root,and type /etc/rc.d/init.d/inet restart
if you want your php support imap,please recompile php,add this configuration in
./configure:
--with-imap=$c_client
"
- · 邮件传输原理及相关入门知识概述
- · Qmail邮件队列工作原理
- · 如何设置一个高容量的Linux POP3服务器
- · Linux环境下邮件服务器软件的比较(上)
- · QMAIL下的主要配置文件
- · Qmail实例配置详解(附带演示)
- · Qmail下建立大容量邮件系统简答
- · sendmail下限制邮件大小
- · Sendmail的邮件用户与系统用户分离
- · 关于sendmail.cf的简单解释
- · 带SMTP认证功能的qmail配置
- · SendMail上手指南
- · vpopmail实现qmail账户的数据库管理
- · qmail在Linux,Solaris系统安装详解
- · QMAIL邮件管理篇VmailMgr
- · Linux环境下邮件服务器软件的分析比较
- · Qmail邮件系统下防止滥用mail relay完全解决方案
- · SMTP安全手册—Sendmail服务器安全
- · 我的qmail安装历程
- · QMAIL控制文件详解
- · 如何建立邮件服务器
- · 配置高效的Sendmail服务器
- · 如何利用qmail防止垃圾邮件
- · POSTFIX和CYRUSIMAP安装手册
- · postfix邮件服务器快速指南
- · 邮件系统postfix安装与配置(一)
- · 建立大容量Web界面的Email系统
- · 选择邮件服务器十二要素
- · Qmail+LDAP安装配置实例<二>
- · 快速邮件传输协议QMTP
- · smtp 协议中的错误信息
- · TCP/IP(一)
- · 认识Pop3命令
- · 什么是LDAP?
- · 全面剖析E-mail收发失败的原因(一)
- · 全面剖析E-mail收发失败的原因(二)
- · Email邮件头揭密(二)
- · IEEE 802标准 IEEE 802 Standards
- · 邮件原文详细介绍(一)--神奇的MIME
- · 邮件退回的讯息表
- · HTTP协议
- · TCP/IP子网掩码教程
- · POP3 邮局协议-版本3
- · 深入浅出谈邮件
- · 电子邮件地址的组成

