Linux下ExtMail 1.2安装手记

Linux下ExtMail 1.2安装手记

本文记录了ExtMail使用Emos光盘在RedHat Linux AS 4 和中标华普Linux上面的安装过程。

1. 获取Emos光盘
你可以登录ExtMail论坛寻找Emos的光盘映像iso来下载,也可以从服务提供商那里获得付费的服务以及介质。本文以Emos 1.2 为例。

2. 登陆Linux,装载光盘或者光盘映像
或者你也可以把释放出来的文件上传到Linux系统的某一个目录。如目录名称为/media/cdrom

3. 把需要的文件复制到临时安装目录/tmp/emos/
cp /media/cdrom/CentOS/RPMS/amavisd-new-2.4.0-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/apr-0.9.4-24.5.c4.2.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/apr-devel-0.9.4-24.5.c4.2.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/apr-util-0.9.4-21.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/apr-util-devel-0.9.4-21.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/arc-5.21o-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/clamav-0.88.3-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/clamav-db-0.88.3-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/clamd-0.88.3-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/courier-authlib-0.57-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/courier-authlib-devel-0.57-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/courier-authlib-ldap-0.57-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/courier-authlib-mysql-0.57-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/courier-imap-4.1.0-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/cyrus-sasl-2.1.19-5.EL4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/cyrus-sasl-devel-2.1.19-5.EL4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/cyrus-sasl-md5-2.1.19-5.EL4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/cyrus-sasl-plain-2.1.19-5.EL4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/extsuite-slockd-0.2.0-1hzq.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/extsuite-webmail-1.0.2-1hzq.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/extsuite-webman-0.2.2-1hzq.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/httpd-2.0.52-28.ent.centos4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/httpd-devel-2.0.52-28.ent.centos4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/httpd-suexec-2.0.52-28.ent.centos4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/maildrop-2.0.1-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/maildrop-man-2.0.1-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/mx-2.0.5-3.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/mysql-4.1.20-1.RHEL4.1.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/mysqlclient10-3.23.58-4.RHEL4.1.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/mysql-devel-4.1.20-1.RHEL4.1.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/MySQL-python-1.0.0-1.RHEL4.1.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/mysql-server-4.1.20-1.RHEL4.1.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-5.8.5-36.RHEL4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Archive-Tar-1.26-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Archive-Zip-1.16-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-BerkeleyDB-0.26-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Compress-Zlib-1.41-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Convert-ASN1-0.18-3.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Convert-BinHex-1.119-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Convert-TNEF-0.17-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Convert-UUlib-1.051-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-DBD-MySQL-2.9004-3.1.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-DBI-1.40-8.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Digest-HMAC-1.01-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Digest-SHA1-2.07-5.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-FCGI-0.67-2hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-File-Tail-0.99.3-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Filter-1.30-6.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-GD-2.35-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-HTML-Parser-3.35-6.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-HTML-Tagset-3.03-30.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-IO-Multiplex-1.08-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-IO-Socket-SSL-0.97-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-IO-stringy-2.110-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-IO-Zlib-1.04-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-LDAP-0.31-5.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-libwww-perl-5.79-5.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-MailTools-1.67-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-MIME-Base64-3.05-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-MIME-tools-5.418-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Net-DNS-0.59-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Net-IP-1.24-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Net-Server-0.93-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Net_SSLeay.pm-1.30-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-rrdtool-1.2.12-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-TimeDate-1.16-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Time-HiRes-1.72-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-Unix-Syslog-0.100-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-URI-1.30-4.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-XML-NamespaceSupport-1.08-6.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/perl-XML-SAX-0.12-7.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/php-4.3.9-3.15.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/php-ldap-4.3.9-3.15.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/phpldapadmin-0.9.8.3-1hzq.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/phpmyadmin-2.9.0.3-1hzq.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/php-mysql-4.3.9-3.15.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/php-pear-4.3.9-3.15.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/postfix-2.3.6-2hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/postinstall-1.1-EMOS20070306.noarch.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/rrdtool-1.2.12-1hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/spamassassin-3.0.6-1.el4.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/unarj-2.65-49hzq.i386.rpm /tmp/emos/
cp /media/cdrom/CentOS/RPMS/zoo-2.10-9hzq.i386.rpm /tmp/emos/

4. 在/tmp/emos/执行安装命令。找出冲突的包
cd  /tmp/emos/
rpm -ivh *

把c冲突的包找出来使用rpm -e --nodeps命令删除,到了提示MIME::Base64::Q** 后就不管,直接装

实际安装时:
cd /tmp/emos/
rpm -ivh * --nodeps

建立一个sh文件,内容如下,并且执行它
install.sh
#!/bin/sh
/var/tmp/postinstall/install
/etc/init.d/network restart

5. 按照提示输入域名,主机名
默认域名如你的邮件服务器DNS MX记录,主机名如你的邮件服务器DNS A记录,请检查你的真实的DNS设置,并且令MX记录生效后方能测试并使用。

6. 修改服务运行级别
chkconfig postfix on
chkconfig httpd on
chkconfig mysqld on

7. 重启服务,或者重启服务器

8. 打开浏览器输入
http://host/ 即可进入ExtMail的页面。
要那么多的ISO文件啊,有这么复杂吗...