The first release of the freifunkMUC fork. Outlook and Thunderbird now get correct settings from Autodiscover, Apple profiles work for several accounts on one device, and the project has documentation.
Upgrading
- The image is now published as
latest, and as2.0.0,2.0and2. Until now onlymasterexisted, although the README saidlatest. - An invalid socket type stops the service.
IMAP_SOCKET,POP_SOCKETandSMTP_SOCKETmust beSSL,STARTTLSorplain(any case). A value such asTLSused to produce configurations clients rejected or used without encryption. - An empty
*_HOSTturns that protocol off. POP3 is still announced by default: setPOP_HOST=if you do not run it. - Apple profiles get new identifiers, one set per address. A profile installed with an earlier version is not replaced by a new download: remove it once by hand.
MAIL_UUIDandLDAP_UUIDare no longer used, andPROFILE_IDENTIFIERandPROFILE_UUIDare optional. MOBILESYNC_URLis the full ActiveSync endpoint, e.g.https://sync.example.com/Microsoft-Server-ActiveSync.- Node.js 22 is required when running without Docker.
Outlook
- Answers in the
outlook/responseschema/2006aformat Outlook asks for, instead of a namespace it does not expect. SPAis off. It told clients to log in with NTLM, which IMAP servers usually do not offer.- POP3 is announced as
POP3, plain sockets asEncryptionNone, and logins no longer ask for a Windows domain. - The user's address is the display name, instead of
COMPANY_NAMEfor everybody. - Requests without an address get error 600, and ActiveSync requests get a proper ActiveSync answer, or a clear error without
MOBILESYNC_URL. - New: Autodiscover v2 (
/autodiscover/autodiscover.json), which new Outlook for Windows asks first. ActiveSync is only offered there withMOBILESYNC_AUTODISCOVER_JSON=true, since new Outlook does not fall back to IMAP once it has an ActiveSync URL. - Addresses with characters such as
&are no longer escaped twice.
Thunderbird
- Through Autodiscover, Thunderbird used to set up NTLM authentication and SMTP without encryption, and lost POP3. It now gets the same settings as through autoconfig.
- Autoconfig is also served at
/.well-known/autoconfig/mail/config-v1.1.xml.
Apple devices
- Profiles for several addresses can be installed on one device, and downloading the profile again updates the installed one.
- Profiles work with
DOMAINalone. WithoutPROFILE_IDENTIFIERthey used to be invalid. - Without SMTP the profile no longer contains an invalid mail account.
Security and maintenance
- The support page uses Bootstrap 5 served by the service itself. jQuery 3.4.1 (CVE-2020-11022, CVE-2020-11023), Bootstrap 4 and the three CDNs that saw every visitor's IP address are gone.
- 59 instead of 166 production dependencies: unused and unmaintained packages are removed.
- The image no longer contains npm, and is scanned with Trivy before it is published, and weekly afterwards. Images are only published after the tests and a smoke test of the image pass.
Documentation
https://www.freie-netze.org/autodiscover-email-settings/: every setting, DNS and certificates, Docker Compose, nginx, Traefik and systemd, what each mail client asks for, and troubleshooting, including which test of Microsoft's Remote Connectivity Analyzer to use.
Thanks to @Perlover for finding the Autodiscover namespace and escaping bugs (#47).