postfix邮件系统完整版
edhat9+postfix+cyrus-sasl+mysql+postfixadmin+courier-imap+courier-maildrop+squirrelmail(courier-sqwebmail openwebmail)+clamav+spamassassin+amavisd-new
2005年5月5日加入Cyrus SASL with MySQL Encrypted Passwords 2005年5月3日更新防病毒及防垃圾 2005年4月12日加入mysql日志管理 2005年4月10日至13日加入openwebmail 2005年4月8日加入apache自启动脚本 2004年10左右成稿 1.mysql 2.apache 3.php 4.cyrus-sasl 5.postfix 6.postfixadmin 7.courier-authlib 8.courier-imap 9.courier-maildrop 10.webmail 10.1.sqwebmai 10.2.squirrelmail 10.3.openwebmail 11.clamav 12.spamassassin 13.amavisd-new 14.后记加一点说明 15.附:启动脚本 本文用到的软件 MySQL 4.1.11 网站:http://www.mysql.com 下载 APACHE 2.0.54 网站:http://www.apache.org 下载 PHP 4.3.11 网站:http://www.php.net 下载 Cyrus-SASL 2.1.20 网站:http://asg.web.cmu.edu/sasl 下载 Postfix 2.2.3 网站:http://www.postfix.org 下载 PostfixAdmin 2.1.0 网站:http://www.postfixadmin.com 下载 Courier-authlib 0.55 网站:http://www.courier-mta.org/authlib 下载 Courier-IMAP 4.0.2 网站:http://www.courier-mta.org/imap 下载 Courier-maildrop 1.8.0 网站:http://www.courier-mta.org/maildrop 下载 Courier-sqwebmail 5.0.1 网站:http://www.courier-mta.org/sqwebmail 下载 SquirrelMail 1.4.4 网站:http://www.squirrelmail.org 下载 Openwebmail 2.51 网站:http://openwebmail.org 下载 clamav 0.84 网站:http://www.clamav.net 下载 Spamassassin 3.0.3 网站:http://spamassassin.apache.org 下载 amavisd-new 2.3.0 网站:http://www.ijs.si/software/amavisd 下载 1.安装mysql 4.1.11 # groupadd mysql # useradd -g mysql mysql # wget http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.11.tar.gz/from/http://mysql.new21.com/ # tar -zxvf mysql-4.1.11.tar.gz # cd mysql-4.1.11 # ./configure --prefix=/usr/local/mysql --with-charset=gbk # make # make install # cp support-files/my-medium.cnf /etc/my.cnf 设置自启动 # cp support-files/mysql.server /etc/rc.d/init.d/mysqld # chmod 700 /etc/rc.d/init.d/mysqld # chkconfig --add mysqld 安装完以后要初始化数据库,要是升级安装的请跳过 # cd /usr/local/mysql # /usr/local/mysql/bin/mysql_install_db --user=mysql # chown -R root . # chown -R mysql var # chgrp -R mysql . # /usr/local/mysql/bin/mysqld_safe --user=mysql %26amp; 好了,至此mysql安装完毕,你可以这样起动你的mysql服务 # /etc/rc.d/init.d/mysqld start # ln -s /usr/local/mysql/bin/mysql /sbin/mysql # ln -s /usr/local/mysql/bin/mysqladmin /sbin/mysqladmin 为了能让系统找到mysql,请运行如下命令 # PATH=$PATH:/usr/local/mysql/bin # export PATH # echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf # ldconfig 日志管理 开启错误日志 (在[safe_mysqld]项下添加) # vi /etc/my.cnf [safe_mysqld] err-log=/var/log/mysqld/err.log 开启常规日志和更新日志 (在[mysqld]项下添加) # vi /etc/my.cnf [mysqld] log=/var/log/mysqld/log.log log-update=/var/log/mysqld/update.log 创建日志文件并设置权限 # mkdir /var/log/mysqld # touch /var/log/mysqld/err.log /var/log/mysqld/log.log /var/log/mysqld/update.log # chown -R mysql.mysql /var/log/mysqld # service mysqld restart 说明: 错误日志包含了服务器写入标准错误输出设备的所有消息,同时还包括了mysql服务的启动和关闭事件 常规日志用来记录有关mysql服务器运行的常规信息,包括用户的连接、查询及其他各种时间 更新日志用来记录修改数据库的查询信息,包括所有涉及数据库修改的SQl语句的查询记录 建议调试结束后关闭日志 Go to top. 2.安装apache 2.0.54 # wget http://apache.freelamp.com/httpd/httpd-2.0.54.tar.bz2 # tar jxvf httpd-2.0.54.tar.bz2 # cd httpd-2.0.54 # ./configure --prefix=/usr/local/apache # make # make install 设置自启动 # cp support/apachectl /etc/init.d/httpd 修改/etc/init.d/httpd # vi /etc/init.d/httpd(在第两行之后添加如下内容) #!/bin/sh # # Startup script for the Apache Web Server # chkconfig: - 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /usr/local/apache/log/httpd.pid # config: /usr/local/apache/conf/httpd.conf # chkconfig --add httpd # chmod 755 /etc/init.d/httpd # chkconfig httpd on 创建网页根目录 # mkdir /var/www # vi /usr/local/apache/conf/httpd.conf //存放网页的目录,原来为DocumentRoot "",改成: DocumentRoot "/var/www" //这句应该和DocumentRoot 的目录保持一致,原来为 //Indexes:当在目录中找不到DirectoryIndex列表中指定的文件就生成当前目录的文件列表 //FollowSymlinks:允许符号链接跟随,访问不在本目录下的文件 Options Indexes FollowSymLinks 上一篇:Sendmail 特点和不足 下一篇:Qmail+LDAP安装配置实例 更多相关文章
|
推荐文章
精彩文章
|