I’m happy to announce the initial release of ns8-automx, providing email client autoconfiguration for NethServer 8:
To install, run add-module ghcr.io/danb35/automx:0.1.1 1. It requires NS8 core 3.20.1 or later and a working mail installation. Better, add my software repository at https://danb35.github.io/ns8-repomd/ and install it from there.
Ensures that DNS records (specifically, CNAME records for autoconfig.<domain> and autodiscover.<domain>) are present before creating routes, so that Let’s Encrypt certificate creation should succeed.
Optional Display Name lookup from the configured accounts provider (enabled by default, can be disabled).
This has the potential to leak information. Queries for the autoconfiguration information are unauthenticated using all three mechanisms, so this would allow an attacker to determine a user’s full name given an email address. Disable this option if you want to foreclose this possibility. Turning it off does not stop the endpoints from revealing whether the address/account exists.
Tested against Betterbird (Thunderbird fork), Outlook LTSC, and Apple Mail on macOS via .mobileconfig download.
Tested against OpenLDAP and Active Directory domain providers on NethServer 8.
Not tested against remote AD.
Not implemented yet
.mobileconfig signing. Apple’s .mobileconfig profiles can be signed with a valid x.509 certificate, and that’s planned for future implementation. At this time, these profiles will give warnings that they’re “Not verified,” but they’ve still been verified to work.
PACC. This is a “Internet-Draft” standard, and I’m not aware of any clients that currently implement it.
OAuth. NS8 doesn’t presently support this for mail. automx does, so if/when NS8 does, I expect to add that capability.
Autodiscover v2.
Support for more than one mail instance in the cluster. More than one mail instance on a single node is an invalid configuration because of port conflicts, but it’s possible to have one instance per node in a cluster. I don’t know how much demand there would be to support this.
I’d like a button in the /users-admin/ page that lets users download their own .mobileconfig file, but it doesn’t look like there’s any way for this (or any other) module to add to that page.
Support for aliases. This module does not currently resolve email aliases to the underlying username.
Sogo shouldn’t need autoconfiguration; it’s its own web client. This is for desktop/mobile clients like Outlook, Thunderbird, Parula, Apple Mail, etc.–enter your email address, and it can look up the rest of the configuration details from your server this way, without your (or your users) needing to enter server addresses, ports, etc.
As to ActiveSync, I’m afraid I’m not very familiar with it–how would it be used here?
Looking into it a bit more, I see how it could be useful. automx does support ActiveSync, but I haven’t implemented it as yet. I’ll put it on the list.
…among others, but those are the big ones. Haven’t pushed it as a release yet, though, as I don’t have anything that uses ActiveSync to test it out–if you do, I’d appreciate your doing so. If you haven’t installed ns8-automx yet, you can install the latest with add-module ghcr.io/danb35/automx:latest 1. If you’ve installed it previously (and it’s still installed), you can update with update-module ghcr.io/danb35/automx:latest automx1. Let me know how it goes.
Edit: Turns out my iPhone does do ActiveSync, and I was able to test it against SOGo successfully. I’ve therefore released 0.2.0. Release notes here: Release 0.2.0 · danb35/ns8-automx · GitHub
Rebased to upstream 3.0b5, which incorporates a fix I’d submitted dealing with capitalized Autodiscover paths.
Email alias resolution isn’t enabled by default on upgrades from 0.1. It wasn’t available in that version, so admins shouldn’t be surprised here. You can still turn it on, of course. It’s on by default in new installations of 0.2.
16:38:11+01:00 [1:automx1:agent@automx1] task/module/automx1/725650bc-4cfd-4f53-bd5d-2d8c80dbc759: get-name/50get_name is starting
2026-10-27T16:38:11+01:00 [1:automx1:agent@automx1] task/module/automx1/b666e29a-86bc-406c-97c9-84afb137bc99: get-configuration/10read is starting
2026-10-27T16:38:11+01:00 [1:automx1:agent@automx1] task/module/automx1/6cf74e77-7644-486b-af60-6131866ac4d1: get-status/20read is starting
2026-10-27T16:38:11+01:00 [1:automx1:agent@automx1] task/module/automx1/725650bc-4cfd-4f53-bd5d-2d8c80dbc759: action "get-name" status is "completed" (0) at step 50get_name
2026-10-27T16:38:11+01:00 [1:automx1:agent@automx1] task/module/automx1/6cf74e77-7644-486b-af60-6131866ac4d1: action "get-status" status is "completed" (0) at step validate-output.json
2026-10-27T16:38:12+01:00 [1:automx1:agent@automx1] task/module/automx1/b666e29a-86bc-406c-97c9-84afb137bc99: action "get-configuration" status is "completed" (0) at step validate-output.json
2026-10-27T16:38:16+01:00 [1:automx1:agent@automx1] task/module/automx1/b9d6cf28-7385-467a-879d-31b58d1b4943: get-domains/10read is starting
2026-10-27T16:38:18+01:00 [1:automx1:agent@automx1] task/module/automx1/b9d6cf28-7385-467a-879d-31b58d1b4943: action "get-domains" status is "completed" (0) at step validate-output.json
2026-10-27T16:38:39+01:00 [1:automx1:agent@automx1] task/module/automx1/338ea374-0da3-4efa-823c-609de3f311aa: check-dns/10check is starting
2026-10-27T16:38:39+01:00 [1:automx1:agent@automx1] task/module/automx1/338ea374-0da3-4efa-823c-609de3f311aa: action "check-dns" status is "completed" (0) at step validate-output.json
2026-10-27T16:38:39+01:00 [1:automx1:agent@automx1] task/module/automx1/866681d6-6de7-4e73-91e8-1713f2736510: get-dns-plan/10plan is starting
2026-10-27T16:38:39+01:00 [1:automx1:agent@automx1] task/module/automx1/866681d6-6de7-4e73-91e8-1713f2736510: action "get-dns-plan" status is "completed" (0) at step validate-output.json
2026-10-27T16:42:33+01:00 [1:automx1:agent@automx1] task/module/automx1/9467f261-5cf7-40e1-a22e-a514a8d5593e: check-dns/10check is starting
2026-10-27T16:42:33+01:00 [1:automx1:agent@automx1] task/module/automx1/9467f261-5cf7-40e1-a22e-a514a8d5593e: action "check-dns" status is "completed" (0) at step validate-output.json
2026-10-27T16:42:33+01:00 [1:automx1:agent@automx1] task/module/automx1/15dcd509-ed72-473f-b010-1c11c989700a: get-dns-plan/10plan is starting
2026-10-27T16:42:33+01:00 [1:automx1:agent@automx1] task/module/automx1/15dcd509-ed72-473f-b010-1c11c989700a: action "get-dns-plan" status is "completed" (0) at step validate-output.json
2026-10-27T16:42:35+01:00 [1:automx1:agent@automx1] task/module/automx1/acf3f604-8c5a-4086-9a07-efedb014013c: check-dns/10check is starting
2026-10-27T16:42:35+01:00 [1:automx1:agent@automx1] task/module/automx1/acf3f604-8c5a-4086-9a07-efedb014013c: action "check-dns" status is "completed" (0) at step validate-output.json
2026-10-27T16:42:35+01:00 [1:automx1:agent@automx1] task/module/automx1/7e638907-c95e-43e2-aeb0-a606e84e998b: get-dns-plan/10plan is starting
2026-10-27T16:42:35+01:00 [1:automx1:agent@automx1] task/module/automx1/7e638907-c95e-43e2-aeb0-a606e84e998b: action "get-dns-plan" status is "completed" (0) at step validate-output.json
Propagation looks ok, resolution is ok from the server too.
Sorry for the delay; I haven’t had much of a chance to check on this for a few days. A few questions:
Do you have it working, or are you still having issues?
If you’re still having issues, which version of ns8-automx are you running?
Which DNS host are you using?
While it should see the record as correctly present, ns8-automx ought to be able to create the traefik routes and otherwise do its job for the domain as long as it sees the autoconfig and autodiscover DNS records. Is that working for you?
Can you run api-cli run module/dnshelper1/get-records --data '{"zone":"ateliersaule.fr","name":"_autodiscover._tcp"}' and share the output? Also api-cli run module/automx1/check-dns --data '{"domain":"ateliersaule.fr"}'?
You aren’t at this point missing any functionality; automx is going to serve everything it should even if it thinks the SRV record is missing. But this is nonetheless unexpected behavior.