Apple systems return 401 when trying to sync via carddav.

Issue #785 new
Former user created an issue

Hi,

I have enabled DAV functionality (which is in beta) to test it out how it works. Everywhere it works flawlessy, but Carddav doesn’t seem to work with macOS/iOS (10.15.6/14.0) - when I am trying to log in via System Preferences, system throws an error that it can’t verify account name or password. Calendar worked immediately (even faster than native Dav solutions).

Nginx shows this when I am trying to sync with carddav server:

- - [28/Jul/2020:15:38:46 +0200] "PROPFIND /dav/principals/{login} HTTP/1.1" 401 5 "-" "Mac OS X/10.15.6 (19G73) AddressBookCore/1"
{login} [28/Jul/2020:15:38:46 +0200] "PROPFIND /dav/principals/{login} HTTP/1.1" 207 626 "-" "Mac OS X/10.15.6 (19G73) AddressBookCore/1"
{Login} [28/Jul/2020:15:38:46 +0200] "OPTIONS /dav/principals/{login}/ HTTP/1.1" 200 48 "-" "Mac OS X/10.15.6 (19G73) AddressBookCore/1"

Error below the connection form is: “Cannot verify account name or password”

And here are logs when I am syncing my data with calendar server (it works):

 - {login} [28/Jul/2020:16:02:19 +0200] "PROPFIND /dav/principals/ HTTP/1.1" 207 527 "-" "Mac+OS+X/10.15.6 (19G73) accountsd/113"
 - {login} [28/Jul/2020:16:02:19 +0200] "OPTIONS /dav/principals/{login}/ HTTP/1.1" 200 48 "-" "Mac+OS+X/10.15.6 (19G73) accountsd/113"
 - - [28/Jul/2020:16:02:31 +0200] "PROPFIND /.well-known/caldav HTTP/1.1" 404 47 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:31 +0200] "PROPFIND / HTTP/1.1" 405 150 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:31 +0200] "PROPFIND /principals/ HTTP/1.1" 405 150 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:31 +0200] "PROPFIND /calendar/dav/{login}/user/ HTTP/1.1" 405 150 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:32 +0200] "PROPFIND /.well-known/caldav HTTP/1.1" 404 47 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:32 +0200] "PROPFIND / HTTP/1.1" 405 150 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:32 +0200] "PROPFIND /principals/ HTTP/1.1" 405 150 "-" "iOS/10.15.6 (19G73) remindd/1.0"
 - - [28/Jul/2020:16:02:32 +0200] "PROPFIND /calendar/dav/{login}/user/ HTTP/1.1" 405 150 "-" "iOS/10.15.6 (19G73) remindd/1.0"

And here is my config, where I am using Traefik as my reverse proxy:

version: "3"
services:
  poste:
    image: "analogic/poste.io"
    container_name: "mail"
    restart: "always"
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/data/poste:/data"
      - /var/www/.well-known:/opt/www/.well-known
    hostname: "{URL}"
    ports:
        - '25:25'    # SMTPS - mostly processing incoming mails
        - '465:465'    # SMTPS - mostly processing incoming mails
        - '110:110'  #  POP3 - standard protocol for accessing mailbox, STARTTLS is required before client auth
        - '143:143'  #  IMAP
        - '587:587'  #  MSA - SMTP port used primarily for email clients after STARTTLS and auth
        - '993:993'  #  IMAPS - alternative port for IMAP encrypted since connection
        - '995:995'  #  POP3S - encrypted POP3 since connections
        - '4190:4190'
    environment:
        - HTTPS=OFF

    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.mail.rule=Host(`{URL}`)"
      - "traefik.http.routers.mail.tls=true"
      - "traefik.http.routers.mail.tls.options=default"
      - "traefik.http.routers.mail.tls.certresolver=le"
      - "traefik.http.services.mail.loadbalancer.server.port=80"
      - "traefik.http.routers.mail.priority=1001"

    networks:
            - web

Comments (0)

  1. Log in to comment