原文发表于:
http://bbs.freesinno.com/viewtopic.php?f=4&t=15
您还在为在Linux下,编译、配置LAMPP Mail等软件而烦扰吗?
推荐您下载由本人在CentOS 5.1的基础上编译配置的LAMPP和Mail系统包吧,完全免费使用
该软件包在CentOS5和Fredora8上已经测试通过
因为本人水平有限,也许会有某些配置不当的地方,如您发现错误,欢迎指正,谢谢
本人常用Email地址:copywu#gmail.com
主要整合了下列开源软件包
---------------------------------------------
Apache 2.0.61
OpenSSL 0.9.8g
PHP 5.2.4
Perl v5.8.8
Mysql 5.0.45
rrdtool-1.2.26
awstats-6.7
phpMyAdmin-2.11.1-all-languages
phpsysinfo-2.5.4
---------------------------------------------
Postfix-2.4.6
amavisd-new-2.5.3
clamav-0.91.2
Mail-SpamAssassin-3.2.3
maildrop-2.0.2
courier-imap-4.3.0
courier-authlib-0.58
cyrus-sasl-2.1.2
extmail-1.0.3
extman-0.2.3
---------------------------------------------
下载地址
基础系统包:
http://www.freesinno.com/downloa ... eenv-1.0.5.i386.bin
Mail系统:
http://www.freesinno.com/download/freesinno-mail-1.0.5.i386.bin
安装方法:
1.下载两个二进制包到特定目录下,如/tmp
2. # cd /tmp
3. # chmod +x freesinno-baseenv-1.0.5.i386.bin
4. # chmod +x freesinno-mail-1.0.5.i386.bin
5. # ./freesinno-baseenv-1.0.5.i386.bin
6. # ./freesinno-mail-1.0.5.i386.bin
安装完成,系统将自动启动Mail系统,下一步需要您修改Mail系统的访问域名即可使用
注意:
1.建议在测试环境中测试通过后再考虑应用到实际生产环境,安装包需要的磁盘空间大概为1G
2.如果是基于Centos 5.1或者Fedora8的系统环境,在安装操作系统的时候只需要最小化安装即可
3.安装的软件包会改变系统的一些配置文件,如下列表说明
1)自动关闭selinux
2)自动更新/etc/ld.so.conf文件
3)自动更新/etc/crontab,增加awstats自动滚动apache日志任务、freshclam更新病毒库任务、spamassassin更新Chinese_rules.cf任务
4)如果系统已经安装了php perl等,安装包将会自动替换php perl执行程序
5)自动移除/etc/my.cnf
6)自动创建用户freesinno.com(gid=1111 uid=1111),postfix(gid=1113 uid=1113);用户组postdrop(gid=1112)
7)自动创建/home/mail目录
8)ln -s -f /opt/FreeSInno/Mail/lib/spam /etc/opt/mail/spamassassin
9)ln -s /opt/FreeSInno/Mail/cyrus-sasl2/lib/sasl2 /usr/lib/sasl2
10)所有二进制文件都将释放到/opt/FreeSInno/目录下
配置文件列表说明
Apache配置文件:
主配置文件:/opt/FreeSInno/LAMPP/etc/apache/httpd.conf
根目录的虚拟主机配置:/opt/FreeSInno/LAMPP/etc/apache/www/base.conf
--------------------------------------------------------------------
主要包含了phpmyadmin和awstats的目录配置
部分目录使用了密码认证
密码文件为:/opt/FreeSInno/LAMPP/etc/apache/.htpasswd
默认配置了admin用户,密码为free8admin
Mysql的root密码为FreeSInno.com
访问phpmyadmin方法:http://yourdomain_or_ip/phpmyadmin
访问awstats方法:http://yourdomain_or_ip/awstats/cgi-bin/awstats.pl?config=yourdomain (awstats的使用方法见下面章节)
--------------------------------------------------------------------
WebMail的虚拟主机配置:/opt/FreeSInno/LAMPP/etc/apache/wwwconf/mail.conf
--------------------------------------------------------------------
配置了extman和extmail的目录
extman的管理用户为admin,密码为free8admin
投入实际环境中使用的时候,只需修改该配置文件的域名为您的实际域名即可
ServerName mail.freesinno.com
访问extman方法:http://yourmaildomain/extman
访问extmail方法:http://yourmaildomain/
--------------------------------------------------------------------
Mail系统的相关配置文件列表
postfix
/opt/FreeSInno/Mail/postfix/etc/main.cf
/opt/FreeSInno/Mail/postfix/etc/master.cf
/opt/FreeSInno/Mail/postfix/etc/mysql_*
amavisd,作用:整合postfix、病毒库和垃圾邮件功能
/opt/FreeSInno/Mail/amavisd/etc/amavisd.conf
clamav,作用:防病毒
/opt/FreeSInno/Mail/clamav/etc/clamd.conf
/opt/FreeSInno/Mail/clamav/etc/freshclam.conf
spam,作用:防垃圾
/opt/FreeSInno/Mail/lib/spam/local.cf
courier-imap,作用:pop3和imap
/opt/FreeSInno/Mail/courier-imap/etc/imapd.cnf
/opt/FreeSInno/Mail/courier-imap/etc/pop3d.cnf
courier-authlib,作用:结合cyrus-sasl2、mysql进行用户认证
/opt/FreeSInno/Mail/courier-authlib/etc/authlib/authmysqlrc
/opt/FreeSInno/Mail/courier-authlib/etc/authlib/authdaemonrc
重启mysql httpd mail系统的方法
start或stop命令也可用
重启mysql和httpd
# /opt/FreeSInno/LAMPP/bin/lamppctl restart
只重启mysqld
# /opt/FreeSInno/LAMPP/bin/lamppctl mysqld restart
只重启httpd
# /opt/FreeSInno/LAMPP/bin/lamppctl httpd restart
重启mail系统
/opt/FreeSInno/Mail/bin/mailctl restart
[
本帖最后由 channer.lv 于 2008-3-11 10:34 编辑 ]