From acf0d082e4534c60c91ba0eae93e8ae025b5d62c Mon Sep 17 00:00:00 2001 From: Ronni Baslund Date: Thu, 11 Jun 2026 07:44:49 +0200 Subject: [PATCH] feat(portal): one-click Apple Mail setup via .mobileconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apple Mail ignores RFC 6186 SRV autodiscovery and 'Microsoft Exchange' needs EWS/EAS that Stalwart doesn't speak — so custom-domain users were stuck typing IMAP/SMTP servers manually. New session-gated portal route generates an Apple configuration profile (IMAP 993 + SMTP 465 on the runtime mail host, username = address, NO password embedded — profiles are plaintext, Apple prompts at install). 'Add to Apple Mail' buttons on the three credential screens (invite result, mailbox created, password reset). CalDAV/CardDAV payloads join when DAV is reachable from outside (the node's :443 belongs to Traefik for now). --- apps/portal/pages/admin/users.vue | 26 +++++ .../portal/server/api/apple-mailconfig.get.ts | 98 +++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 apps/portal/server/api/apple-mailconfig.get.ts diff --git a/apps/portal/pages/admin/users.vue b/apps/portal/pages/admin/users.vue index b878dd3..1f5ba22 100644 --- a/apps/portal/pages/admin/users.vue +++ b/apps/portal/pages/admin/users.vue @@ -1,5 +1,12 @@