分类: LINUX
2008-08-29 14:00:20
[root@mail /home/down]#tar zxvf extmail-1\[1\]\[1\].0.4.tar.gz
[root@mail /home/down]#cd extmail-
[root@mail /home/down/extmail-
mkdir: 已创建目录 “/var/www/extsuite/extmail”
[root@mail /home/down/extmail-
[root@mail /home/down]#tar zxvf extman-0\[1\]\[1\].2.3.tar.gz
[root@mail /home/down]#mkdir -vp /var/www/extsuite/extman
mkdir: 已创建目录 “/var/www/extsuite/extman”
[root@mail /home/down]#mv /home/down/extman-
[root@mail /home/down]#cd /var/www/extsuite/extmail/
[root@mail /var/www/extsuite/extmail]#cp webmail.cf.default webmail.cf
[root@mail /var/www/extsuite/extmail]#vi webmail.cf
SYS_USER_LANG = zh_CN //53行
SYS_MAILDIR_BASE = /var/mailbox //103
115 SYS_MYSQL_USER = extmail
116 SYS_MYSQL_PASS = extmail
117 SYS_MYSQL_DB = extmail
118 SYS_MYSQL_HOST = localhost
[root@mail /var/www/extsuite/extmail]#cd ../extman
[root@mail /var/www/extsuite/extman]#vi webman.cf
51 SYS_GROUPMAIL_SENDER =
95 SYS_DEFAULT_UID = 1001
98 SYS_DEFAULT_GID = 1001
[root@mail /var/www/extsuite/extman]#cd docs/
[root@mail /var/www/extsuite/extman/docs]#export PATH=$PATH:/usr/local/mysql/bin
在初始化数据库时,更改init.sql中extmail.org的名称为自已域名
[root@mail /var/www/extsuite/extman/docs]#mysql -u root -p < ./extmail.sql
[root@mail /var/www/extsuite/extman/docs]#mysql -u root -p < ./init.sql
建立maildrop日志文件
[root@mail /var/www/extsuite/extman/docs]#touch /var/log/maildrop.log
[root@mail /var/www/extsuite/extman/docs]#chown vmail.vmail /var/log/maildrop.log
用foxmail测试
日志错误
Aug 28 02:53:22 mail authdaemond: failed to connect to mysql server (server=localhost, userid=extmail): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
解决:
[root@mail /var/www/extsuite/extman]#ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
日志错误
Aug 8 02:12:40 localhost pop3d: authentication error: Input/output error
解决
/usr/local/authlib/etc/authlib/authdaemonrc 文件错误
日志错误
28 02:59:13 mail pop3d: postmaster@mail.com: chdir(/var/mailbox/mail.com/postmaster/Maildir/) failed!!
更改/var/mailbox权限
登录extman 删除postmaster 再新建此用户
在文件/var/www/extsuite/extmail/html/default/index.html 将161行改为,可以得到不同
|
|
邮件域的下拉列表,从而方便用户的使用。
[root@mail /var/mailbox]#vi /var/www/extsuite/extman/html/default/index.html
将114行改为
[root@mail /mnt/Server]#rmp -ivh tcl-devel-
rpm -ivh freetype-devel-
rpm -ivh libart_lgpl-devel-
rpm -ivh libpng-devel-
[root@mail /home/down]#tar zxvf rrdtool-
[root@mail /home/down]#cd rrdtool-
[root@mail /home/down/rrdtool-
[root@mail /home/down/rrdtool-
[root@mail /home/down/rrdtool-
出现
Can't locate RRDs.pm in @INC (@INC contains:
解决
[root@mail /home/down/rrdtool-
[root@mail /usr/lib/perl5/
出现
Can't locate File/Tail.pm in @INC
perl -MCPAN -e shell
cpan> install File::Tail
[root@mail /usr/lib/perl5/
Starting mail statistics grapher: mailgraph_ext
[root@mail /usr/lib/perl5/
Starting queue statistics grapher: qmonitor
[root@mail /usr/lib/perl5/
[root@mail /usr/lib/perl5/
[root@mail /usr/lib/perl5/
停止 httpd: [确定]
启动 httpd: [确定]