Chinaunix首页 | 论坛 | 博客
  • 博客访问: 661540
  • 博文数量: 107
  • 博客积分: 4135
  • 博客等级: 上校
  • 技术积分: 1182
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-06 16:01
文章分类

全部博文(107)

文章存档

2020年(2)

2012年(5)

2011年(6)

2010年(23)

2009年(17)

2008年(35)

2007年(19)

我的朋友

分类: LINUX

2008-08-29 14:00:20

安装extmail

[root@mail /home/down]#tar zxvf extmail-1\[1\]\[1\].0.4.tar.gz

[root@mail /home/down]#cd extmail-1.0.4/

[root@mail /home/down/extmail-1.0.4]#mkdir -vp /var/www/extsuite/extmail

mkdir: 已创建目录 /var/www/extsuite/extmail

[root@mail /home/down/extmail-1.0.4]#mv * /var/www/extsuite/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-0.2.3/* /var/www/extsuite/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.sqlextmail.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行改为

 

 

安装TCL支持

[root@mail /mnt/Server]#rmp -ivh tcl-devel-8.4.13-3.fc6.i386.rpm

 

安装图形日志显示支持

rpm -ivh freetype-devel-2.2.1-16.el5.i386.rpm

rpm -ivh libart_lgpl-devel-2.3.17-4.i386.rpm

rpm -ivh libpng-devel-1.2.10-7.i386.rpm

 

[root@mail /home/down]#tar zxvf rrdtool-1.2.28.tar.gz

[root@mail /home/down]#cd rrdtool-1.2.28

[root@mail /home/down/rrdtool-1.2.28]#./configure --prefix=/usr/local/rrdtool

[root@mail /home/down/rrdtool-1.2.28]#cp -r /var/www/extsuite/extman/addon/mailgraph_ext/ /usr/local/mailgraph_ext

[root@mail /home/down/rrdtool-1.2.28]#/usr/local/mailgraph_ext/mailgraph-init start

 

 

出现

Can't locate RRDs.pm in @INC (@INC contains:

解决

[root@mail /home/down/rrdtool-1.2.28]#ln -sv /usr/local/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so /usr/lib/perl5/5.8.8/i386-linux-thread-multi/

[root@mail /usr/lib/perl5/5.8.8/i386-linux-thread-multi]#ln -sv /usr/local/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/RRDs.pm /usr/lib/perl5/5.8.8/i386-linux-thread-multi/

 

出现

Can't locate File/Tail.pm in @INC

perl -MCPAN -e shell

cpan> install File::Tail

 

[root@mail /usr/lib/perl5/5.8.8/i386-linux-thread-multi]#/usr/local/mailgraph_ext/mailgraph-init start

Starting mail statistics grapher: mailgraph_ext

[root@mail /usr/lib/perl5/5.8.8/i386-linux-thread-multi]#/usr/local/mailgraph_ext/qmonitor-init start

Starting queue statistics grapher: qmonitor

[root@mail /usr/lib/perl5/5.8.8/i386-linux-thread-multi]#echo "/usr/local/mailgraph_ext/mailgraph-init start" >> /etc/rc.d/rc.local

[root@mail /usr/lib/perl5/5.8.8/i386-linux-thread-multi]#echo "/usr/local/mailgraph_ext/qmonitor-init start" >> /etc/rc.d/rc.local

[root@mail /usr/lib/perl5/5.8.8/i386-linux-thread-multi]#service httpd restart

停止 httpd                                               [确定]

启动 httpd                                               [确定]

 

 

 
Ok 成功!

Ok 成功!
阅读(3529) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

longtian0012008-11-25 20:39:27

是原创吗 能成功吗哥们,我都用了好多就是过不去