1

Topic: iRedmail + SOGo + El Capitan CardDav

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

I have been using OSX Yosemites integrated CardDav sync with iRedmail and SOGo without any problems for some time. For about a week ago, I upgraded to El Capitan 10.11.0 (the latest GM candidate) and I have also tried 10.11.1 beta. Now, the CardDav sync seems to be broken. I can add the account without problems according to the official guide by adding https://host.domain.com/SOGo/dav/username but the Contacts app does not show any contacts and it says that I have a connection issue. Have anyone else noticed this? CalDav works just fine. I also tried BusyContacts and everything works there without problems.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedmail + SOGo + El Capitan CardDav

I'm afraid that it sounds like a Mac OS issue, not SOGo.
Did you check Apple support forum? any related bug report?

3

Re: iRedmail + SOGo + El Capitan CardDav

ZhangHuangbin wrote:

I'm afraid that it sounds like a Mac OS issue, not SOGo.
Did you check Apple support forum? any related bug report?

I agree, I believe this is an Apple issue as well. I tried searching the Apple forums but I can't find anyone with the same problem (yet...) so I thought I'd give this forum a try as well hoping for a workaround or similar.

4

Re: iRedmail + SOGo + El Capitan CardDav

Hello!
I'm a user utilizing the powers of Google to inform CardDav users to report this to https://bugreport.apple.com

I have tested 4 different carddav providers and have come to the conclusion that the issue is universal.

Thanks for helping reporting the bug.

5

Re: iRedmail + SOGo + El Capitan CardDav

I've been struggling with this for a while now and here is a workaround that actually works when using Nginx. You must add the following rewrite rule in nginx deafult.conf under the "server" block:

rewrite ^/.well-known/carddav /SOGo/dav permanent;

After the line is added, restart nginx and it should work immediately.

Strange that this issue is not resolved from Apple yet. The bug still exists in 10.11.2 beta.

/Daniel

6

Re: iRedmail + SOGo + El Capitan CardDav

Dear Daniel,

Thanks for sharing. Upcoming iRedMail release will have this line in Nginx config file.
https://bitbucket.org/zhb/iredmail/comm … a9829f720d

7

Re: iRedmail + SOGo + El Capitan CardDav

sunnanfjord wrote:

I've been struggling with this for a while now and here is a workaround that actually works when using Nginx. You must add the following rewrite rule in nginx deafult.conf under the "server" block:

rewrite ^/.well-known/carddav /SOGo/dav permanent;

After the line is added, restart nginx and it should work immediately.

Strange that this issue is not resolved from Apple yet. The bug still exists in 10.11.2 beta.

/Daniel

I have the same problem but I am using SOGo with apache (debian), do you know about a similar workaround also for apache?

8

Re: iRedmail + SOGo + El Capitan CardDav

SOGo has sample Apache setting enabled by default:

# For Apple autoconfiguration
<IfModule rewrite_module>
  RewriteEngine On
  RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301]
</IfModule>

Reference: https://github.com/inverse-inc/sogo/blo … o.conf#L89

You can find it in /etc/apache2/conf-enabled/

9

Re: iRedmail + SOGo + El Capitan CardDav

ZhangHuangbin wrote:

SOGo has sample Apache setting enabled by default:

# For Apple autoconfiguration
<IfModule rewrite_module>
  RewriteEngine On
  RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301]
</IfModule>

Reference: https://github.com/inverse-inc/sogo/blo … o.conf#L89

You can find it in /etc/apache2/conf-enabled/

It worked, thank you very much indeed!
I had to add also "carddav"

cheers

10

Re: iRedmail + SOGo + El Capitan CardDav

I reported this issue to SOGo team:
https://github.com/inverse-inc/sogo/issues/118