Email client autodiscovery

So no promises on any timeline, but I am wanting to build a NS8 module to auto-configure email clients. I’d built nethserver-automx for NS7, but automx is now dead and gone, and I’m looking at a few possible replacements:

One thing I’m trying to figure out is whether the LDAP lookup even matters. In theory, automx could have looked up names given the email address, but I never did get that to work. It could be used to validate whether an account exists, but that also leaks information that you might not want to leak for the sake of security.

So, in an NS8 environment, is there anything I’d really need to look up per-user from the accounts provider?


  1. Though that’s rather hypocritical of me; if I do get this module built, it will also be largely AI-coded. ↩︎

3 Likes

Hi Dan,

This woul be great if you can get the autodiscovery working
I’m using Sogo, but i don’t know if that makes a difference

If there is some testing needed, i’m willing to help

1 Like

I recall I did some work in webtop, if I can help ping me

1 Like

If this feature were to be built in to an existing module,[1] wouldn’t the mail server be a better fit for it? Why Webtop?

But that question aside, your implementation (Feat: autoconfiguration for email clients (#128) · NethServer/ns8-webtop@be95ba2 · GitHub) seems to serve static XML configuration documents, generated when the webtop configuration is saved, while the projects I’m looking at generate those configuration documents dynamically. I’m not sure what difference that makes, though, other than one of these projects would deal with multiple mail domains more easily. Though all three of them can create .mobileconfig profiles for Apple devices, which is a win.


  1. And I think this would be a great idea; a separate “email client autodiscovery” module really seems like kind of a clunky way to handle it. ↩︎

mail does not have an http service to serve those files, yes it could have been a global solution but this has not been decided.

I thought about that after I posted–good point. Putting this into Mail would require some service to serve those two static files via http, through Traefik, though it could be a minimal server (lighttpd, maybe?). Or, in theory, one of these tools could be included in Mail, serving its dynamically-generated content through Traefik. Obviously that wouldn’t happen without a good bit of testing and validation, though.

1 Like