斑竹网络专注为中小企业客户提供以管理服务为核心的IT全方位服务 https://www.sysadm.cn
分类: 系统运维
2013-12-17 11:04:43
安装SquirrelMail(squirrelmail-1.4.6.tar.gz) PHP编写的IMAP客户端
# tar -zxvf squirrelmail-1.4.6.tar.gz
# cd squirrelmail-1.4.6
# cd plugins/
# tar -zxvf quota_usage-1.3-1.2.7.tar.gz
# cd /root/software/quota_usage
# cp config.php.sample config.php
# cd /root/software/squirrelmail-1.4.6
# ./configure
# 你将要设置如下选项
#选择 “2. Server Settings”=>“A. Update IMAP Settings”=>“8. Server software”改成“courier”;回到主菜单,选择“4.General Options”=>“1. Data Directoryand”改成“/var/www/data/”;再退回主菜单,选择“8. Plugins”=>添加你希望用到的插件。回到主菜单,选择“10. Languages”,将“ Default Language”改成“zh_CN”,“Default Charset”改成“GB2312”。保存退出。
# mv data /var/www
# chown -R vpopmail.vchkpw /var/www/data
# cd ..
# mv squirrelmail-1.4.6 /var/www/html/squirrelmail
十六、安装Autorespond(autorespond-2.0.2.tar.gz:一个自动回复工具,可以很好的与qmailadmin 配合使用)
# wget http://www.inter7.com/devel/autorespond-2.0.2.tar.gz # 下载autorespond-2.0.2.tar.gz
# tar -zxvf autorespond-2.0.2.tar.gz
# make
# make install
十七、安装Ezmlm 强大的邮件列表程序(ezmlm-0.53.tar.gz)
下载 # wget
# tar -zxvf ezmlm-0.53.tar.gz
# tar -zxvf ezmlm-idx-5.0.2.tar.gz
# cd ezmlm-0.53
# cp -rf ezmlm-idx-5.0.2/* ezmlm-0.53
# patch < idx.patch
# make
# make man
# make setup
十八、安装qmailadmin(qmailadmin-1.2.9.tar.gz)
# tar -zxvf qmailadmin-1.2.9.tar.gz
# cd qmailadmin-1.2.9
# ./configure --enable-htmldir=/var/www/html --enable-cgibindir=/var/www/cgi-bin --enable-vpopuser=vpopmail --enable-autoresponder-bin=/usr/bin --disable-ezmlm-mysql --enable-maxusersperpage=20 --enable-maxaliasesperpage=20 --enable-modify-quota --enable-domain-autofill
# make
# make install-strip
# cd /usr/local/share/qmailadmin/lang/
# mv en en.bak
# cp zh-cn en
十九、安装Vqregister(vqregister-2.5.tar.gz)
下载 vqregister-2.5.tar.gz
# wget
# tar -zxvf vqregister-2.5.tar.gz
# cd vqregister-2.5
#修改安装配置文件Makefile
# vi Makefile
#找到这几行
DEFS = -I$(VDIR)/include -I/usr/local/mysql/include
LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/local/mysql/lib/mysql -lmysqlclient
INSTALL_DIR = /usr/local/apache/cgi-bin/vqregister
#将它们改成实际路径,这里是
DEFS = -I$(VDIR)/include -I/usr/include/mysql
LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib/mysql -lmysqlclient
# make all install clean
# cd /var/www/cgi-bin/vqregister/
# cd /var/www/cgi-bin/vqregister/
# vi vqregister.conf
根据需要修改其中的内容:
使用浏览器测试一下结果
发现不能打开页面,说禁止访问(403错误),检查 /usr/local/apache2/logs/error_log
发现有如下的错误提示信息:
[Sat Nov 18 11:55:12 2006] [error] [client 192.168.0.254] client denied by server configuration: /var/www/cgi-binvqregister
发现是在/usr/local/apache2/conf/httpd.conf是的CGI-BIN中定义部分少了一个/号,添加上,重启APACHE服务,然后将cgi-bin/vqregister/下的 vqregister.cgi设置成777模式,再游览一下,工作正常。
二十、安装vQadmin(vqadmin-2.3.2.tar.gz)
下载 vqadmin软件包:
# tar -zxvf vqadmin-2.3.2.tar.gz
# cd vqadmin-2.3.2
# ./configure
# make
# make install-strip
# cd /var/www/cgi-bin
# cd vqadmin
# chown nobody .htaccess
# chmod 600 .htaccess
# /usr/local/apache2/bin/htpasswd -bc /usr/local/apache2/conf/vqadmin.passwd postmaster bwyy1679
# vi /var/www/cgi-bin/vqadmin/.htaccess
确认上述文件的内容是以下内容:
AuthType Basic
AuthUserFile /usr/local/apache/conf/vqadmin.passwd
AuthName vQadmin
require valid-user
satisfy any
用浏览器测试发生如下错误:
Authentication Failed Username unknown
vQadmin was unable to determine your username, which
means your webserver is improperly configured to run
with this CGI. For security reasons, this script
will not run without Apache htaccess lists.