<metaproperty="og:description"content="My site of stuff"/>
<linkrel="stylesheet"href="/css/gemini.css"/>
<linkrel="stylesheet"href="/css/psw.css"/>
<title>Mailautoconf :: My site of stuff :: Paul Wilde</title>
</head>
<bodyclass="page">
<aid="top"></a>
<header>
<h1>Paul Wilde :: My site of stuff <ahref="#navigation"title="Navigation">🗺</a><ahref="#contact"title="Contact">🗪</a></h1>
</header>
<mainclass="main mailautoconf">
<h2>Mailautoconf</h2>
<h3id="a-simple-configurable-autodiscover-autoconfig-service-for-distributed-and-self-hosted-services">A simple, configurable autodiscover/autoconfig service for distributed and self-hosted services.</h3>
<p>First run will create <code>sample.yaml</code> files in the config directory. Copy these to <code>config.yaml</code> and <code>services.yaml</code> and configure them to your needs.</p>
<p>MailAutoConf will handle all the URLs it’s able to deal with, i.e. <code>/mail/config-v1.1.xml</code>, <code>/Autodiscover/Autodiscover.xml</code> automatically.</p>
<h3id="dns-config">DNS config</h3>
<p>You will need to configure DNS records for your domain.<br/>
I would recommend setting up an A record for <code>autoconfig.your.domain</code> to point
directly to your MailAutoConf’s instance which will work for Thunderbird and
Evolution clients.
Then, if Outlook Autodiscover is required (currently not implemented), configure
a <code>SRV</code> record to redirect to the <code>autoconfig.your.domain</code><code>A</code> record. i.e.</p>
<prestyle="background-color:#212121;color:#eeffff;"><code><span>Type TTL P M Port Target
<p>MailAutoConf has been tested and confirmed working with the following software packages</p>
<ul>
<li><inputdisabled=""type="checkbox"checked=""/>
Thunderbird (v78 and probably earlier versions too)</li>
<li><inputdisabled=""type="checkbox"checked=""/>
Evolution Mail (v3.40.3 and probably earlier versions too)</li>
<li><inputdisabled=""type="checkbox"checked=""/>
Nextcloud Mail app</li>
<li><inputdisabled=""type="checkbox"/>
Other Mail Clients are likely supported if they support /mail/config-v1.1.xml</li>
</ul>
<h3id="future-plans">Future plans</h3>
<p>MailAutoConf is currently in <em>very</em> early stages, with a <em>very</em> limited set of features.
My hope for MailAutoConf is to run as an autoconfig service which provides Calendar and AddressBook locations as well.
Calendar and AddressBook is in the autoconfig XML documentation, but currently not implemented. MailAutoConf can generate the correct information for Calendar and AddressBook into the autoconfig XML file, though no clients currently use it.</p>
<h3id="todo">TODO:</h3>
<ul>
<li><inputdisabled=""type="checkbox"checked=""/>
/mail/config-v1.1.xml file for Thunderbird and Evolution mail clients.</li>
<li><inputdisabled=""type="checkbox"/>
Add more code commenting, it’s pretty terrible right now.</li>
<li><inputdisabled=""type="checkbox"/>
Refactor the autoconfig and autodiscover XML files, they’ve been copied and bodged together and could look so much better.</li>
<li><inputdisabled=""type="checkbox"/>
Autodiscover.xml for Outlook clients - currently does generate, but untested.</li>
<li><inputdisabled=""type="checkbox"/>
Autodiscover.json for more modern Outlook clients - this is currently undocumented. I have implemented some features of it but it is currently not working.</li>
<li><inputdisabled=""type="checkbox"/>
Calendars and Address Book - does generate into mail/config-v1.1.xml, but no actual clients support it yet.</li>
<li><inputdisabled=""type="checkbox"/>
Additional, custom services. For example, Nextcloud - instead of having to type in your Nextcloud instance URL, you can just enter your email address associated with you Nextcloud account and it looks up the URL from autoconfig - wouldn’t that be nice?</li>
<li><inputdisabled=""type="checkbox"/>
Probably loads of stuff I haven’t thought of yet.</li>
</ul>
<h3id="when-will-it-be-ready-for-production">When will it be ready for production?</h3>
<p>Well, not yet. Though it does sort of work already.<br/>
I’m working on this ultimately for my own use for my own small business. I’m hoping once it’s good enough I could deploy the set up to my businesses customers and ultimately get them away from a Microsoft Exchange based environment. There’s a long way to go for that right now though.</p>
<p>If you feel you may be able to help, or ideas on features and their implementation, notice any bugs, or just want to say hi. Please do so and submit a pull request if required.</p>
<p>Thanks for reading!</p>
<section>
<hr/>
<sub>
<sub>Published : Tue, 17 August 2021 at 10:49am +0100<br/>