Quantcast
Channel: iRedMail — iRedMail Support
Viewing all 43369 articles
Browse latest View live

Re: External SMTP - Not Passing SASL username and password

$
0
0

Did you read mailgun official document? What's the suggested config?


Re: SOGo update

Re: Suggestion: Integrate razor and pyzor by default

$
0
0
broth wrote:

Background: We receive much spam (Ads for insurances, men health etc..) and these are well detected by pyzor.

Interesting. smile

The latest version of pyzor is 1.0, released on Dec 10, 2014. No further improvement made in its github repository. Should we continue integrating it?

Re: Suggestion: Database migration script

$
0
0

Thanks for the feedback. It would be great if you can help make it happen. was too busy working on iRedMail cluster and iRedAdmin-Pro, also migrating iRedMail installer to Ansible.

Re: How to cleanup orphaned maildir data

$
0
0

Unfortunately, we don't have such script/tool to help remove orphaned directories. sad

Re: Set Postfix to relay only for users not found or relay outgoing only?

$
0
0

*) For outbound relay, try Postfix parameter "relayhost =".
*) For the user unknown issue, maybe you can add a new mail user first, e.g. catchall@, then setup the per-domain catch-all account to catchall@. Set the outbound relay and inbound relay for catchall@.

The latest iRedMail release has Postfix parameter "sender_dependent_relayhost_maps" enabled by default, so you can insert proper value in SQL/LDAP directly.

Re: Setup iRedMail as Mail gateway for a subdomain

$
0
0

This doesn´t seem to do the trick, the only difference I see at a quick glance is,
that amavis treats the message differently:
With @local_domains_maps = ([ ".$mydomain", ".ad.example.com" ]);

Passed CLEAN {RelayedOpenRelay}

With stock settings @local_domains_maps = 1;

Passed CLEAN {RelayedInbound}

It must be something in the SA config, which is preventing to add the dkim header if the mail is not originating from localhost...

I will reply later with a full debug log diff, maybe that will help a bit

Re: Setup iRedMail as Mail gateway for a subdomain

$
0
0

Try another way: Add the IP of ad.example.com in Amavisd "@mynetworks", then restart amavisd service.


Re: Setup iRedMail as Mail gateway for a subdomain

$
0
0

There is no A record for ad.example.com. However, the IP of the onsite MTA is added to mynetworks of course.

EDIT: Sorry, just realized, you said amavis, not postfix wink Will try this asap

Re: External SMTP - Not Passing SASL username and password

$
0
0

Yes, what I posted is the correct config for any external smtp service using postfix.

The issues is with iRedMail.  It is conflicting with something on postfix with outgoing authentication.

I did a test using Amazon's mail service and same thing.  So this is not just mailgun.  It's any smtp relay.  Postfix is not passing the sasl username and password correctly.  It looks like it is posting a blank username and password even though we have set: smtp_sasl_password_maps = static:XXXXXX:XXXXXXX

iRedMail is taking control over that some how.

Mike

Re: Suggestion: Integrate razor and pyzor by default

$
0
0

Well, even if the code is from 2014, the online databases seem to be updated (they detected my two very recent spam samples very well). Additionally Ubuntu is describing the installation in their wiki page.

I think every tool which helps to fight spam is welcome.
As far as I know there is still no collaborative type of spam detection in iRedMail so this would be a good and easy thing to implement.
Just my 2 cents - comments welcome smile

Re: How to cleanup orphaned maildir data

$
0
0

Here you go, a quick little bash script which shows orphaned directories:

#!/bin/bash

# Script to find orphaned directories on iRedMail servers
# Created by Bernhard Roth (broth@roth-itk.de) 15.04.2017, Version 1.0

VMAIL_DIR="/var/vmail/vmail1"

echo "SELECT CONCAT(storagebasedirectory, '/', storagenode, '/', maildir) from mailbox;" | mysql vmail | sed -n '1!p' | sed 's/.$//' | sed 's/\/\.\//\//' | sort >/tmp/dbdir

find $VMAIL_DIR -type d -name Maildir -prune -exec dirname {} \;  | sort >/tmp/fsdir

echo -e "\e[31mOrphaned directories:\e[0m"
comm -13 /tmp/dbdir /tmp/fsdir

rm /tmp/dbdir /tmp/fsdir

It creates two sorted lists with directory names from the MySQL database and from the filesystem.
Then both lists are compared and all directories, which are not in the database, are shown.

On my iRedMail server this shows six correct orphaned directories.

I am sure this can be improved and enhanced to work with MariaDB, LDAP etc. but I am not so much a experienced bash script guy smile

Feedback and test reports welcome.

502 Bad Gateway: connect() to unix:/var/run/php-fpm.socket failed

$
0
0

Sorry to post on a Saturday night. Noticed a 502 Bad Gateway error and couldn't figure it out on own. This happened after upgrading a bunch of packages that will not list (pretty sure it is an php-fpm issue per the Nginx log file entry below):

Nginx log shows the following error:

*1 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 0.0.0.0, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "host@domain.com"

So far among other non-noteworthy actions tried replacing new /etc/php/7.0/fpm/php.ini file with the old one but this did not resolve.


==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 16.04.02
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: /var/log/nginx/error.log entry:
*1 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: 0.0.0.0, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "host@domain.com"
====

Running apache with another user (than www-data)

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.96
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache 2.4
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Hello,

using apache 2.4

Is there any convenient way I can change owner on files and folders from www-data to web-data forexample.

Thanks in advance,
Taff

Re: Running apache with another user (than www-data)

$
0
0

sudo chown forexample:forexample -R /var/www/*

will change everything in the directory /var/www (but not the www folder) to be owned by forexample


Re: Running apache with another user (than www-data)

$
0
0

thanks for the answer,
but that would be just too easy ;-).

The problem is that iredmail has folders in different folders that get owned by www-data for example

under /opt/iredmail
and under
/etc/apache2

probalbly the quetsion would be better if I asked where are all the fiels and folders which get owned by www-data during install from iredmail

thanks in advance,
taff

Re: Running apache with another user (than www-data)

$
0
0

ok,
after a bit of googling,
this should do it:

sudo find / -user www-data -exec chown newuser:newgroup {} +

haven't tried it yet though

greets,
taff

Re: Create Single User command

$
0
0
ZhangHuangbin wrote:
khalid.hajem wrote:

ldap_add: Already exists (68)

It means the account you're going to add already exists.


thanks, its work fine,  is there any way to add the common name in the command.

thanks for your support

block incoming email on servers hostname

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 16.04 X86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I have been running iRedmail for the last week on a a few different domains of mine. The server hostname is mx.domain.com with the domain.com as one of the virtual domains.

I noticed a few email blocked (correctly) when they were trying to look like they came from my domain without being sent via the submission port. However yesterday I received a SPAM email that came from the hostname. I'd like to make sure any of these emails are blocked.

Here is a copy of the mail headers from the email in question:

Return-Path: <MAILER-DAEMON>
Delivered-To: ben@domain.com
Received: from mx.domain.com (localhost [127.0.0.1])
    by mx.domain.com (Postfix) with ESMTP id 976055DC02
    for <ben@domain.com>; Sat, 15 Apr 2017 10:59:44 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at mx.domain.com
Received: from mx.domain.com ([127.0.0.1])
    by mx.domain.com (mx.domain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id 74Dk6tzLPS-u for <ben@domain.com>;
    Sat, 15 Apr 2017 10:54:12 +0100 (BST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02hn0248.outbound.protection.outlook.com [104.47.6.248])
    by mx.domain.com (Postfix) with ESMTPS id 51EB55DCBF
    for <ben@domain.com>; Sat, 15 Apr 2017 10:54:03 +0100 (BST)
Received: from HE1PR0401CA0046.eurprd04.prod.outlook.com (10.168.27.14) by
HE1PR04MB2987.eurprd04.prod.outlook.com (10.170.255.145) with Microsoft SMTP
Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
15.1.1019.17; Sat, 15 Apr 2017 09:53:51 +0000
Received: from AM5EUR02FT005.eop-EUR02.prod.protection.outlook.com
(2a01:111:f400:7e1e::201) by HE1PR0401CA0046.outlook.office365.com
(2603:10a6:3:19::14) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10 via
Frontend Transport; Sat, 15 Apr 2017 09:53:51 +0000
Authentication-Results: spf=none (sender IP is 192.38.124.75)
smtp.helo=sepo1.ku.dk; domain.com dkim=none (message not signed)
header.d=none;domain.com; dmarc=none action=none header.from=;
Received-SPF: None (protection.outlook.com: sepo1.ku.dk does not designate
permitted sender hosts)
Received: from sepo1.ku.dk (192.38.124.75) by
AM5EUR02FT005.mail.protection.outlook.com (10.152.8.173) with Microsoft SMTP
Server id 15.1.1019.14 via Frontend Transport; Sat, 15 Apr 2017 09:53:50
+0000
Received: from lb-fa-public-snat1.pan.net.ku.dk ([10.78.0.165])
          by sepo1.ku.dk (JAMES SMTP Server) with SMTP ID 133
          for <ben@domain.com>;
          Sat, 15 Apr 2017 11:53:50 +0200 (CEST)
Received: from MM-TS1.Morrell.local (75.148.231.49) by Exchange.ku.dk
(172.28.3.173) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 15 Apr
2017 11:53:49 +0200
Content-Type: multipart/mixed; boundary="===============1187709382=="
MIME-Version: 1.0
Subject: Customer Cash Coupon
To: <ben@domain.com>
From: SONY@mx.domain.com, EU@mx.domain.com
Date: Sat, 15 Apr 2017 04:54:33 -0500
Reply-To: <info@sonyeucoup.com>
Message-ID: <37bd2177-6fc1-448a-a528-94bf686f1451@P2KITHUB08W.unicph.domain>
X-Originating-IP: [75.148.231.49]
X-EOPAttributedMessage: 0
X-Matching-Connectors: 131367236310947821;(e7bb194a-85c4-48de-b850-08d452294bc4);()
X-Forefront-Antispam-Report:
    CIP:192.38.124.75;IPV:NLI;CTRY:DK;EFV:NLI;SFV:SPM;SFS:(10009020)(336005)(39410400002)(39400400002)(39840400002)(39380400002)(39450400003)(39850400002)(39860400002)(2970300002)(428002)(5005620100008);DIR:OUT;SFP:1501;SCL:9;SRVR:HE1PR04MB2987;H:sepo1.ku.dk;FPR:;SPF:None;MLV:ovrspm;A:0;MX:0;PTR:InfoDomainNonexistent;LANG:en;
X-Microsoft-Exchange-Diagnostics: 1;AM5EUR02FT005;1:KNRUbhdOs4vy0hFvt+0IHQsgEzDqMw0SpVDPozQ11z0en2lq7W7meJKPa8FIycMWgXK3fvCgwR/KijBPHVcaFTDjEekXeml/sr4OEu8y4NZRpLRYLWwtip9kKWVaRW51uAK/X65XGZddUpeU9u2UweG4Bwrn+lv9WGTfOL6LRhf7HQfQrnbiKy9hlSFzD5GS9a7/HH7wCyeDDqlYsFQ1HKviQ+HF+lnYbD9ehaQz+Aew1CmD1oeXM0A7lZDQ63MGdgUONTzQbZcI6EBhwPxGzdALShxPciTValtGkHpP35UzVaUnJKzSoldnHCwFV/fNqe4hqcZR9sjVyNYuW325XT+bbxWW9w+Ri6dtedN2AtOGZRXzc34Xd0hrG+I6N4caK75FrpQ0Xxp5OKEzIbODXN0TOFadvLM3dQb6ugCGUFMT6/vZ7CMUM0o1nlSLuvsyNCDLuhl/Wl9gnXP3PiXt939ZHKjzZ5/kzb7eXyDTcWG6XXqlv1Kzk3sYqRLKhLz3GO4id5KZSbdYEXFFheuneoF9Ym3+4R0G0SvQso0CyNY=
X-MS-Office365-Filtering-Correlation-Id: f0be7e5a-fdab-43bc-0ad9-08d483e551ba
X-Microsoft-Antispam:
    UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:HE1PR04MB2987;
X-Microsoft-Exchange-Diagnostics:
    1;HE1PR04MB2987;3:TCIbV1Qlch67G8s1Ny8y9gp5CF2QfvQflhbwshdI79FNmOrCyfWzIhkSpHr7mCarZhr5g4e/Kq/VVh13/YrniHKYpCq6WGDZfYSNmxS4m4EwzGIAw/iKJPdlGMTQiT2Ag1B2OuxVqy6T/5oKNR4f7GzEjVt6D7F5GlZQO3VExW5oOtsCqgo97u5aw1FUPJ4K+XnkIa6s2Ae5FZ8ky5QoqnlGqRllkZcMIU57uzaGSOMy2WSQL488IH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IdYlmKSJeth1Nl/tTNo3JAmm10CO7kf9nInkgeLmBU6lT8PI+0MGhp3+pbOK
X-Microsoft-Antispam-PRVS:
    <HE1PR04MB2987391F13433A21E4663B07B8040@HE1PR04MB2987.eurprd04.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(144347089115328);
X-Exchange-Antispam-Report-CFA-Test:
    BCL:0;PCL:0;RULEID:(102415395)(6095135)(601004)(2401047)(8121501046)(5005006)(13024025)(13016025)(13023025)(13018025)(93006095)(3002001)(10201501046)(6055026)(2002001)(6096035)(20161123556025)(201703131430075)(201703131437075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123565025)(20161123563025);SRVR:HE1PR04MB2987;BCL:0;PCL:0;RULEID:(400006);SRVR:HE1PR04MB2987;
X-Microsoft-Exchange-Diagnostics:
    1;HE1PR04MB2987;4:CCMEBJDQgPV0pooehrZ59dCAl9JtUTWF7WSTsoLRQxLiVF6REQLCbTOa7of5MIvKvMeXhpFcdx0itImFK5gi6vtI3klZ8HTI3Oe6v7mzGHTKA0tFxKAjiv44/BVvRBtyxPjiJ3TXzTGMCduxhA7/yXJDe12RuKwuLm0s5maa7pXuIcbIsP8OiraIiS6+CamtCDmsQqD2W6PJAcISVFLYV+oC1x+/qU/Tvpp4vtoNmFL935Y5teIUr4+BnpxOWK+covoIXBpDZg27ODPXuLEujwSW8nBFaI149oAPA4/o4qidvylBnJb4uhHuNxN/cIMS+dH7t9Qvt827I4kD/NOBh/o4qYeNH5SYfrbgPbNbssY9cLMXB/rsYqIpX3j4JqzqvPr3J1lV3p9o3KtWSUTUpiuzawgetItVuYuTlUB6Vu5I/ytSFTW+af0A769ipctDK3ItF+Wzuzad4l//iXnMW4adtawP+Owcyl41lScRErhu2aRwz+dlgywmj+shlk7LAEARIQZLGtawp2b1LfgU3E8LgfmFkUL7ROlsdhIK2Ujyaa1fvlhoaGA7nfwIdTBBwx2i3HhbgDHZ10922smKalZzzpVUPSIFYPx6FBREhCommN9g4Kemk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ba8eqOpyanYwmPiybjzsxMc+ekUF3gIQslfChIT0z7JS3woI0oWxygk/Wa5rJAQ37Zqp3/Z5uhvML6l0Qow+5UaNUJl5+QIycqVcWK8/6ZNKG+sbEdsyafkqI+5L5qWBzCyW4GGmZYvfq0n7hGD8mO1IgG03b8gqeEHu7WnxDuBdSWjESIWbuB7ka2BYBaHUYkGDD0IXtAZk/o+zXAJGHclr8iUjfJw==
X-Microsoft-Exchange-Diagnostics:
    1;HE1PR04MB2987;5:qkKDL5OsYLR4PUnqh7zWW0CAx7F5YuX3ucgWO+Rt3dNqVtGYK4Ekg8Cq+0k9Xv/LhyYSZ4HN3I8aKYqr5KeONwQTbH8NMiVxHG2vaOKkVdoTProEt1F4b6U2ZDvtSjeFV2BIpgOFw+rvoh5mya179w6VefJ5WWsiIak/QbR21dkWoj0G3S9yoJEMyo2tsI4O;24:lwHZ1wyT6zKZur3lSDofM+5F4DWNqn52vqRt1k0yrGpkRXzQ61qAkZ1F1Mt/n08PBRkSvWikjnahgDheJS96iA==;7:RILbby4y8/gBIDXufZo7ppn5yYZ4Rwe9gekwFqFG195CROZ5sdfEb3pMNGgIWo9bASUmDNRbwrOtuQy3Nd9gfLQ65mvEq7VxXmlcaaofBSjCEZfuAWMUX7erkmWGtQdCyrplmE92lLOMXmdPQV+RbKGgBqME0XzFOi21oIoVllGW/gNKslRdYhJd6OTzD1xUnVj9g10LU+c6WVoJcrNJ4ooA9wqyL1lIhiXsrf772R7JaeZZJxsjmjznhv5Py4A+8iowxmXDdTP6cwr0qLVQr3sFoKS2mFmZRQ4xdJhWUP3ud5WpbYm68FanETW7Ku2vv2NK8wQTVbDCORCdIR/2Xg==
SpamDiagnosticOutput: 1:22
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2017 09:53:50.7197
(UTC)
X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.38.124.75];Helo=[sepo1.ku.dk]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB2987

Is there a setting I need to modify / make in main.cf or is it more of a iRedAPD thing?

Regards

Ben

SOGo Sync Issue: Table sogo.sogo_cache_folder doesn't exist

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 OPENLDAP edition.
- Linux/BSD distribution name and version: CentOS release 6.9 (Final)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: /var/log/sogo/sogo.log
====

Heloo, I just setup a new server for a client and everything is working well except Exchange/Android sync. When I turn on sync for the calendar, the following is logged:

Apr 16 09:06:47 sogod [22720]: 192.168.1.1 "OPTIONS /SOGo/Microsoft-Server-ActiveSync HTTP/1.1" 200 0/0 0.009 - - 0
Apr 16 09:06:47 sogod [22720]: <0x7fe3d5ac5ab8[SOGoCacheGCSObject]:androidc255626231> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc255626231' AND c_uid = 'user@domain.net''
Apr 16 09:06:47 sogod [22720]: <0x7fe3d5ac5ab8[SOGoCacheGCSObject]:androidc255626231> exception is '<MySQL4Exception: 0x7fe3d5ed15b8> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Apr 16 09:06:47 sogod [22720]: 192.168.1.1 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=user%40domain.net&DeviceId=androidc255626231&DeviceType=Android HTTP/1.1" 200 13/32 0.007 - - 0

When I turn on sync for the Contacts, many more errors are logged:

Apr 16 09:08:26 sogod [22720]: 192.168.1.1 "OPTIONS /SOGo/Microsoft-Server-ActiveSync HTTP/1.1" 200 0/0 0.002 - - 0
Apr 16 09:08:26 sogod [22720]: <0x7fe3d5ac5ab8[SOGoCacheGCSObject]:androidc255626231> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc255626231' AND c_uid = 'user@domain.net''
Apr 16 09:08:26 sogod [22720]: <0x7fe3d5ac5ab8[SOGoCacheGCSObject]:androidc255626231> exception is '<MySQL4Exception: 0x7fe3d5f0bc28> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Apr 16 09:08:27 sogod [22720]: <0x7fe3d5a1f878[SOGoCacheGCSObject]:androidc255626231+folder71909e1f7c26f258a805000039015100> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc255626231+folder71909e1f7c26f258a805000039015100' AND c_uid = 'user@domain.net''
Apr 16 09:08:27 sogod [22720]: <0x7fe3d5a1f878[SOGoCacheGCSObject]:androidc255626231+folder71909e1f7c26f258a805000039015100> exception is '<MySQL4Exception: 0x7fe3d6061078> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Apr 16 09:08:27 sogod [22720]: [ERROR] <0x7fe3d5a1f878[SOGoCacheGCSObject]:androidc255626231+folder71909e1f7c26f258a805000039015100> could not insert/update record for record '/androidc255626231+folder71909e1f7c26f258a805000039015100' in sogo_cache_folder: <MySQL4Exception: 0x7fe3d601ac88> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist
Apr 16 09:08:27 sogod [22720]: <0x7fe3d5f9e428[SOGoCacheGCSObject]:androidc255626231+folderc0171c13e631f2589d0a000039015100> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc255626231+folderc0171c13e631f2589d0a000039015100' AND c_uid = 'user@domain.net''
Apr 16 09:08:27 sogod [22720]: <0x7fe3d5f9e428[SOGoCacheGCSObject]:androidc255626231+folderc0171c13e631f2589d0a000039015100> exception is '<MySQL4Exception: 0x7fe3d5ffa808> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Apr 16 09:08:27 sogod [22720]: [ERROR] <0x7fe3d5f9e428[SOGoCacheGCSObject]:androidc255626231+folderc0171c13e631f2589d0a000039015100> could not insert/update record for record '/androidc255626231+folderc0171c13e631f2589d0a000039015100' in sogo_cache_folder: <MySQL4Exception: 0x7fe3d605e098> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist
Apr 16 09:08:27 sogod [22720]: <0x7fe3d6026838[SOGoCacheGCSObject]:androidc255626231+folderc1171c13e631f2589d0a000039015100> an exception occurred when executing query 'SELECT * FROM sogo_cache_folder WHERE c_path = '/androidc255626231+folderc1171c13e631f2589d0a000039015100' AND c_uid = 'user@domain.net''
Apr 16 09:08:27 sogod [22720]: <0x7fe3d6026838[SOGoCacheGCSObject]:androidc255626231+folderc1171c13e631f2589d0a000039015100> exception is '<MySQL4Exception: 0x7fe3d60358a8> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist'
Apr 16 09:08:27 sogod [22720]: [ERROR] <0x7fe3d6026838[SOGoCacheGCSObject]:androidc255626231+folderc1171c13e631f2589d0a000039015100> could not insert/update record for record '/androidc255626231+folderc1171c13e631f2589d0a000039015100' in sogo_cache_folder: <MySQL4Exception: 0x7fe3d602ddb8> NAME:ExecutionFailed REASON:Table 'sogo.sogo_cache_folder' doesn't exist
...

It looks like SOGo can not or is not updating the MySQL database but I'm not sure why that is not working. Anyone have any ideas to help troubleshoot this problem? Could it be as easy as creating the table? I need help.

Viewing all 43369 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>