copywu 2008-3-9 15:03
基于CentOS5.1系统;Postfix+Clamav+spam+webmail邮件系统包,免费下载使用
您还在为在Linux下,编译、配置LAMPP Mail等软件而烦扰吗?
推荐您下载由本人在CentOS 5.1的基础上编译配置的LAMPP和Mail系统包吧,完全免费使用
该软件包在CentOS5和Fredora8上已经测试通过
因为本人水平有限,也许会有某些配置不当的地方,如您发现错误,欢迎指正,谢谢
[color=Red]同时也欢迎大家都来我们的论坛坐坐[/color]
[url]http://bbs.freesinno.com/viewforum.php?f=10[/url]
本人常用Email地址:copywu#gmail.com
[b]软件包包含的各开源软件列表[/b]
---------------------------------------------
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
---------------------------------------------
以及一些必要的lib程序,不做详细说明
[b]下载地址[/b]
[color=Red]电信:[/color]
LAMPP (100M):[url]http://www.freesinno.com/download/freesinno-baseenv-1.0.5.i386.bin[/url]
Mail系统 (30M):[url]http://www.freesinno.com/download/freesinno-mail-1.0.5.i386.bin[/url]
[color=Red]网通:[/color]
LAMPP (100M):[url]http://cnc.freesinno.com/download/freesinno-baseenv-1.0.5.i386.bin[/url]
Mail系统 (30M):[url]http://cnc.freesinno.com/download/freesinno-mail-1.0.5.i386.bin[/url]
[b]安装方法:[/b]
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
[b]安装完成,系统将自动启动Mail系统,下一步需要您修改Mail系统的访问域名即可使用[/b]
[b]注意:[/b]
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/目录下
[b]配置文件列表说明[/b]
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/
--------------------------------------------------------------------
[b]Mail系统的相关配置文件列表[/b]
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
[b]重启mysql httpd mail系统的方法[/b]
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
[[i] 本帖最后由 copywu 于 2008-3-11 16:14 编辑 [/i]]
copywu 2008-3-9 15:04
如何使用自带的AWSTATS对web服务器进行日志和流量统计分析
对于http服务我们建议大家使用虚拟服务器技术,对每个站点都有独立的域名和目录,当然如果您只有一个域名,那么可以只创建一个虚拟服务器,并把需要被访问的目录使用Alias的方式进行定义
而AWSTATS使用多配置文件对不同的虚拟服务器进行日志和流量统计分析的,所以我们需要针对每个虚拟服务器进行相应的配置,配置过程如下,
1.设置虚拟服务器的日志存储目录和方式
# cd /opt/FreeSInno/LAMPP/etc/apache
# vi httpd.conf
<VirtualHost *:80>
#省略若干
……
# 使用cronolog对日志进行轮询,存放在/opt/FreeSInno/LAMPP/apache/logs/www/目录下,命名规则为 access_log.%Y%m%d(access_log.年月日,如access_log.20071228),日志存储格式为combined
CustomLog "| /opt/FreeSInno/LAMPP/share/cronolog/sbin/cronolog /opt/FreeSInno/LAMPP/apache/logs/www/access_log.%Y%m%d" combined
</VirtualHost>
2.设置awstats针对该虚拟站点conf配置
# cd /opt/FreeSInno/LAMPP/www/awstats/cgi-bin
# vi awstats.<站点域名>.conf #如awstats.[url]www.freesinno.com.conf[/url]
Include "common.conf"
LogFile="/opt/FreeSInno/LAMPP/apache/logs/www/access_log.%YYYY-24%MM-24%DD-24"
#该站点的日志存储路径
SiteDomain="站点域名"
DefaultFile="index.html" #首页文件名
DirData="/opt/FreeSInno/LAMPP/www/awstats/data" #分析结果的存储目录,不建议修改
3.设置awstats定时分析日志的shell脚本文件
# cd /opt/FreeSInno/LAMPP/www/awstats
# vi awstats_update.sh
#加入一行
/opt/FreeSInno/LAMPP/www/awstats/cgi-bin/awstats.pl -update -config=<站点域名>
4.设置定时删除过期的日志文件,避免不必要的磁盘空间浪费(可选)
# vi clearlog.sh
#加入一行,默认为删除5天前的日志文件,可根据实际情况进行调整
/bin/rm -f /opt/FreeSInno/LAMPP/apache/logs/www/`date -d "5 days ago" +access_log.\%Y\%m\%d`
5.重启http服务,使用如下url访问awstats的统计界面(默认访问的用户名密码为admin / free8admin)
copywu 2008-3-9 15:53
贴两张Webmail的图片
贴两张Webmail的图片
copywu 2008-3-9 16:16
发布ssl支持补丁
[b]下载地址[/b]
[color=Red]电信[/color]
[url]http://www.freesinno.com/download/2008-03-09_15_22_mail_ssl.bin[/url]
[color=Red]网通[/color]
[url]http://cnc.freesinno.com/download/2008-03-09_15_22_mail_ssl.bin[/url]
[b]安装方法[/b]
如果您正在运行邮件系统,请先停止系统后再执行安装补丁
1.下载补丁包到特定目录下,如/tmp
2. # cd /tmp
3. # chmod +x 2008-03-09_15_22_mail_ssl.bin
4. # ./2008-03-09_15_22_mail_ssl.bin
完成,重启服务即可
[b]如何更新证书[/b];注意生成证书的时候各证书的密码要记住哦,特别是更证书的密码
[b]1.生成根证书[/b]
# cd /opt/FreeSInno/Mail/postfix/ssl
# perl CA.pl -newca
[b]2.生成smtpd使用的证书[/b]
/opt/FreeSInno/LAMPP/openssl/bin/openssl req -new -nodes -keyout mailkey.pem -out mailreq.pem -days 3650
/opt/FreeSInno/LAMPP/openssl/bin/openssl ca -out mail_signed_cert.pem -infiles mailreq.pem
[b]3.生成pop3d.pem密钥[/b]
# cd /opt/FreeSInno/Mail/courier-imap/share
# /opt/FreeSInno/LAMPP/openssl/bin/openssl req -new -x509 -days 3650 -nodes -out pop3d.pem -keyout pop3d.pem
[b]4.生成imapd.pem密钥[/b]
# cd /opt/FreeSInno/Mail/courier-imap/share
# /opt/FreeSInno/LAMPP/openssl/bin/openssl req -new -x509 -days 3650 -nodes -out imapd.pem -keyout imapd.pem
生成证书后,重启邮件服务即可
[[i] 本帖最后由 copywu 于 2008-3-11 16:25 编辑 [/i]]
yuyangzxw 2008-3-10 16:44
很详细,谢谢楼主,真需要~:) :victory:
hanlin020 2008-3-13 17:05
真的很不错,为了一个postfix我花了好几天,目前还没有出现成果!
copywu 2008-3-14 10:05
谢谢各位支持,希望这个包能解决大家的实际问题呀, :)
楼上的回复乱码了?
yu_hl 2008-3-24 16:01
怎么那个100M的文件下到99.9%就下载出错了?
yanyongshao 2008-3-26 11:04
Extmail开源的软件,目前正在试用中吗,,,很不错的,LINUX的东西是需要基础的,没基础的人,很难上手
wutb 2008-3-26 19:11
:victory: :victory: :victory:
copywu 2008-3-30 13:37
不知道出现的是什么样的错误呢?如果使用的是flashget之类的下载工具,那么建议您暂停后再启动下载,有时候这类下载软件就是有这样的问题
shidianxin 2008-5-8 10:10
自动更新/etc/crontab,增加awstats自动滚动apache日志任务、freshclam更新病毒库任务、spamassassin更新Chinese_rules.cf任务
:P
dylgyss 2008-6-2 11:26
技术交流一下
QQ群32331741技术交流一下inux与常用邮局技术!欢迎加入!现在还没有管理员哦!