下载安装包 extman-1.1.tar.gz //主要运用于服务端 extmail-1.2.tar.gz //主要运用于客户端 [[email protected] ~]# tar zxf extman-1.1.tar.gz [[email protected] ~]# cd extman-1.1/docs [[email protected] docs]# vim init.sql 18INSERT INTO `mailbox` VALUES (‘[email protected]‘,‘postmaster‘,‘westos‘ ..//把密码改成自己设置的明文密码 25INSERT INTO `manager` VALUE(‘[email protected]‘,‘westos‘,‘admin‘,‘ro .. [[email protected] docs]# mysql -pwestos < extmail.sql [[email protected] docs]# mysql -pwestos < init.sql 接下来与postfix连接配置 [[email protected] docs]# cp mysql_virtual_alias_maps.cf /etc/postfix/mysql_alias.cf [[email protected] docs]# cp mysql_virtual_domains_maps.cf /etc/postfix/mysql_domains.cf [[email protected] docs]# cp mysql_virtual_mailbox_maps.cf /etc/postfix/mysql_mailbox.cf [[email protected] docs]# postfix reload [[email protected] ~]# 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 = ‘%[email protected]%r‘ [email protected] ~]#yum install -y httpd [[email protected] extman-1.1]# mkdir /var/www/extsuite [[email protected] ~]# mv extman-1.1 /var/www/extsuite/ [[email protected] ~]# tar zxf extmail-1.2.tar.gz -C /var/www/extsuite/ [[email protected] ~]# cd /var/www/extsuite/ [[email protected] extsuite]# mv extmail-1.2/ extmail [[email protected] 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 [[email protected] 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> [[email protected] extsuite]# /etc/init.d/httpd restart [[email protected] extsuite]# chown -R email.email /var/www/extsuite/extmail/cgi/ [[email protected] extsuite]# yum install perl-CGI -y [[email protected] extsuite]# cd extmail/ [[email protected] extmail]# cp webmail.cf.default webmail.cf [[email protected] 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 [[email protected] extmail]#postconf -e smtpd_tls_security_level=may [[email protected] 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包
时间: 2024-10-13 15:02:57