1.解决网络慢导致yum方式安装问题:
[root@spammail ~]# yum install -y ntp
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 709 kB    01:48
http://apt.sw.be/redhat/el4/en/i386/dag/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from dag: [Errno 256] No more mirrors to try.

[root@spammail ~]# find / -name primary.xml.gz
/var/cache/yum/dag/primary.xml.gz
[root@spammail ~]# cd /var/cache/yum/dag
[root@spammail dag]# rm primary.xml.gz
然后手工下primary.xml.gz到/var/cahe/yum/dag下后,再安装,多试几次就OK!
 
2.全RPM包安装mg顺序:
a.安装时钟同步:(为了加AD时,与AD同步时钟,因为加域时差不得超过五分钟)
ntp-4.2.0.a.20040617-6.el4.i386.rpm
 
b.安装postfix
postfix-2.2.10-1.1.el4.i386.rpm
 
c.安装dovecot
依赖组件:
perl-Net-Daemon-0.43-1.el4.rf.noarch.rpm
perl-PlRPC-0.2020-1.el4.rf.noarch.rpm
perl-DBI-1.602-1.el4.rf.i386.rpm
mysql-4.1.20-3.RHEL4.1.el4_6.1.i386.rpm
postgresql-libs-7.4.19-1.el4_6.1.i386.rpm
再装:
dovecot-0.99.11-8.EL4.i386.rpm
 
d.安装clamav模块(根据需要是否加装)
 
e.安装sa模块
[root@spammail tmp]# ls perl-*
perl-Archive-Tar-1.38-1.el4.rf.noarch.rpm
perl-Digest-HMAC-1.01-13.noarch.rpm
perl-Digest-SHA1-2.07-5.i386.rpm
perl-HTML-Parser-3.56-1.el4.rf.i386.rpm
perl-IO-Socket-SSL-1.13-1.el4.rf.noarch.rpm
perl-IO-Zlib-1.09-1.el4.rf.noarch.rpm
perl-Net-DNS-0.63-1.el4.rf.i386.rpm
perl-Net-SSLeay-1.32-1.el4.rf.i386.rpm
perl-Time-HiRes-1.9712-1.el4.rf.i386.rpm
顺序如下:
Installing: perl-Digest-SHA1             
  Updating  : perl-HTML-Parser             
  Installing: perl-Digest-HMAC             
  Installing: perl-IO-Zlib                 
  Installing: perl-Archive-Tar             
  Installing: perl-Time-HiRes              
  Installing: perl-Net-IP                  
  Installing: perl-Net-DNS                 
  Installing: perl-Net-SSLeay              
  Installing: perl-IO-Socket-SSL           
  Installing: spamassassin                

e.安装mailscanner手工下TAR包装
 
f.安装samba顺序
samba-common-3.0.25b-1.el4_6.4.i386.rpm
samba-3.0.25b-1.el4_6.4.i386.rpm
 
g.安装krb5-server顺序如下
krb5-libs-1.3.4-54.i386.rpm  
krb5-devel-1.3.4-54.i386.rpm  
krb5-workstation-1.3.4-54.i386.rpm
krb5-server-1.3.4-54.i386.rpm
 
[root@spammail test]# rpm -Uvh krb5-devel-1.3.4-54.i386.rpm krb5-workstation-1.3.4-54.i386.rpm krb5-libs-1.3.4-54.i386.rpm
warning: krb5-devel-1.3.4-54.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:krb5-libs              ########################################### [ 33%]
   2:krb5-devel             ########################################### [ 67%]
   3:krb5-workstation       ########################################### [100%]
[root@spammail test]# rpm -ivh krb5-server-1.3.4-54.i386.rpm
warning: krb5-server-1.3.4-54.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:krb5-server            ########################################### [100%]
 
3.手工安装的包,如果想通过ntsysv来管理,启动时是否加载,方法:
chkconfig --add postfix
比如手工安装的postfix,执行上述命令后,就可以通过ntsysv看到了!