一、安装emos系统。1、下载emos1.5的ISO文件。以光盘影像形式刻录在光盘上。2、安装光盘系统,参考文档:安装方法和CentOS差不多……分区可以在安装时一并把网络配置好,当然也可以在安装后再配置……GW和DNS也不要忘记设置了……要安装附加的软件吗?安装完成,reboot……设置域名设置FQDN名限制邮件大小……选择数据库类型Webman/DSPAMroot密码MySQL/Dspamroot密码选择反垃圾邮件软件是否装入DSPAM预体验数据?开启TLS选择服务器类型安装配置信息,如果需要进行修改,点No;否则Yes进入安装……安装结束,输入地址即可登陆……二、升级yum-yupgrade三、升级emos的组件3、备份extmail,extmanshell#servicehttpdstop#cd/var/、升级extmail1.2和extman1.1。参考地址:、下载最新版本extmail1.2和extman1.1,使用updatecf.pl程序升级extmail/extman,此脚本从旧配置文件中读取参数,再替换新配置文件的参数。如果有新的参数将会保留默认值,以保正程序不会出错。b、配置extman最新版本:(新建文件夹/root/src,先上传升级文件到/root/src下)shell#cd/var/=../extman.bak/webman.cf--def=./webman.cf.default./webman.cfc、配置extmail最新版本:shell#cd/var/=../extmail.bak/webmail.cf--def=./webmail.cf.default./webmail.cfd、更改ExtMail,ExtMan的cgi目录权限shell#chown-Rvuser:vgroup/var/:vgroup/var/、这里要建2个目录,权限和上面一样mkdir/var/:vgroup/var/:vgroup/var/、启动服务并验证shell#servicehttpdstart#servicehttpdstartg、解决登陆extman后提示Connectionrefused(链接拒绝)/var/、EMOS1.5Clamav升级到最新版本sevicepostfixstop/etc/init.d/postfixstop/etc/init.d/clamdstop/etc/init.d/amavisdstopvi/etc/yum.repos.d/dag.repo[dag]name=DagRPMRepositoryforRedHatEnterpriseLinuxbaseurl==1enabled=1#rpm--import(记得一定要加入这个密钥,要不然yum升级不了!)#yumupdateclamavIsthisok[y/N]:y#cp/etc/clamd.conf.rpmnew/etc/clamd.conf提示是否覆盖原来的clamd.cond文件,输入y,覆盖它。接下来需要修改新的clamd.conf三个地方。#vi/etc/clamd.confLocalSocket/var/run/clamav/clamd.sock#TCPSocket3310说明注释掉该行AllowSupplementaryGroupsyes启动postfix,clamd,amavisd/etc/init.d/postfixstart/etc/init.d/clamdstart/etc/init.d/amavisdstart最后更新一下病毒库#freshclam–-verbose6、导入Dspam数据库安装方法:#cd/root/src#gzip-ddspam-trained-data.sql.gz#cd/var/lib/mysql#rm-rfdspam/(备注:如果没有dspam的库,可以不用执行)#mysql-uroot-p-ecreatedatabasedspam#mysql-uroot-p-egrantallondspam.*todspam@localhostidentifiedby'dspam'#mysql-udspam-pdspamdspam/root/src/dspam-trained-data.sql执行:crontab-e修改/usr/bin/mysql-udspam-p'dspam'dspam/usr/share/dspam/sql/mysql/purge.sql修改/etc/dspam/dspam.conf中的ServerPID/var/spool/dspam/dspamd.pid修改/etc/dspam/dspam.conf里面的MySQLUser和MySQLPass配置不正确,修改MySQLUserdspamMySQLPassdspamMySQLDbdspam升级到Dspam-3.9一、配置Dspam-3.91、卸载Dspam-3.8(因为Dspam-3.9的一些目录改变了,所以卸载早期版本后重新安装)#servicedspamdstop#servicedspam-webdstop#rpm-qa|grepdspam|xargsrpm-e--nodeps#rm/usr/share/dspam/2、安装Dspam-3.9以下为软件的存放目录:/root/rpm,安装和配置全部以root身份进行#cd/root/rpm#rpm-ivhdspam-libs-3.9.0-7ext.i386.rpmrpm-ivhdspam-3.9.0-7ext.i386.rpmrpm-ivhdspam-client-3.9.0-7ext.i386.rpmrpm-ivhdspam-mysql-3.9.0-7ext.i386.rpmrpm-ivhdspam-web-3.9.0-7ext.i386.rpm3、配置dspam.conf文件,内容如下:#vi/etc/dspam/dspam.confHome/var/lib/dspamStorageDriver/usr/lib/dspam/libmysql_drv.soTrustedDeliveryAgent/usr/bin/sendmailDeliveryHost127.0.0.1DeliveryPort10024DeliveryIdentlocalhostDeliveryProtoSMTPOnFailerrorTrustrootTrustdspamTrustextmailTrainingModeteftTestConditionalTrainingonFeaturewhitelistAlgorithmgrahamburtonTokenizerchainPValuebcrWebStatsonPreferencetrainingMode=TEFT#{TOE|TUM|TEFT|NOTRAIN}-default:teftPreferencespamAction=quarantine#{quarantine|tag|deliver}-default:quarantinePreferencespamSubject=[SPAM]#{string}-default:[SPAM]PreferencestatisticalSedation=5#{0-10}-default:0PreferenceenableBNR=on#{on|off}-default:offPreferenceenableWhitelist=on#{on|off}-default:onPreferencesignatureLocation=message#{message|headers}-default:messagePreferencetagSpam=off#{on|off}PreferencetagNonspam=off#{on|off}PreferenceshowFactors=off#{on|off}-default:offPreferenceoptIn=off#{on|off}PreferenceoptOut=off#{on|off}PreferencewhitelistThreshold=10#{Integer}-default:10PreferencemakeCorpus=off#{on|off}-default:offPreferencestoreFragments=off#{on|off}-default:offPreferencelocalStore=#{on|off}-default:usernamePreferenceprocessorBias=on#{on|off}-default:onPreferencefallbackDomain=off#{on|off}-default:offPreferencetrainPristine=off#{on|off}-default:offPreferenceoptOutClamAV=off#{on|off}-default:offPreferenceignoreRBLLookups=off#{on|off}-default:offPreferenceRBLInoculate=off#{on|off}-default:offAllowOverrideenableBNRAllowOverrideenableWhitelistAllowOverridefallbackDomainAllowOverrideignoreGroupsAllowOverrideignoreRBLLookupsAllowOverridelocalStoreAllowOverridemakeCorpusAllowOverrideoptInAllowOverrideoptOutAllowOverrideoptOutClamAVAllowOverrideprocessorBiasAl