loveyouhyf 写道:
ZhangHuangbin 写道:

那就真没辙了,SOGo 应该要自动创建它才对。

剩下一个办法:在虚拟机里装一个 iRedMail,把它的  sogo 数据库里的这个表导出来,再导入到你现在这台服务器上。

虚拟机里我试了,也没有这个表,why?

//OCSCacheFolderURL = "mysql://sogo:WGWfjj5n4icKcWVTGnuIUb6DcPdECU@127.0.0.1:3306/sogo/sogo_cache_folder";
如上,我给他注释掉就可以拉,但不知这样做有什么副作用没?

ZhangHuangbin 写道:

那就真没辙了,SOGo 应该要自动创建它才对。

剩下一个办法:在虚拟机里装一个 iRedMail,把它的  sogo 数据库里的这个表导出来,再导入到你现在这台服务器上。

虚拟机里我试了,也没有这个表,why?

ZhangHuangbin 写道:

*) users 是一个 SQL VIEW,和表略有不同。可以不删除。
*) 你的 /etc/sogo/sogo.conf 里有 OCSCacheFolderURL 参数吗?

有的
OCSCacheFolderURL = "mysql://sogo:da25fGShaOMfZEUlwALJ2xKw3Miqp7@127.0.0.1:3306/sogo/sogo_cache_folder";

ZhangHuangbin 写道:

如果你的 sogo 数据库里还没有任何实际重要的数据,尝试将它里面的所有 sql 表都删掉,然后重启 sogo 服务试试。这样应该会触发 sogo 创建需要的表。


不行呢,其中有个users表删不掉,其他都删啦,重启sogod服务后,表都回来啦。但仍旧没有那个cache表,我在想能不能直接删掉 sogo库再创建呢???

安装日志如附件!

ZhangHuangbin 写道:
loveyouhyf 写道:

2017-03-15 13:08:01.621 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8>   ERROR: Table 'sogo.sogo_cache_folder' doesn't exist

sogo 没有自动创建这个 sql 表。按以下流程试试:

- 停止 sogo 服务
- 停止 memcached 服务
- 启动 memcached 服务
- 启动 sogo 服务

[root@mail ~]# service sogod stop
Stopping SOGo:
  sogo stopped
[root@mail ~]# service memcached stop
Stopping memcached:                                        [  OK  ]
[root@mail ~]# service memcached start
Starting memcached:                                        [  OK  ]
[root@mail ~]# service sogod start
Starting SOGo:
  sogo                                                     [  OK  ]
[root@mail ~]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3498
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| amavisd            |
| iredadmin          |
| iredapd            |
| mysql              |
| roundcubemail      |
| sogo               |
| vmail              |
+--------------------+
8 rows in set (0.01 sec)

mysql> use sogo
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from sogo_cache_folder
    -> ;
ERROR 1146 (42S02): Table 'sogo.sogo_cache_folder' doesn't exist
mysql> select * from sogo_cache_folder
    -> ;
ERROR 1146 (42S02): Table 'sogo.sogo_cache_folder' doesn't exist
mysql> select * from sogo_cache_folder;
ERROR 1146 (42S02): Table 'sogo.sogo_cache_folder' doesn't exist
mysql> exit
Bye


依然不行呀

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.96
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.6
- 与您的问题相关的日志信息:
====
Mar 15 13:08:01 sogod [5251]: [ERROR] [we-rm] did not find locale for language: Chinese
2017-03-15 13:08:01.619 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8> SQL: SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc1993102598+folderc870e802668bc6586b0b000020101f19' AND c_uid = 'postmaster@xxx.cn';
2017-03-15 13:08:01.621 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8>   ERROR: Table 'sogo.sogo_cache_folder' doesn't exist
Mar 15 13:08:01 sogod [5249]: <0xb4b352e4[SOGoCacheGCSObject]:androidc1993102598+folderc870e802668bc6586b0b000020101f19> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc1993102598+folderc870e802668bc6586b0b000020101f19' AND c_uid = 'postmaster@xxx.cn''
Mar 15 13:08:01 sogod [5249]: <0xb4b352e4[SOGoCacheGCSObject]:androidc1993102598+folderc870e802668bc6586b0b000020101f19> exception is '<MySQL4Exception: 0xb4af8c0c> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Mar 15 13:08:01 sogod [5249]: <0x0xb4b4dc4c[SOGoActiveSyncDispatcher]> EAS - processSyncCollection: no folderMetadata found: folderINBOX
2017-03-15 13:08:01.623 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8> SQL: SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc1993102598' AND c_uid = 'postmaster@xxx.cn';
2017-03-15 13:08:01.624 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8>   ERROR: Table 'sogo.sogo_cache_folder' doesn't exist
Mar 15 13:08:01 sogod [5249]: <0xb497da1c[SOGoCacheGCSObject]:androidc1993102598> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc1993102598' AND c_uid = 'postmaster@xxx.cn''
Mar 15 13:08:01 sogod [5249]: <0xb497da1c[SOGoCacheGCSObject]:androidc1993102598> exception is '<MySQL4Exception: 0xb4ab6b54> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
2017-03-15 13:08:01.625 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8> SQL: SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc1993102598' AND c_uid = 'postmaster@xxx.cn';
2017-03-15 13:08:01.626 sogod[5249] <MySQL4Channel[0x0xb4b0f284] connection=0x0xb48538e8>   ERROR: Table 'sogo.sogo_cache_folder' doesn't exist
Mar 15 13:08:01 sogod [5249]: <0xb497e3ec[SOGoCacheGCSObject]:androidc1993102598> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc1993102598' AND c_uid = 'postmaster@xxx.cn''
Mar 15 13:08:01 sogod [5249]: <0xb497e3ec[SOGoCacheGCSObject]:androidc1993102598> exception is '<MySQL4Exception: 0xb4ac276c> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Mar 15 13:08:01 sogod [5249]: <0x0xb4b4dc4c[SOGoActiveSyncDispatcher]> EAS - Discard response {}

ZhangHuangbin 写道:

*) 为何禁用 ssl?
*) 参考我们的客户端配置文档来配置 foxmail:
http://www.iredmail.org/docs/index.html … plications

1)刚开始以为要设置成功必须要将这个ssl禁用呢,所以才禁掉,今天才知道这个可以不禁,只需在邮件客户端上收件服务器勾选上ssl即可,按照这个设置我在手机上也设置成功了
2)看您给的这个链接,似乎是只有安装sogo组件才能支持exchange邮件模式,可是我安装iredmail时没有选择安装这个sogo组件,这样的话我是否还要重装iredmail,还是可以单独安装这个组件呢?
3)这种imaps或pop3s不能支持像exchange的那种全局通讯录吗?如果安装上sogo这个组件后是不是就可以使用全局通讯录了?
4)  0.9.2iredmail在安装是默认情况下就没有勾选这个sogo这个组件,是不是它跟其它组件功能上是重合(复)的?

不好意思张工,
1)我有去查看相关日志,只是没有看到出错信息呢,我查看了httpd下的所有日志,及dovocot.log,maillog,都没有看到有用的信息,所以才没有贴出来,是不是我看错位置了
2)手机端就是指定收发邮件服务器 用户名及密码,没有其它设置
3)/usr/local/etc/dovecot/dovecot.conf 这里的这两个参数有修改过
disable_plaintext_auth=no
ssl=no
4)按步骤3设之后我在foxmail上可以采用imap或pop3的方式远程收发出邮件
5) 在手机客户端上采取imap或pop3都不行,我用的是苹果5c(8.4的系统,邮件客户端就是用的其自带的)
6)另外,顺带问下,我的这个版本iredmail可以支持exchang的收发邮件模式吗??如支持要怎么设置呢??如不支持装其它组件就能支持呢?
7)我安装iredmail 0.9.2时,没有选 择sogo 那个组件,不知是否是这个组件影响手机客户端收发邮件呢?

以上,请张工指教,谢谢

- iRedMail 版本号:0.9.2
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):Mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.6 32位
- 与您的问题相关的日志信息:
实体系统,未作任何修改。刚安装好iredmail.

在手机端设置好后,无法取得邮件,

终于搞定了,原来在更新md5密码时,密码字符没有去掉{MD5},感谢,张工!

[Thu Sep 10 14:20:42 2015] [error] [client 192.168.3.221] user postmaster@xxx.com.cn: password mismatch: /awstats/awstats.pl
[Thu Sep 10 14:22:10 2015] [error] [client 192.168.3.221] user postmaster@xxx.com.cn: password mismatch: /cluebringer/


张工,不仅cluebringer不行,awstats也不行,都是一样的错误,一直让输密码,但确定后一直过不去,后台一直报错,如上,我把我前台的登录也截图了,您再看下。谢谢

张工,两种密码方式我都试了,还是一样的错误,

前端一直让输入密码,点确定就报如下错

/var/log/httpd/ssl_error_log报如下错:
[Thu Sep 10 13:43:53 2015] [error] [client 192.168.3.221] user postmaster@xxxx.com.cn: password mismatch: /cluebringer/


/var/log/httpd/ssl_request_log报如下错:
[10/Sep/2015:13:50:13 +0800] 192.168.3.221 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /mail/?_task=mail&_action=refresh HTTP/1.1" 327

张工,我英文不太好,按您给的这篇文章的意思是,根据原先的明文密码生成一个md5的密码,然后进mysql去更新管理员的密码是吧??
另外,
1.是用/etc/policyd/cluebringer.conf中的 database=cluebringer;user=cluebringer;password=xxxx  的用户名密码登录进cluebringer库?如果是这个的话进去这个库后又该更新那个表呢??

2.这样设置后影响我能正常登录的Roundcube webmail 和 iRedAdmin 吗??

请问您说的send bcc 及recipent bcc是在postfix.conf中设置吗??
是如下这样吗??不起作用呢
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
alway_bcc=postmaster@xxx.com.cn    #这是我新增的一行

- iRedMail 版本号:0.9.2
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):Mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.6 32位
- 与您的问题相关的日志信息:
实体系统,未作任何修改。刚安装好iredmail.
根据系统邮件,登录 https://服务器IP/cluebringer 输入postmaster@xxx.com 及密码
页面显示401错误
Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
在var/log/httpd/ 的ssl_error_log.log中 信息如下
[Thu Sep 10 08:17:09 2015] [error] [client 192.168.3.221] user postmaster@xxx.com.cn: password mismatch: /cluebringer/
[Thu Sep 10 08:20:01 2015] [error] [client 192.168.3.221] user postmaster@xxx.com.cn: password mismatch: /cluebringer/
[Thu Sep 10 08:20:23 2015] [error] [client 192.168.3.221] user postmaster@xxx.com.cn: password mismatch: /cluebringer/


补充/var/log/httpd/ssl_reques_log 中信息如下:
[10/Sep/2015:09:01:33 +0800] 192.168.3.221 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /cluebringer/ HTTP/1.1" 509
[10/Sep/2015:09:02:19 +0800] 192.168.3.221 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /cluebringer/ HTTP/1.1" 509
[10/Sep/2015:09:02:22 +0800] 192.168.3.221 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /mail/?_task=mail&_action=refresh HTTP/1.1" 280
[10/Sep/2015:09:03:22 +0800] 192.168.3.221 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /mail/?_task=mail&_action=refresh HTTP/1.1" 280
[10/Sep/2015:09:03:23 +0800] 192.168.3.221 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /cluebringer/ HTTP/1.1" 509

请各位老大帮忙解决,谢谢!