基于linux和postfix的邮件系统的web mail安装手册.docx
使用LINUXPOSTFIXCYRUSSASLCOURIERIMAPTMAIL30SPAMASSASSINCLAMAVMAILSCANNER,来架构一个具有多域名,有邮件列表、WEBMAIL、防病毒、防垃圾邮件、WEB管理界面的邮件系统。系统主要采用MAILSCANNERCLAMAVSPAMASSASSIN来对病毒过滤和垃圾邮件过滤。在CENTOS、REDHATAS上安装测试通过,病毒过滤放弃采用AMAVISD。主要采用执行效率更高的MAILSANNER来对邮件过滤和垃圾邮件过滤,配置更容易,并且降低了系统开消。让系统更加稳定,经过严格病毒邮件测试成功率达到了100。垃圾邮件过滤基本上达到了95的成功率。正文0、演示地址HTTP//MAILTOPINGNET用户名DEMOTOPINGNET密码DEMO1、安装系统安装之前因用户数据都保存在/VAR目录下,因此安装系统时/VAR的空间应尽量大。系统的版本为最小化安装,软件包只安装只装开发包DEVELOPMENT。在文档中假设服务器的IP地址为19216802,域名为TESTCOM,主机名为MAILTESTCOM。所需的软件包我都打包好了。下载地址HTTP//WWWTOPINGNET/SOFT/SRCTARGZ仔细一些,注意空格和TAB。2关闭SELINUXROOTMAILVI/ETC/SELINUX/CONFIGSELINUXDISABLEROOTMAILREBOOT3、设置YUMROOTMAILYUMREPOSDVICENTOSBASEREPOBASENAMECENTOS42BASEBASEURLHTTP//MIRRORBE10COM/CENTOS/42/OS/BASEARCH/GPGCHECK1GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4RELEASEDUPDATESUPDATENAMECENTOS42UPDATESBASEURLHTTP//MIRRORBE10COM/CENTOS/42/UPDATES/BASEARCH/GPGCHECK1GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4PACKAGESUSED/PRODUCEDINTHEBUILDBUTNOTRELEASEDADDONSNAMECENTOS42ADDONSBASEURLHTTP//MIRRORBE10COM/CENTOS/42/ADDONS/BASEARCH/GPGCHECK1GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4ADDITIONALPACKAGESTHATMAYBEUSEFULEXTRASNAMECENTOS42EXTRASBASEURLHTTP//MIRRORBE10COM/CENTOS/42/EXTRAS/BASEARCH/GPGCHECK1GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4ADDITIONALPACKAGESTHATEXTENDFUNCTIONALITYOFEXISTINGPACKAGESCENTOSPLUSNAMECENTOS42PLUSBASEURLHTTP//MIRRORBE10COM/CENTOS/42/CENTOSPLUS/BASEARCH/GPGCHECK1ENABLED0GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4CONTRIBPACKAGESBYCENTOSUSERSCONTRIBNAMECENTOS42CONTRIBBASEURLHTTP//MIRRORBE10COM/CENTOS/42/CONTRIB/BASEARCH/GPGCHECK1ENABLED0GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4PACKAGESINTESTINGTESTINGNAMECENTOS42TESTINGBASEURLHTTP//MIRRORBE10COM/CENTOS/42/TESTING/BASEARCH/GPGCHECK1ENABLED0GPGKEYHTTP//MIRRORBE10COM/CENTOS/RPMGPGKEYCENTOS4ROOTMAILYUMREPOSDVIDAGREPODAGNAMEDAGRPMREPOSITORYFORREDHATENTERPRISELINUXBASEURLHTTP//APTSWBE/REDHAT/ELRELEASEVER/EN/BASEARCH/DAGGPGCHECK1ENABLED1ROOTMAILYUMREPOSDYUMUPDATE4、安装MYSQLROOTMAILBUILDYUMINSTALLMYSQLSERVERROOTMAILBUILDYUMINSTALLMYSQLDEVEL5、安装APACHEROOTMAILBUILDYUMINSTALLHTTPD6安装PHPROOTMAILBUILDYUMINSTALLPHPROOTMAILBUILDYUMINSTALLPHPMYSQLROOTMAILBUILDYUMINSTALLPHPGDROOTMAILBUILDYUMINSTALLPHPIMAPROOTMAILBUILDYUMINSTALLVSFTPDROOTMAILBUILDYUMINSTALLCLAMAVROOTMAILBUILDYUMINSTALLSPAMASSASSINROOTMAILBUILD/USR/BIN/FRESHCLAM设置APACHE默认USERAPACHE改为USERPOSTFIX默认GROUPAPACHE改为GROUPPOSTFIX默认ADDDEFAULTCHARSETUTF8改为ADDDEFAULTCHARSETGB2312新加入ADDTYPEAPPLICATION/XHTTPDPHPPHPADDTYPEAPPLICATION/XHTTPDPHPSOURCEPHPS7、安装PHPMYADMINROOTMAILBUILDTAR–ZXF/SRC/PHPMYADMIN2801TARGZROOTMAILBUILDMVPHPMYADMIN2801/VAR/WWW/HTML/DBADMIN/ROOTMAILBUILDCP/VAR/WWW/HTML/DBADMIN/LIBRARIES/CONFIGDEFAULTPHP/VAR/WWW/HTML/DBADMIN/DBADMIN/LIBRARIES/CONFIGINCPHPLINE18、设置数据库ROOTMAILBUILDMYSQLMYSQLCREATEDATASESPOSTFIXMYSQLUSEMYSQLMYSQLINSERTINTOUSERHOST,USER,PASSWORDVALUESLOCALHOST,POSTFIX,MYSQLUPDATEUSERSETPASSWORDPASSWORDPOSTFIXWHEREUSERPOSTFIXMYSQLGRANTALLONPOSTFIXTOPOSTFIXLOCALHOST