postfix之extman详解

extman:

    配置文件:
        webman.cf
        内容和webmail.cf类似
        SYS_SESS_DIR = /tmp/extman/ 会话进程目录,该目录的属主属组为httpd进程的属主属组,由于启用了suexec,进程的实际属主属组为postfix
        SYS_CAPTCHA_ON = 1 用户登录是否需要输入验证码
        SYS_DEFAULT_UID = 1000
        SYS_DEFAULT_GID = 1000
        SYS_MYSQL_USER = webman 联系mysql所使用的账号
        SYS_MYSQL_PASS = webman 联系mysql所使用的账号的密码


    安装和配置:
        1.解压并编辑配置文件
            #tar xf extman-xxx.tar.gz
            #mv extman-xxx /var/www/extsuite/extman
            #cp /var/www/extsuite/extman/webman.cf.default /var/www/extsuite/extman/webman.cf
            #vim /var/www/extsuite/extman/webman.cf
                SYS_MAILDIR_BASE = /var/mailbox
                SYS_SESS_DIR = /tmp/extman
                SYS_DEFAULT_UID = 2525 改为postfix的
                SYS_DEFAULT_GID = 2525
                SYS_MYSQL_USER = webman
                SYS_MYSQL_PASS = webman
                SYS_MYSQL_USER = webman
                SYS_MYSQL_PASS = webman
                SYS_MYSQL_DB = extmail
                SYS_MYSQL_HOST = localhost
                SYS_CAPTCHA_ON = 0 先关闭显示验证码

        2.在mysql中设定webman的权限
            #mysql -uroot -p
            mysql> GRANT ALL PRIVILEGES ON exitmail.* TO webman@localhost INDENTIFIED BY 'webmail';
            mysql> GRANT ALL PRIVILEGES ON exitmail.* TO [email protected] INDENTIFIED BY 'webmail';
            mysql>FLUSH PRIVILEGES;

        3.修改webman的cgi目录属主属组
            #chown -R postfix:postfix /var/extsuite/extman/cgi/

        4.编辑虚拟主机配置文件,增加extman的别名:
            #vim /etc/httpd/httpd-vhost.conf
                <VirtualHost *:80>
                    ServerName mail.magedu.com

                    DocumentRoot /var/www/extsuite/extmail/html/

                    ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgi
                    Alias /extmail /var/www/extsuite/extmail/html

                    SuexecUserGroup postfix postfix

                    ScriptAlias /extman/cgi /var/www/extsuite/extman/cgi
                    Alias /extman /var/www/extsuite/extman/html
                </VirtualHost>

        5.创建进程文件夹:
            #mkdir -p /tmp/webman
            #chown -R postfix:postfix /tmp/webman


        6.启用图形日志;


    使用:
        访问http://IP/extman
        默认管理帐号为:[email protected]  密码为:extmail*123*

你可能感兴趣的:(linux,mail,extman)