ORF反垃圾邮件系统

邮件服务器-邮件系统-邮件技术论坛(BBS)

 找回密码
 会员注册
查看: 27242|回复: 25
打印 上一主题 下一主题

[推荐] 基于CentOS5.1系统;Postfix+Clamav+spam+webmail邮件系统包,免费下载使用

[复制链接]
跳转到指定楼层
顶楼
发表于 2008-3-9 15:03:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
您还在为在Linux下,编译、配置LAMPP Mail等软件而烦扰吗?
推荐您下载由本人在CentOS 5.1的基础上编译配置的LAMPP和Mail系统包吧,完全免费使用

该软件包在CentOS5和Fredora8上已经测试通过
因为本人水平有限,也许会有某些配置不当的地方,如您发现错误,欢迎指正,谢谢

同时也欢迎大家都来我们的论坛坐坐
http://bbs.freesinno.com/viewforum.php?f=10

本人常用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
---------------------------------------------
以及一些必要的lib程序,不做详细说明

下载地址
电信:
LAMPP (100M):http://www.freesinno.com/downloa ... eenv-1.0.5.i386.bin
Mail系统 (30M):http://www.freesinno.com/download/freesinno-mail-1.0.5.i386.bin
网通:
LAMPP (100M):http://cnc.freesinno.com/downloa ... eenv-1.0.5.i386.bin
Mail系统 (30M):http://cnc.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

[ 本帖最后由 copywu 于 2008-3-11 16:14 编辑 ]
沙发
 楼主| 发表于 2008-3-9 15:04:03 | 只看该作者

如何使用自带的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.www.freesinno.com.conf
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)
藤椅
 楼主| 发表于 2008-3-9 15:53:22 | 只看该作者

贴两张Webmail的图片

贴两张Webmail的图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?会员注册

x
板凳
 楼主| 发表于 2008-3-9 16:16:09 | 只看该作者

发布ssl支持补丁

下载地址
电信
http://www.freesinno.com/download/2008-03-09_15_22_mail_ssl.bin
网通
http://cnc.freesinno.com/download/2008-03-09_15_22_mail_ssl.bin

安装方法
如果您正在运行邮件系统,请先停止系统后再执行安装补丁
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
完成,重启服务即可

如何更新证书;注意生成证书的时候各证书的密码要记住哦,特别是更证书的密码
1.生成根证书
# cd /opt/FreeSInno/Mail/postfix/ssl
# perl CA.pl -newca
2.生成smtpd使用的证书
/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
3.生成pop3d.pem密钥
# 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
4.生成imapd.pem密钥
# 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

生成证书后,重启邮件服务即可

[ 本帖最后由 copywu 于 2008-3-11 16:25 编辑 ]
报纸
发表于 2008-3-10 16:44:49 | 只看该作者
很详细,谢谢楼主,真需要~
地板
发表于 2008-3-13 17:05:45 | 只看该作者
真的很不错,为了一个postfix我花了好几天,目前还没有出现成果!
7
发表于 2008-3-14 09:53:19 | 只看该作者
伎歭嵝艸,將凂曊琎垳菿疧
8
 楼主| 发表于 2008-3-14 10:05:08 | 只看该作者
谢谢各位支持,希望这个包能解决大家的实际问题呀,
楼上的回复乱码了?
9
发表于 2008-3-16 01:38:29 | 只看该作者
觉得有广告之嫌
10
 楼主| 发表于 2008-3-16 17:07:53 | 只看该作者
晕~~开源的免费的就是广告?
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

小黑屋|手机版|Archiver|邮件技术资讯网

GMT+8, 2024-4-28 22:42

Powered by Discuz! X3.2

© 2001-2016 Comsenz Inc.

本论坛为非盈利中立机构,所有言论属发表者个人意见,不代表本论坛立场。内容所涉及版权和法律相关事宜请参考各自所有者的条款。
如认定侵犯了您权利,请联系我们。本论坛原创内容请联系后再行转载并务必保留我站信息。此声明修改不另行通知,保留最终解释权。
*本论坛会员专属QQ群:邮件技术资讯网会员QQ群
*本论坛会员备用QQ群:邮件技术资讯网备用群

快速回复 返回顶部 返回列表