免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2708 | 回复: 8
打印 上一主题 下一主题

[Mail] vpopmail数据库与邮件分开很急的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-19 01:48 |只看该作者 |倒序浏览
10可用积分
老板让我把现有的qmail系统进行数据库邮件进行分开,原来是apache+php+mysql+vpopmail+qmail在一台服务器上安装,现在老板让我把数据库单独用一台机器,其他放在一台机器上。我把vpopmail.mysql的格式改为:192.168.1.6|0|vpopmail|passwd|vpopmail,可是老是报错,192.168.1.6的数据库账户如果不对报如下错误:
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: sql error: MySQL server has gone away
vmysql: sql error[3]: MySQL server has gone away
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: error creating table 'dir_control': MySQL server has gone away
vmysql: sql error: MySQL server has gone away
vmysql: sql error[3]: MySQL server has gone away
vmysql: sql error[2]: MySQL server has gone away
Failed while attempting to add user to auth backend
Error: (vadduser) no auth connection

我把账户设置正确出现
vmysql: sql error[2]: Access denied; you need the SUPER privilege for this operation
Failed while attempting to add user to auth backend
Error: (vadduser) no auth connection

我把vpopmail的权限改到最高也是报上面得错误。请各位兄弟帮忙呀

我改怎么做呀

论坛徽章:
0
2 [报告]
发表于 2009-05-19 09:08 |只看该作者
应该是qmail服务器不能访问mysql数据。

在qmail服务器上的shell下执行下面命令,看能否到mysql的命令行:
mysql -h192.168.1.6 -uvpopmail -ppasswd

如果不能进入到mysql的命令行在mysql命令行上执行:
GRANT ALL PRIVILEGES ON vpopmail.* TO 'vpopmail'@'Your Qmail IP' IDENTIFIED BY 'passwd';

flush privileges;


原帖由 swh01 于 2009-5-19 01:48 发表
老板让我把现有的qmail系统进行数据库邮件进行分开,原来是apache+php+mysql+vpopmail+qmail在一台服务器上安装,现在老板让我把数据库单独用一台机器,其他放在一台机器上。我把vpopmail.mysql的格式改为:192 ...

论坛徽章:
0
3 [报告]
发表于 2009-05-19 09:09 |只看该作者
在qmail服务器上的shell下执行下面命令,看能否到mysql的命令行:
mysql -h192.168.1.6 -uvpopmail -ppasswd


是可以执行命令的

论坛徽章:
0
4 [报告]
发表于 2009-05-19 09:11 |只看该作者

回复 #3 swh01 的帖子

把结果贴出来看看

论坛徽章:
0
5 [报告]
发表于 2009-05-19 09:19 |只看该作者
vmysql: sql error[2]: Access denied; you need the SUPER privilege for this operation
Failed while attempting to add user to auth backend
Error: (vadduser) no auth connection

论坛徽章:
0
6 [报告]
发表于 2009-05-19 09:32 |只看该作者

回复 #5 swh01 的帖子

从错误上看就是mysql的权限问题,用mysql的root用户进入到mysql的命令行提示符下;执行下面命令:

$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 63980
Server version: 5.0.67-community-log MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> GRANT ALL PRIVILEGES ON vpopmail.* TO 'vpopmail'@'Your Qmail IP' IDENTIFIED BY 'passwd';
Query OK, 0 rows affected (0.16 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.09 sec)

mysql> quit

蓝色的为你输入的,注意把IP地址换成你的IP

然后观察一下看看还有没有错误出现。

[ 本帖最后由 zlj2208 于 2009-5-19 09:35 编辑 ]

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
7 [报告]
发表于 2009-05-19 12:26 |只看该作者
原帖由 swh01 于 2009-5-19 09:19 发表
vmysql: sql error[2]: Access denied; you need the SUPER privilege for this operationFailed while attempting to add user to auth backend
Error: (vadduser) no auth connection



应该是访问mysql的权限问题

论坛徽章:
0
8 [报告]
发表于 2009-05-19 15:11 |只看该作者
已经搞定但是qmail又出现问题,上面报错我根据几位哥们的提示进行重新授权,然后重启MYSQL就好了

现在出现以下问题:
@400000004a124c7936ad006c tcpserver: status: 1/20
@400000004a124c7936b01d4c tcpserver: pid 4065 from 192.168.1.182
@400000004a124c7936b0d8cc tcpserver: ok 4065 0:192.168.1.9:25 :192.168.1.182::1687
@400000004a124c793759d29c /home/vpopmail/bin/vchkpw: error while loading shared libraries: libcrypt.so.1: failed to map segment from shared object: Cannot allocate memory
@400000004a124c7e3768c6bc tcpserver: end 4065 status 256
@400000004a124c7e3768caa4 tcpserver: status: 0/20
@400000004a124f74209f287c tcpserver: status: 1/20
@400000004a124f7420a1eb84 tcpserver: pid 4093 from 192.168.1.182
@400000004a124f7420a2be74 tcpserver: ok 4093 0:192.168.1.9:25 :192.168.1.182::1706
@400000004a124f74236de0ac /home/vpopmail/bin/vchkpw: error while loading shared libraries: libcrypt.so.1: failed to map segment from shared object: Cannot allocate memory
@400000004a124f79237b753c tcpserver: end 4093 status 256
@400000004a124f79237b7924 tcpserver: status: 0/20


不能发送邮件,smtp好像不工作

论坛徽章:
0
9 [报告]
发表于 2009-05-20 13:13 |只看该作者
原帖由 swh01 于 2009-5-19 15:11 发表
已经搞定但是qmail又出现问题,上面报错我根据几位哥们的提示进行重新授权,然后重启MYSQL就好了

@400000004a124c793759d29c /home/vpopmail/bin/vchkpw: error while loading shared libraries: libcrypt.so.1: failed to map segment from shared object: Cannot allocate memory


从这个错误看因该是smtp 启动脚本内存分配的太小了,将softlimit后面的参数改大一些,比如改成8M试试。
脚本一般在/var/qmail/supervise/目录下,的一个子目录,看你怎么配置了。
我的服务器是脚本是/var/qmail/supervise/smtp/run

exec /usr/bin/softlimit -m 8000000
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP