4.3.3.3. Set up automatic configuration for Thunderbird

To avoid manually entering data for connection when setting up mail in Thunderbird, you can organize autoconfiguration. To do this, you need to place a special configuration file in XML format on the site. The mail client will then check for the presence of this file in the default locations when configuring mail. If the file is found, the settings will be filled in automatically and you will only need to select the protocol for incoming mail:

The file contains connection data common to all users of our mail service for mailboxes: host addresses, port numbers, and connection types for the IMAP, POP3, and SMTP protocols.

Create a file named config-v1.1.xml with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<clientConfig version="1.1">
  <emailProvider id="mail.adm.tools">
    <domain>%EMAILDOMAIN%</domain>
    <displayName>%EMAILADDRESS%</displayName>
    <displayShortName>%EMAILADDRESS%</displayShortName>
    <incomingServer type="imap">
      <hostname>mail.adm.tools</hostname>
      <port>993</port>
      <socketType>SSL</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </incomingServer>
    <incomingServer type="pop3">
      <hostname>mail.adm.tools</hostname>
      <port>995</port>
      <socketType>SSL</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </incomingServer>
    <outgoingServer type="smtp">
      <hostname>mail.adm.tools</hostname>
      <port>465</port>
      <socketType>SSL</socketType>
      <authentication>password-cleartext</authentication>
      <username>%EMAILADDRESS%</username>
    </outgoingServer>
  </emailProvider>
</clientConfig>

The autoconfiguration file can be placed on the main domain or on the autoconfig subdomain.

  1. Download the autoconfiguration file.
  2. Using the file manager or any FTP client, place the downloaded file in the root directory of the site at the path .well-known/autoconfig/mail/config-v1.1.xml. The absolute path will look like this: /home/example/example.com/www/.well-known/autoconfig/mail/config-v1.1.xml, where example is the name of your hosting account, and example.com is the name of your mail domain.
  3. Check the availability of the file at the link example.com/.well-known/autoconfig/mail/config-v1.1.xml, where example.com is the name of your mail domain.
  4. Check if autoconfiguration works when setting up mail in Thunderbird.
  1. Add subdomain with the name autoconfig.
  2. Download the autoconfiguration file.
  3. Using file manager or any FTP client, place the downloaded file in the root directory of the subdomain autoconfig under the path mail/config-v1.1.xml. The absolute path will be something like this: /home/example/example.com/autoconfig/mail/config-v1.1.xml, where example is the name of your hosting account, example.com is the name of your mail domain.
  4. Check the availability of the file at a link of the form autoconfig.example.com/mail/config-v1.1.xml, where example.com is the name of your mail domain.
  5. Check if autoconfiguration works when setting up mail in Thunderbird.
Content