Autodiscover und Mailcow

Wer Mailcow als E-Mail Lösung nutzt, stößt evtl. einmal auf das Problem, dass Outlook Clients den Autodiscover nicht korrekt auflösen können. Das kann verschiedene Ursachen haben, ich möchte hier eine davon beschreiben.

Ein wichtiger Punkt, bei der Benutzung von Outlook Clients mit Mailcow ist, dass leider nicht alle Versionen und Editionen unterstützt werden. Selbst getestet und Bestätigt ist, dass Outlook 2016 mit Mailcow aktuell nicht funktioniert.

Wenn Autodiscover vom DNS her korrekt konfiguriert ist (läßt sich schön über den DNS? Button in der Mailcow Admin Konsole prüfen), könnte es dennoch sein, dass der Outlook Client nur ein IMAP Konto und kein Active Sync Konto konfigurieren möchte.

Da auch nur in einigen Outlook Versionen noch die, in der Dokumentation beschriebene, „OLCFG.exe“ zur Verfügung steht, muss hier leider Autodiscover funktionieren.

Der Trick ist hierbei ein bestimmter Eintrag in der data/web/inc/vars.local.inc.php im Ordner der mailcow-dockerized. Wenn man in dieser Datei in die Sektion $autodiscover_config geht, finden man einen Eintrag ‚useEASforOutlook‘.

Dieser sollte auf ‚yes‘ stehen, dann funktioniert auch die Konfiguration mit Autodiscover als Active Sync Postfach mit Outlook. Der Eintrag ‚autodiscoverType‘ sollte natürlich ebenfalls auf ‚activesync‘ stehen. Hier der komplette Abschnitt aus der Dokumentation:

$autodiscover_config = array(
  // General autodiscover service type: "activesync" or "imap"
  // emClient uses autodiscover, but does not support ActiveSync. mailcow excludes emClient from ActiveSync.
  'autodiscoverType' => 'activesync',
  // If autodiscoverType => activesync, also use ActiveSync (EAS) for Outlook desktop clients (>= Outlook 2013 on Windows)
  // Outlook for Mac does not support ActiveSync
  'useEASforOutlook' => 'yes',
  // Please don't use STARTTLS-enabled service ports in the "port" variable.
  // The autodiscover service will always point to SMTPS and IMAPS (TLS-wrapped services).
  // The autoconfig service will additionally announce the STARTTLS-enabled ports, specified in the "tlsport" variable.
  'imap' => array(
    'server' => $mailcow_hostname,
    'port' => array_pop(explode(':', getenv('IMAPS_PORT'))),
    'tlsport' => array_pop(explode(':', getenv('IMAP_PORT'))),
  ),
  'pop3' => array(
    'server' => $mailcow_hostname,
    'port' => array_pop(explode(':', getenv('POPS_PORT'))),
    'tlsport' => array_pop(explode(':', getenv('POP_PORT'))),
  ),
  'smtp' => array(
    'server' => $mailcow_hostname,
    'port' => array_pop(explode(':', getenv('SMTPS_PORT'))),
    'tlsport' => array_pop(explode(':', getenv('SUBMISSION_PORT'))),
  ),
  'activesync' => array(
    'url' => 'https://'.$mailcow_hostname.($https_port == 443 ? '' : ':'.$https_port).'/Microsoft-Server-ActiveSync',
  ),
  'caldav' => array(
    'server' => $mailcow_hostname,
    'port' => $https_port,
  ),
  'carddav' => array(
    'server' => $mailcow_hostname,
    'port' => $https_port,
  ),
);

3 Kommentare zu „Autodiscover und Mailcow

  1. Good day I am so delighted I found your webpage, I really found you by accident, while
    I was searching on Bing for something else, Anyways I am here now and would just like to say cheers for a incredible post and a all round exciting blog (I also love the theme/design), I
    don’t have time to browse it all at the moment but I have book-marked it and also added in your RSS feeds, so when I have time I will
    be back to read more, Please do keep up the superb job.

    Like

Hinterlasse einen Kommentar