查看完整版本: Qmail 系统安装手册 for redhat8

zack 2003-4-11 11:10

Qmail 系统安装手册 for redhat8

[color=#0036ff][size=18:769061ebd0]
/**********************************************************************************
Qmail 系统一直以来安装就比较麻烦。没有统一的格式和方法。
最近公司为了省银子、要自己来建设邮件系统。
以下是我的redhat80 install qmail system安装过程。
该系统包含如下功能:
SMTP with SMTP-AUTH, tarpitting, DNS, large concurrency
Virtual Domains (MySQL)
Virtual Users (MySQL)
Autoresponder
Mailing List
Web-based email system
Web-based administration tools
SMTP roaming via SMTP-AUTH, POP3-AUTH, & IMAP-AUTH
POP3
POP3-SSL
IMAP
IMAP-SSL
***********************************************************************************/


安装时,选择服务器安装,选上web服务、域名服务、数据库服务(MSYQL选中)。总共大约1.6G。

安装完成后,安装webmin工具,进行配置管理。
将httpd和MySQL设置为启动服务。

1.hostname configure
        host ipaddress:192.168.255.2        (PIX inside)
        hostname is FQDN :mail.orientway.com.cn
        command show : hostname -f

2.DNS configure

DNS info

Default Server:  mail.orientway.com.cn
Address:  192.168.255.2

> ls -d orientway.com.cn
[mail.orientway.com.cn]
orientway.com.cn.              SOA    mail.orientway.com.cn dnsadmin.orientway.com.cn. (1049785717 10800 3600 604800 38400)
orientway.com.cn.              NS     mail.orientway.com.cn
orientway.com.cn               MX     20   mail.orientway.com.cn
mail                           A      192.168.255.2
orientway.com.cn.              SOA    mail.orientway.com.cn dnsadmin.orientway.com.cn. (1049785717 10800 3600 604800 38400)
>exit

3.download software
wget [url]ftp://mirror.sit.wisc.edu/mirrors/mysql/Downloads/MySQL-4.0/MySQL-client-4.0.12-0.i386.rpm[/url]
wget [url]ftp://mirror.sit.wisc.edu/mirrors/mysql/Downloads/MySQL-4.0/MySQL-devel-4.0.12-0.i386.rpm[/url]
wget [url]ftp://mirror.sit.wisc.edu/mirrors/mysql/Downloads/MySQL-4.0/MySQL-shared-4.0.12-0.i386.rpm[/url]
wget [url]ftp://ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/gd-devel-1.8.4-9.i386.rpm[/url]
wget [url]ftp://ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/freetype-devel-2.1.2-7.i386.rpm[/url]
wget [url]ftp://ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/libjpeg-devel-6b-21.i386.rpm[/url]
wget [url]ftp://ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/libpng-devel-1.2.2-6.i386.rpm[/url]
wget [url]ftp://ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/mrtg-2.9.17-8.i386.rpm[/url]
wget [url]ftp://rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/httpd-devel-2.0.40-8.i386.rpm[/url]
wget [url]ftp://rpmfind.net/linux/redhat/updates/8.0/en/os/i386/php-devel-4.2.2-8.0.7.i386.rpm[/url]
wget [url]ftp://rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/httpd-devel-2.0.40-8.i386.rpm[/url]
wget [url]ftp://rpmfind.net/linux/redhat/updates/8.0/en/os/i386/php-devel-4.2.2-8.0.7.i386.rpm[/url]
wget [url]ftp://rpmfind.net/linux/redhat/updates/8.0/en/os/i386/php-mysql-4.2.2-8.0.5.i386.rpm[/url]
___________________ qmail toaster software __________________________________
wget [url]http://qmailtoaster.clikka.com/download/stable/vqadmin-toaster-2.3.4-1.0.5.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/vpopmail-toaster-5.3.8-1.0.6.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/ucspi-tcp-toaster-0.88-1.0.5.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/qmailmrtg-toaster-3.4-1.0.5.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/qmailadmin-toaster-1.0.6-1.0.5.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/qmail-toaster-1.03-1.0.7.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/maildrop-toaster-1.5.2-1.0.1.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/horde-toaster-2.1-1.0.4.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/ezmlm-toaster-0.53.324-1.0.5.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/daemontools-toaster-0.76-1.0.3.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/courier-imap-toaster-1.7.0-1.0.3.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/control-panel-toaster-0.5-1.0.1.src.rpm[/url]
wget [url]http://qmailtoaster.clikka.com/download/stable/autorespond-toaster-2.0.2-1.0.4.src.rpm[/url]

4.uninstall sendmail/postfix software
rpm -ev --nodeps sendmail
rpm -ev fetchmail
rpm -ev mutt
rpm -ev postfix

5.install qmail support software
rpm -ivh MySQL-client-4.0.12-0.i386.rpm
rpm -ivh MySQL-devel-4.0.12-0.i386.rpm
rpm -ivh MySQL-shared-4.0.12-0.i386.rpm
rpm -ivh gd-devel-1.8.4-9.i386.rpm
rpm -ivh freetype-devel-2.1.2-7.i386.rpm
rpm -ivh libjpeg-devel-6b-21.i386.rpm
rpm -ivh libpng-devel-1.2.2-6.i386.rpm
rpm -ivh mrtg-2.9.17-8.i386.rpm
rpm -ivh httpd-devel-2.0.40-8.i386.rpm
rpm -ivh php-devel-4.2.2-8.0.7.i386.rpm
rpm -ivh httpd-devel-2.0.40-8.i386.rpm
rpm -ivh php-devel-4.2.2-8.0.7.i386.rpm
rpm -ivh php-mysql-4.2.2-8.0.5.i386.rpm

6.compile src.rpm file
rpmbuild --rebuild --with rht80
rpmbuild --rebuild --with rht80 vqadmin-toaster-2.3.4-1.0.5.src.rpm
rpmbuild --rebuild --with rht80 vpopmail-toaster-5.3.8-1.0.6.src.rpm
rpmbuild --rebuild --with rht80 ucspi-tcp-toaster-0.88-1.0.5.src.rpm
rpmbuild --rebuild --with rht80 qmailmrtg-toaster-3.4-1.0.5.src.rpm
rpmbuild --rebuild --with rht80 qmailadmin-toaster-1.0.6-1.0.5.src.rpm
rpmbuild --rebuild --with rht80 qmail-toaster-1.03-1.0.7.src.rpm
rpmbuild --rebuild --with rht80 maildrop-toaster-1.5.2-1.0.1.src.rpm
rpmbuild --rebuild --with rht80 horde-toaster-2.1-1.0.4.src.rpm
rpmbuild --rebuild --with rht80 ezmlm-toaster-0.53.324-1.0.5.src.rpm
rpmbuild --rebuild --with rht80 daemontools-toaster-0.76-1.0.3.src.rpm
rpmbuild --rebuild --with rht80 courier-imap-toaster-1.7.0-1.0.3.src.rpm
rpmbuild --rebuild --with rht80 control-panel-toaster-0.5-1.0.1.src.rpm
rpmbuild --rebuild --with rht80 autorespond-toaster-2.0.2-1.0.4.src.rpm

7.config MySQL for vpopmail
mysql -u root -p
CREATE DATABASE vpopmail;
GRANT ALL PRIVILEGES ON vpopmail.* TO vpopmail@localhost IDENTIFIED BY 'vpoppasswd';
quit
mysqladmin -u root -p reload
mysqladmin -u root -p refresh

vi /var/qmail/control/sql
/**********************
server localhost
port 3306
database vpopmail
table relay
user vpopmail
pass vpopmailpasswd
time 1800
***********************/

8.install qmail system
rpm -ivh /usr/src/redhat/RPMS/i386/daemontools-toaster-0.76-1.0.3.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/daemontools-toaster-doc-0.76-1.0.3.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/ucspi-tcp-toaster-0.88-1.0.6.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/ucspi-tcp-toaster-doc-0.88-1.0.6.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/qmail-toaster-1.03-1.0.7.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/qmail-toaster-doc-1.03-1.0.7.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/vpopmail-toaster-5.3.8-1.0.6.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/vpopmail-toaster-doc-5.3.8-1.0.6.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/qmail-pop3d-toaster-1.03-1.0.7.i386.rpm
ln -s /etc/rc.d/init.d/qmail /usr/bin/qmailctl
rpm -ivh /usr/src/redhat/RPMS/i386/courier-imap-toaster-1.7.0-1.0.2.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/courier-imap-toaster-doc-1.7.0-1.0.2.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/autorespond-toaster-2.0.2-1.0.3.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/maildrop-toaster-1.4.0-1.0.3.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/maildrop-toaster-devel-1.4.0-1.0.3.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/noarch/control-panel-toaster-0.5-1.0.1.noarch.rpm
rpm -ivh /usr/src/redhat/RPMS/noarch/send-emails-toaster-0.5-1.0.1.noarch.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/ezmlm-toaster-0.53.324-1.0.5.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/ezmlm-toaster-doc-0.53.324-1.0.5.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/ezmlm-cgi-toaster-0.53.324-1.0.5.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/qmailadmin-toaster-1.0.6-1.0.5.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/qmailmrtg-toaster-3.4-1.0.5.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/vqadmin-toaster-2.3.4-1.0.5.i386.rpm
rpm -ivh /usr/src/redhat/RPMS/noarch/horde-toaster-2.1-1.0.4.noarch.rpm

9.reconfigure  httpd.conf & php.ini
        Setup /etc/httpd/conf/httpd.conf
          |--------------------------------------------
          | Set The following:
          |-- ServerName webmail.yourdomain.com
          |-- DirectoryIndex index.html index.php index.html.var
          |--------------------------------------------

        Setup /etc/php.ini
           |--------------------------------------------
         | Set The following:
         |-- short_open_tag = On
         |-- register_globals = On
         |--------------------------------------------

10. restart apache , start qmail

11. 管理入口
qmail admin :[url]http://yourmailaddress/admin-toaster/[/url]

/*****************************************************************
以上注意安装顺序和版本号,以最新的为准。
参考网址:
[url]http://qmailtoaster.clikka.com[/url]
[url]http://www.patrickservices.com/software/guides/qmail_toaster_rpms.php[/url]
时间仓促还没有进一步进行测试。随后会跟帖写一些使用方面的文章。
*******************************************************************/
[/color][/size:769061ebd0]
页: [1]
查看完整版本: Qmail 系统安装手册 for redhat8