您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > emos16详细安装部署文档
本文档基于全新的centos6.4(软件版本请参考此文档)首先要注意的事项如下:1.DNS已经做好(我做实验时DNS已经注册过了,MX记录已做好)2.在yum的过程中,可能会提示perlmysql的版本对应不上,因此请卸载这2个包perlperl-devel3.我假设这服务器的主机名为mail.xxoo.com,域名就是xxoo.com请注意自行替换自己的域名和主机名,要不然你安装成功后,只能发,不能收的。安装部署中遇到的问题请见最下面准备的工作:1.mx记录先做好,如果没有做好,那就只能发不能收2.centos6.4的iso(这里用做本地源,可以使用网络源)3.EMOS6的iso下载地址:服务器的时钟统一(否则会导致进入页面的时候一直会有验证码错误)操作步骤1.安装httpd先把其它的yum配置文件都保存备份foriin`ls/etc/yum.repos.d/*`;domv$i$i.bak;done把centos6.4的镜像文件拷贝至服务器上(或者使用网络源,这里为了方便,就直接使用了本地源)操作步骤如下:mount-oloop-tiso9660emos/centos6.4.iso/mnt编辑本地yumvim/etc/yum.repos.d/localyum.repo编辑如下文本内容[local]name=localbaseurl=file:///mntgpgcheck=0保存:xyumcleanallyummakecacheyumlistyum-yinstallhttpdservicehttpdstart到这一步centos6.4镜像已经没有利用价值了取消挂载umount/mnt下载EMOS1.6镜像文件到服务器上mkdiremoscdemoswget创建vuser用户vgoup组注定uid为1000gid为1000(切勿自行更改成别的名称或ID,后面yum时会检测是否有这2个用户)groupadd-g1000vgroupuseradd-u1000-g1000-Mvuser挂载emos1.6的镜像mount-oloop-tiso9660emos/EMOS_1.6_x86_64.iso/mntyumcleanallyummakecacheyumlistyum-yinstallpostfixmysql-server2.配置postfix开始配置postfixpostconf-n/etc/postfix/main2.cfmv/etc/postfix/main.cf/etc/postfix/main.cf.oldmv/etc/postfix/main2.cf/etc/postfix/main.cfvim/etc/postfix/main.cf增加以下内容----------------以下就是需要添加的内容---------------------------------------------#hostnamemynetworks=127.0.0.1,192.168.1.0/24myhostname=mail.xxoo.com####注意替换成自己的主机名mydestination=$mynetworks$myhostname#bannermail_name=Postfix-bytest01smtpd_banner=$myhostnameESMTP$mail_name#responseimmediatelysmtpd_error_sleep_time=0s#Messageandreturncodecontrolmessage_size_limit=5242880mailbox_size_limit=5242880show_user_unknown_table_name=no#Queuelifetimecontrolbounce_queue_lifetime=1dmaximal_queue_lifetime=1dmaildrop_destination_recipient_limit=1####开启支持一次接收多个收件人#extmailconfigherevirtual_alias_maps=mysql:/etc/postfix/mysql_virtual_alias_maps.cfvirtual_mailbox_domains=mysql:/etc/postfix/mysql_virtual_domains_maps.cfvirtual_mailbox_maps=mysql:/etc/postfix/mysql_virtual_mailbox_maps.cfvirtual_transport=maildrop:smptd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destination,reject_unauth_pipelining,reject_invalid_hostname,#smtpd_sender_restrictions=permit_mynetworks,reject_sender_login_mismatch,reject_authenticated_sender_login_mismatch,reject_unauthenticated_sender_login_mismatchsmtpd_sender_login_maps=mysql:/etc/postfix/mysql_virtual_sender_maps.cfmysql:/etc/postfix/mysql_virtual_alias_maps.cfbroken_sasl_auth_clients=yessmtpd_sasl_auth_enable=yessmtpd_sasl_local_domain=$myhostnamesmtpd_sasl_security_options=noanonymous---------------------------------添加至此处结束----------------------------------------------:x保存chkconfigpostfixon3.配置courier(POP3服务)yum-yinstallcourier-authlibcourier-authlib-mysqlecho/etc/authlib/authmysqlrcvim/etc/authlib/authmysqlrc-------------------添加以下内容-------------------------------MYSQL_SERVERlocalhostMYSQL_USERNAMEextmailMYSQL_PASSWORDextmailMYSQL_SOCKET/var/lib/mysql/mysql.sockMYSQL_PORT3306MYSQL_POT0MYSQL_DATABASEextmailMYSQL_USER_TABLEmailboxMYSQL_CRYPT_PWFIELDpasswordMYSQL_UID_FIELDuidnumberMYSQL_GID_FIELDgidnumberMYSQL_LOGIN_FIELDusernameMYSQL_HOME_FIELDhomedirMYSQL_NAME_FIELDnameMYSQL_MAILDIR_FIELDmaildirMYSQL_QUOTA_FIELDquotaMYSQL_SELECT_CLAUSESELECTusername,password,,uidnumber,gidnumber,CONCAT('/home/domains/',homedir),CONCAT('/home/domains/',maildir),quota,nameFROMmailboxWHEREusername='$(local_part)@$(domain)'--------------------------添加此处结束------------------------------vim/etc/authlib/authdaemonrc修改下列项的值27行authmodulelist=authmysql34行authmodulelistorig=authmysqlservicecourier-authlibstartchkconfigcourier-authlibonchmod755/var/spool/authdaemon/yum-yinstallmaildropvim/etc/postfix/master.cf注释掉原来的maildrop的配置内容修改成如下的内容(有时复制粘贴无效,最好手动输下)maildropunix-nn--pipeflags=DRhuuser=vuserargv=maildrop-w90-d${user}@${nexthop}${recipient}${user}${extension}{nexthop}注:flags前面有2个空格maildrop-v4.配置httpdvim/etc/httpd/conf/httpd.conf在最后添加:NameVirtualHost*:80Includeconf/extmailweb.conf:X保存vim/etc/httpd/conf/extmailweb.conf-------------------添加如下内容----------------------VirtualHost*:80ServerNamemail.xxoo.com##这里填写自己的主机名ServerAlias192.168.100.10##这里填写自己的IPDocumentRoot/var/添加完毕--------------------------:x保存chkconfighttpdon5.安装extmailweb界面yuminstallextsuite-webmailcd/var/更改文件配置内容,如若没有,请添加--------------139行SYS_MYSQL_USER=extmailSYS_MYSQL_PASS=extmailSYS_MYSQL_DB=extmail------------------------完毕----------------------------:x保存chown-Rvuser:vgroup/var/:vgroup/var/
本文标题:emos16详细安装部署文档
链接地址:https://www.777doc.com/doc-2911385 .html