标签:
下载安装包 extman-1.1.tar.gz //主要运用于服务端 extmail-1.2.tar.gz //主要运用于客户端 [root@vm4 ~]# tar zxf extman-1.1.tar.gz [root@vm4 ~]# cd extman-1.1/docs [root@vm4 docs]# vim init.sql 18INSERT INTO `mailbox` VALUES (‘postmaster@extmail.org‘,‘postmaster‘,‘westos‘ ..//把密码改成自己设置的明文密码 25INSERT INTO `manager` VALUE(‘root@extmail.org‘,‘westos‘,‘admin‘,‘ro .. [root@vm4 docs]# mysql -pwestos < extmail.sql [root@vm4 docs]# mysql -pwestos < init.sql 接下来与postfix连接配置 [root@vm4 docs]# cp mysql_virtual_alias_maps.cf /etc/postfix/mysql_alias.cf [root@vm4 docs]# cp mysql_virtual_domains_maps.cf /etc/postfix/mysql_domains.cf [root@vm4 docs]# cp mysql_virtual_mailbox_maps.cf /etc/postfix/mysql_mailbox.cf [root@vm4 docs]# postfix reload [root@vm4 ~]# cat /etc/sasl2/smtpd.conf pwcheck_method: auxprop auxprop_plugin: sql mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM sql_engine: mysql sql_hostnames: 127.0.0.1 sql_user: extmail sql_passwd: extmail sql_database: postfix sql_select: SELECT password FROM mailbox WHERE username = ‘%u@%r‘ root@vm4 ~]#yum install -y httpd [root@vm4 extman-1.1]# mkdir /var/www/extsuite [root@vm4 ~]# mv extman-1.1 /var/www/extsuite/ [root@vm4 ~]# tar zxf extmail-1.2.tar.gz -C /var/www/extsuite/ [root@vm4 ~]# cd /var/www/extsuite/ [root@vm4 extsuite]# mv extmail-1.2/ extmail [root@vm4 extsuite]# ll total 8 drwxr-xr-x 7 500 500 4096 Dec 25 2009 extmail drwxr-xr-x 11 500 500 4096 Apr 12 17:01 extman [root@vm4 extsuite]# vim /etc/httpd/conf/httpd.conf //行末添加虚拟主机 NameVirtualHost *:80 //打开虚拟主机选项 <VirtualHost *:80> ServerName mail.extmail.org DocumentRoot /var/www/extsuite/extmail/html ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgi Alias /extmail /var/www/extsuite/extmail/html SuexecUserGroup email email </VirtualHost> [root@vm4 extsuite]# /etc/init.d/httpd restart [root@vm4 extsuite]# chown -R email.email /var/www/extsuite/extmail/cgi/ [root@vm4 extsuite]# yum install perl-CGI -y [root@vm4 extsuite]# cd extmail/ [root@vm4 extmail]# cp webmail.cf.default webmail.cf [root@vm4 extmail]# vim webmail.cf 44 SYS_LOG_ON = 0 127 SYS_MAILDIR_BASE = /home/email 136 SYS_CRYPT_TYPE = plain 139 SYS_MYSQL_USER = extmail 140 SYS_MYSQL_PASS = extmail 141 SYS_MYSQL_DB = extmail [root@vm4 extmail]#postconf -e smtpd_tls_security_level=may [root@vm4 extmail]# postfix reload 进入extmail 登陆进去如果找不到默认邮件目录就用系统先发一封邮件 就可以 提示 Unix::Syslog not found, please install it first! (in cleanup) Undefined subroutine &Ext:ogger:: do_closelog called at /var/www/extsuite/extmail/libs/Ext/Logger.pm line 87. vim/var/www/extsuite/webmail/webmail.cf sys_log_on = 0 即关闭日志 也可以安装perl-Unix-Syslog yum没有网上找rpm包
标签:
原文地址:http://my.oschina.net/u/2342806/blog/469420