postfix融合extmail webインタフェースのメールボックス構成
2828 ワード
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 ('[email protected]','postmaster','westos' ..//
25INSERT INTO `manager` VALUE('[email protected]','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
。。 , ye i want you